maven4-installing MAVEN plugins and creating MAVEN projects in Eclipse

Source: Internet
Author: User

To find out if eclipse needs to install the Maven plugin, just open windows,perferences to see if there is maven

If there is no Maven plugin, install the method: Download the Maven plugin and copy it to the Eclipse,dropins directory. Then restart Eclipse

Modify the file according to the prompts, as shown in the video demo, you need to modify the Eclipse.ini file. We go to the Eclipse root directory and open the Eclipse.ini file.

Plus

--VM
C:\Java\jdk1.7.0_55\bin\javaw.exe
Note: To write in two lines, write on a line that does not take effect

Note: These two lines will not be valid until-vmargs.
Then modify the installed JREs
Change the path to the JRE in the JDK
Or windows-perferences-java-installed the JRE in the Jres-add JDK, then tick, add
Change the default configuration in Maven, Maven-installations-add apache-maven-3.3.3
Re-modify User Settings
is the location of the local warehouse (if you have modified the local warehouse locations, write the location of the warehouse J:\moocwork\repo\settings.xml), if you have not modified the location of the warehouse, should not report this error


Create a new MAVEN project test
Note: Right-New-other-maven Project
Note that 0.0.1SNAPSHOT is a version that represents an unstable, still in development version. Release version represents a stable version
Project-Right-run As-compile
If you have reported-dmaven.multimoduleprojectdirectory system property was not set. Check $M 2_home Environme
Right-click-preference-java-install JRE in the edit dault VM arguments write-dmaven.multimoduleprojectdirectory= $M 2_home
Finish OK
Project Right-click Run As-compile-package

























Related Article

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.