"Maven Combat" Eclipse Maven plugin installation and configuration (i)

Source: Internet
Author: User
Tags zip
First, prepare

Apache-maven-3.3.9-bin.zip Download Address: http://maven.apache.org/download.cgi Your computer has installed the JDK and environment variable configuration win system Java JDK1.7 Second, Local Installation 2.1 Extracting, configuring environment variables

1 Extract the downloaded apache-maven-3.3.9-bin.zip to the specified directory. I put it in D:\Maven.
2 Configure environment variables. As shown in figure:


3 Find the variable of path in the system variable and add%m2_home%\bin at the end of the variable value. Note: Multiple values should be separated by semicolons, then click the OK button.
4 Open a new CMD window and enter the following command in the window

C:\users\liulongling>echo%m2_home%

C:\users\liulongling>echo%m2_home%

The results are as follows:


Note: Because MAVEN relies on the Java Runtime environment, you need to configure the Java Runtime Environment before using MAVEN. Download and install the JDK, configure the JDK environment variable java_home, or MAVEN will not be able to use

2.2 Configure the warehouse path 1 Modify the MAVEN repository location, locate the settings.xml configuration file under maven under Conf, and add a new warehouse path mine is on the D-Disk D:\Repositories\Maven


2 maven default central repository files are not complete, you need to add additional mirror address. Add the following to the "<mirrors>" tab in the Settings.xml file:

<mirror>
<id>ibiblio</id>
<mirrorOf>central</mirrorOf>
< Name>human readable Name for this mirror.</name>
<url>http://mirrors.ibiblio.org/maven2/</url >
</mirror>
Note: Save the changes, and also need to copy this settings.xml file to the "d:/repositories" directory. 2.3 m2eclipse Plug -in installation1 Install the Eclipse plugin online:: Help--Install New software, then click the Add button on the right of work with------------


Because I have already installed, so will be prompted red Small fork fork. 2 Check if the installation is successful Window---Preferences, if you see something in the red box, then congratulations on your installation success.


3 Configure the installation path for MAVEN, note that the installation path installation path is installation path ... The important thing to say three times. is not a warehouse path.


4 Click the Browse button and select the Settings.xml file under Maven.


Author: Little Donkey, a game man
Dream: World Peace
Original address: Http://blog.csdn.net/liulongling If there is a mistake, please understand and welcome the criticism. This blog does not indicate the article reproduced by the author of the Small Donkey all, welcome to reprint, but without the consent of the author must retain this paragraph statement, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.

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.