Maven Project error in integrating Eclipse environment

Source: Internet
Author: User

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

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.