Novice Tutorial Tools use (20)--Fix M2eclipse plugin cannot execute MAVEN command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.