请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

apache ranger编译

老师,你好。我想问下,linux环境下,maven编译apache ranger需要哪些具体环境,或者这个错误,是什么原因引起的呢?
我是centos7 64位,jdk1.8,maven3.6.3,用的阿里云镜像库。试了好多次,总是报错。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (default-jar) on project ranger-tools: Error assembling JAR: 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 <args> -rf :ranger-tools

正在回答 回答被采纳积分+3

1回答

叁金 2020-11-05 11:28:23

错误提示Java heap space 编译内存不足。可以设置一下Maven编译的环境变量,加大内存即可
 export MAVEN_OPTS="-Xms1024m -Xmx1024m -Xss1m"

0 回复 有任何疑惑可以回复我~

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信