Page 1 of 1

-Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Fri Apr 10, 2015 2:12 am
by Roshan K R
Plzz help me with this. I am not able to find the correct solution for this.

[artifact:mvn] -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
[artifact:mvn] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 seconds

Build is successful but when I open it in the browser by using localhost:8080 IP address it says webpage not available.

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Sat Apr 11, 2015 8:18 am
by d8sasi
I think you are using the windows system, hence you need to change the variable ""maven.home"" in the "build.properties" file in side sample broadleaf application. check the ""mvn -version"" in windows and get the Maven home path like: C:\Program Files\Apache\maven .. put that in your "build.properties" file and then stop jetty and then click jetty demo.. i hope it works..!!

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Sun Apr 12, 2015 11:42 pm
by Roshan K R
I downloaded Apache-Maven file from http://maven.apache.org/download.cgi.
Is it required to save this file in Program Files folder????
I have downloaded this file and saved it in Desktop and maven.home variables pathname in bulid.properties file is changed to the path where I have saved it... even after changing the path of maven.home in build.properties file it is giving me the same problems.... please help with the issue...!!!

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Mon May 04, 2015 4:27 am
by Bernie
I have the same problem. What am I missing?

in build.properties I set maven.home to

maven.home=/usr/local/apache-maven/apache-maven-3.3.3


Eclipse Version: Luna Service Release 2 (4.4.2)
running on Mac OSX Yosemite

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Mon May 04, 2015 4:52 am
by Bernie
For me the following steps FIXED the problem:

instead of using the newest version of maven (at this time 3.3.3) I resorted to use maven 3.2.5

-install maven 3.2.5
-set environment variables (set $PATH to include the maven 3.2.5 version, delete 3.3.3 from $PATH)
-set $M2_HOME to the maven directory too (not sure if this is necessary actually)
-for me this was /usr/local/apache-maven/apache-maven-3.2.5, but will be wherever you installed your maven.
-adjust maven.home in the eclipse BroadLeaf workspace in build.profile accordingly.
maven.home=/usr/local/apache-maven/apache-maven-3.2.5

-then running the jetty-demo ant worked for me

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Sun Sep 06, 2015 12:22 am
by yinshuwei
QQ图片20150906132007.png
QQ图片20150906132007.png (82.96 KiB) Viewed 46268 times



Roshan K R wrote:Plzz help me with this. I am not able to find the correct solution for this.

[artifact:mvn] -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
[artifact:mvn] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 seconds

Build is successful but when I open it in the browser by using localhost:8080 IP address it says webpage not available.

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Posted: Tue Sep 15, 2015 8:26 am
by phillipuniverse
Add this to the ant task:

Code: Select all

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