About Me
Facebook
Facebook
Linked In
Linked In
Twitter
Twitter
YouTube
YouTube
Google +
Google +

Sunday, December 27, 2015

Dmaven.multiModuleProjectDirectory system property is not set Error

I have set up Maven and Java in environment variables in Windows. When I run the Maven project in eclipse or in JBoss Developer studio I use to get below error.
I have ran my fuse project using JBoss Developer studio. I have selected my fuse project right click on project selected Run as build. I have entered clean install and click on finish. I got below error in JBoss Developer studio. In this error only we have solution. We need to set the M2 HOME.
 -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
It’s a simple solution to fix the issue. Just follow the below steps.
Click on Window à Preferences à Java à Installed JREs à Select the jdk click on edit.
Enter Default DM arguments as -Dmaven.multiModuleProjectDirectory=$M2_HOME then click on Finish.
Click on Ok.
Now build the maven project again, it should success now.

0 comments :

Post a Comment

Designed By AMEER BASHA G