today, the first MAVEN project has an error in the ECLIPSEH environment, with the following tips:
-dmaven.multimoduleprojectdirectory system propery is not set. Check $M 2_home environment variable
Online said is Maven3.3.1 and JDK1.84 two version incompatibility problem, in fact, through their own experiments, in fact, we only need to do a configuration in the eclipse environment is OK;
After we download the Maven3.3.1 and unpack, we first need to put the path into the system environment variables of the computer (1. Create an environment variable m2_home=D:\Apps\ Apache-maven-3.3.1;2. Add an environment variable to the system variable following path:%m2_home%\bin;); second, in window->preference->java->installed JREs- >edit interface, find "Default VM arguments Settings", fill in the following values:-dmaven.multimoduleprojectdirectory= $M 2_home; Finally, click Finish Setup You are running the MAVEN project again, running successfully!!!!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Maven Project error in integrating Eclipse environment