Eclipse Configuration Maven

Source: Internet
Author: User

    1. Before installing MAVEN, install the JDK and configure the JAVA_HOME environment variable first. JDK1.4 above.

    2. Download Maven3, the latest version is maven3.0.3,:http://maven.apache.org/download.html

      After downloading the Apache-maven-3.0.3-bin.zip file, unzip to D:\tools\apache-maven-3.0.3

    3. Configure MAVEN3 environment variables, first configure the environment variable of m2_home, the value is "D:\tools\apache-maven-3.0.3", (Set environment variable, set to the system environment variable go, do not set the user environment variable above, because the system environment variable permission is larger) As shown in the following:

    4. Then configure the PATH environment variable, add "%m2_home%\bin" at the end of the path value (set the environment variable, set to the system environment variable, do not set the user environment variable above, because the system environment variable permissions are larger) as shown;

    5. Open the cmd command window, execute "mvn-version", will output the following content, indicating that the installation was successful.

    6. The 64 bits below are as follows:

    7. Eclipse Plug-in installation

      1) Plug-in installation

      Click menu Help, install new software for plug-in installation

      Plugin address http://m2eclipse.sonatype.org/sites/m2e

    8. If you have successfully installed this plugin, when you open window→preferences ... , you should be able to see a maven option in a list of options

      After installing the M2eclipse plugin, you need to make two settings.
      A) Disable Downloadrepository index updates on startup (that is, uncheck this option, the third fourth one can be ordered), as

    9. b) Set the Maven setting.xml file path, as

Eclipse Configuration Maven

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.