Installing Maven's plugins in eclipse

Source: Internet
Author: User

If you can print the information above, it means that Maven is already installed on your PC.

MVN is a mavn instruction, mvn-version is to view the version information, my operating system is 64-bit WIN7, the installation of MAVEN is 3.3.9

If you can print the information above, it means that Maven is already installed on your PC.

To modify the location of the MAVEN repository:

Find the Settings.xml configuration file under Maven under Conf, mine is in D:\Server\maven\conf\settings.xml

The MAVEN repository defaults to the. M2 folder under the local user's Temp folder under Repository, mine is under the C:\Users\admcnm\.m2\repository directory,

Now let's modify to assign it to our own path, I'm now going to assign the repository to the D:\Repositories\Maven directory, just open the local repository that was logged off.

Then write the corresponding path value in it:

This time to download the jar package from the remote repository to the local repository:

Knock in CMD and enter to execute: MVN help:system

This is when Maven downloads a whole bunch of stuff from the remote repository, it's okay, it's downloaded, it's going to be downloaded sooner or later, and then the MAVEN plugin is installed in eclipse.

1. Open Eclipse, Menu "Help"-"Install New software ..."

2. In the work with Address field, enter: http://download.eclipse.org/releases/Juno (note: The Red Word section is the version name of Eclipse, mine is/HTTP/ download.eclipse.org/releases/neon/201612211000), wait a moment:

3. Enter Maven in the Filter box to locate the plug-in you want to install.

4. Select "Collaboration"-"M2e-maven Integration for Eclipse" and click the Next button to install the steps. Figure:

5. Install to restart Eclipse, menu: Window-to-preferences, enter MAVEN for related settings.

For configuring environment variables you can watch a blog if you are not familiar with it.

Installing Maven's plugins in eclipse

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.