Monday, May 9, 2016


Met an warning
-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.
Looks like Maven required more specific argument to run, so add an argument into the environment.
export MAVEN_OPTS="-Dmaven.multiModuleProjectDirectory=$M2_HOME"
We may require more if met memory issue. So it may finally look like this:

export MAVEN_OPTS="-Xms256m -Xmx512m -Dmaven.multiModuleProjectDirectory=$M2_HOME"

No comments:

Post a Comment