Java return to the 1th episode: Manually Configuring the MAVEN environment for Eclipse

Source: Internet
Author: User
First, eclipse configuration Maven1.1, download maven

http://maven.apache.org/download.cgi, select the corresponding version, window download Apache-maven-3.5.3-bin.zip can, and then extract to the local, I extracted here to the D-disk d:\ apache-maven-3.2.5

1.2. Add Environment variables

Add environment variable m2_home=d:\apache-maven-3.2.5

Then add the Maven bin to path, such as adding the following%m2_home%\bin

Open cmd, if you can see the version of Maven, the local maven configuration OK

1.3. Configuring Eclipse

You need to create a local MAVEN local repository directory locally, such as my D:\maven\repository, and then find the Server.xml in the MAVEN directory D:\apache-maven-3.2.5\conf to add the address of the local repository

<localRepository>D:\maven\repository</localRepository>

Then go to eclipse and start configuring Maven for Eclipse, such as entering the path to MAVEN's profile at 1, and then clicking Update Settings to automatically identify the local warehouse path and click Apply.

If you want to make sure that the changes take effect, see, for example, that the changes take effect

Java return to the 1th episode: Manually Configuring the MAVEN environment for 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.