apache ranger编译

来源:4-6 Apache Rangr安装

qq_慕后端80451

2020-11-04

老师,你好。我想问下,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
写回答

1回答

叁金

2020-11-05

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

0
0

玩转热门框架 用企业级思维 开发通用够硬的大数据平台

通揽大数据平台全貌,培养企业级开发大局观

484 学习 · 192 问题

查看课程