when compiling with M2eclipse, the error message is as follows:
-dmaven.multimoduleprojectdirectory system propery is not set. Check $M 2_home environment variable and MVN script match.
Maven3.3.x has this problem, the previous version does not have this error, so I would like to switch to the previous version of 3.3.x to avoid this problem. But is the new version useless? Of course not, the resolution steps are as follows:
Set up an environment variable m2_home point to your MAVEN installation directory (this is usually set up, don't elaborate)
Then in Eclipse, in turn window->preference->java->installed JREs
Paste in default VM arguments:-dmaven.multimoduleprojectdirectory= $M 2_home
Finish, get it done! The next thing you can happily do is compile with m2eclipse! constantly accumulate the use of software skills, so that our tools become more intelligent, more understanding of your heart.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Novice Tutorial Tools use (20)--Fix M2eclipse plugin cannot execute MAVEN command