执行命令:
/usr/install/maven3/bin/mvn clean install -Dmaven.test.skip
日志报错:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=740m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d5580000, 357564416, 0) failed; error=’Cannot allocate memory’ (errno=12)
添加环境变量解决:
export MAVEN_OPTS=”-Xmx512m”