Page 1 of 1

-Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Thu Jun 18, 2015 10:35 am
by qmzhou87
When I start to run "tomcat", got the following errors:
========================================
Buildfile: D:\Workspaces\eclipse-workspace\DemoSite\admin\build.xml
tomcat:
[artifact:mvn] Listening for transport dt_socket at address: 8001
[artifact:mvn] -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[artifact:mvn] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second
================================

What should i do to resolve this error? Thanks.

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Sun Jun 21, 2015 8:14 pm
by phillipuniverse
This is because of Maven 3.3. If you were using Maven 3.2, this would not happen.

In order to correct it, add this to the "tomcat" target in the build.xml in both site and admin:

Code: Select all

<jvmarg value="-Dmaven.multiModuleProjectDirectory=${maven.home}" />