-Dmaven.multiModuleProjectDirectory system propery is not se

Your feedback on the Broadleaf Commerce forums is welcome. Let us know ways that we can improve.

Moderator: jocanas

Roshan K R
Newbie
Newbie
Posts: 5
Joined: Thu Apr 09, 2015 5:05 am

-Dmaven.multiModuleProjectDirectory system propery is not se

Postby Roshan K R » Fri Apr 10, 2015 2:12 am

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.
Attachments
Untitled1.png
-Dmaven.multiModuleProjectDirectory system propery is not set
Untitled1.png (123.38 KiB) Viewed 32127 times

d8sasi
Newbie
Newbie
Posts: 12
Joined: Sat Apr 11, 2015 7:11 am

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Postby d8sasi » Sat Apr 11, 2015 8:18 am

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..!!

Roshan K R
Newbie
Newbie
Posts: 5
Joined: Thu Apr 09, 2015 5:05 am

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Postby Roshan K R » Sun Apr 12, 2015 11:42 pm

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...!!!

Bernie
Newbie
Newbie
Posts: 2
Joined: Mon May 04, 2015 4:21 am

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Postby Bernie » Mon May 04, 2015 4:27 am

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)

Bernie
Newbie
Newbie
Posts: 2
Joined: Mon May 04, 2015 4:21 am

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Postby Bernie » Mon May 04, 2015 4:52 am

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

yinshuwei
Newbie
Newbie
Posts: 1
Joined: Sun Sep 06, 2015 12:18 am

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Postby yinshuwei » Sun Sep 06, 2015 12:22 am

QQ图片20150906132007.png
QQ图片20150906132007.png (82.96 KiB) Viewed 31072 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.

phillipuniverse
Team Member
Team Member
Posts: 1563
Joined: Tue Dec 20, 2011 12:11 pm

Re: -Dmaven.multiModuleProjectDirectory system propery is not se

Postby phillipuniverse » Tue Sep 15, 2015 8:26 am

Add this to the ant task:

Code: Select all

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


Return to “Help Make This Forum Better”

Who is online

Users browsing this forum: No registered users and 1 guest