Java 构建Spark 1.5.2-Maven堆空间问题

Java 构建Spark 1.5.2-Maven堆空间问题,java,maven,apache-spark,build,Java,Maven,Apache Spark,Build,我正在使用makedistribution.sh脚本构建ApacheSpark。直到spark-streaming-mqtt_2.10模块运行正常。 我的MAVEN_OPTS环境变量是: export MAVEN_OPTS="-Xmx15g -XX:MaxPermSize=15000M -XX:ReservedCodeCacheSize=15000M" 即使分配给Maven的内存非常高,它仍然无法创建spark-streaming-mqtt-test-1.5.2.jarjar文件 以下是错误跟

我正在使用
makedistribution.sh
脚本构建ApacheSpark。直到
spark-streaming-mqtt_2.10
模块运行正常。 我的
MAVEN_OPTS
环境变量是:

export MAVEN_OPTS="-Xmx15g -XX:MaxPermSize=15000M -XX:ReservedCodeCacheSize=15000M"
即使分配给Maven的内存非常高,它仍然无法创建
spark-streaming-mqtt-test-1.5.2.jar
jar文件

以下是错误跟踪:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (test-jar-with-dependencies) on project spark-streaming-mqtt_2.10: Failed to create assembly: Error creating assembly archive test-jar-with-dependencies: Problem creating jar: Execution exception: Java heap space -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spark-streaming-mqtt_2.10
[ERROR]无法执行target org.apache.maven.plugins:maven assembly plugin:2.5.5:single(带依赖项的测试jar)on project spark-streaming-mqtt_2.10:无法创建程序集:错误创建带依赖项的程序集归档测试jar:创建jar问题:执行异常:Java堆空间->[Help 1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[错误]
[错误]纠正问题后,可以使用命令恢复生成
[错误]mvn-rf:spark-streaming-mqtt_2.10