[SPARK-40072][BUILD] MAVEN_OPTS in make-distributions.sh is different…
[SPARK-40072][BUILD] MAVEN_OPTS in make-distributions.sh is different…

… from one specified in pom.xml

### What changes were proposed in this pull request?

Make `MAVEN_OPTS` in make-distributions.sh to be the same as pom.xml.
With default value of `MAVEN_OPTS` in make-distributions.sh, it fails to build spark.
The value of `MAVEN_OPTS` is realted to the issue, https://issues.apache.org/jira/browse/SPARK-35825.

### Why are the changes needed?

It helps developers to build spark with make-distributions.sh script.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Closes #37510 from eubnara/SPARK-40072.

Authored-by: Yubi Lee <bd9681d21e894f3b94fa3b49c6010e52b46d7b8c@gmail.com>
Signed-off-by: Sean Owen <d519fa33a62684a61ab04b24d26f83452d51b34c@gmail.com>

zero323/spark,mahak/spark,ueshin/apache-spark,dongjoon-hyun/spark,srowen/spark,zzcclp/spark,HyukjinKwon/spark,gengliangwang/spark,zero323/spark,srowen/spark,apache/spark,mahak/spark,dongjoon-hyun/spark,witgo/spark,WeichenXu123/spark,HyukjinKwon/spark,zzcclp/spark,witgo/spark,vinodkc/spark,shaneknapp/spark,vinodkc/spark,apache/spark,vinodkc/spark,apache/spark,shaneknapp/spark,zero323/spark,mahak/spark,wangyum/spark,witgo/spark,ueshin/apache-spark,zzcclp/spark,apache/spark,HyukjinKwon/spark,witgo/spark,gengliangwang/spark,gengliangwang/spark,srowen/spark,shaneknapp/spark,mahak/spark,shaneknapp/spark,shaneknapp/spark,hvanhovell/spark,srowen/spark,ueshin/apache-spark,vinodkc/spark,WeichenXu123/spark,zzcclp/spark,vinodkc/spark,srowen/spark,hvanhovell/spark,WeichenXu123/spark,apache/spark,hvanhovell/spark,mahak/spark,HyukjinKwon/spark,wangyum/spark,WeichenXu123/spark,dongjoon-hyun/spark,gengliangwang/spark,holdenk/spark,WeichenXu123/spark,dongjoon-hyun/spark,WeichenXu123/spark,hvanhovell/spark,ueshin/apache-spark,zzcclp/spark,apache/spark,holdenk/spark,hvanhovell/spark,witgo/spark,ueshin/apache-spark,shaneknapp/spark,dongjoon-hyun/spark,hvanhovell/spark,holdenk/spark,witgo/spark,zero323/spark,holdenk/spark,srowen/spark,wangyum/spark,wangyum/spark,mahak/spark,wangyum/spark,vinodkc/spark,WeichenXu123/spark,srowen/spark,gengliangwang/spark,dongjoon-hyun/spark,ueshin/apache-spark,holdenk/spark,vinodkc/spark,zero323/spark,HyukjinKwon/spark,witgo/spark,shaneknapp/spark,zero323/spark,ueshin/apache-spark,mahak/spark,hvanhovell/spark,zzcclp/spark,holdenk/spark,holdenk/spark,wangyum/spark,HyukjinKwon/spark,dongjoon-hyun/spark,zero323/spark,apache/spark,gengliangwang/spark,wangyum/spark,gengliangwang/spark,HyukjinKwon/spark,zzcclp/spark