Windows installer maven and Eclipse install maven plugin

Source: Internet
Author: User

Environment Description:

Window 8.1 64bit

Eclipse Version:luna Release (4.4.0)

Maven 3.0.5

Windows Maven Installation:

1. Make sure the JDK is installed, my JDK is 1.7.0_60

2. Download Maven3, version 3.0.5, address: http://maven.apache.org/download.cgi

Download the Bin.zip file and extract it to the specified folder, my D:\Program files\maven\apache-maven-3.0.5

3. Configuring MAVEN3 Environment variables

Maven_home, Path: D:\Program files\maven\apache-maven-3.0.5

Add after path;%maven_home%/bin

4. Run the cmd window, enter the command mvn-version, and the following is successful:

Apache Maven3.0.5(R01DE14724CDEF164CD33C7C8C2FE155FAF9602DA; -- Geneva- + 2 -+0800) Maven Home:d:\program files\maven\apache-maven-3.0.5\bin\. Java version:1.7. 0_60, vendor:oracle Corporationjava home:c:\program files\java\jdk1.7. 0_60\jredefault LOCALE:ZH_CN, platform Encoding:gbkos name:"Windows 8.1", Version:"6.3", Arch:"AMD64", Family:"Windows"

5. Modify the Maven repository storage location (my location is in E:\Repositories\Maven)

Go to%maven_home%/conf, find settings.xml, add the following code in the <settings> tab

< localrepository > E:\Repositories\Maven</localrepository>

6. Run CMD window, enter mvn help:system download

Eclipse plug-in installation:

There are two kinds of installation methods, one is an online installation and one is an off-line installation.

Online: Installation Address (HTTP://M2ECLIPSE.SONATYPE.ORG/SITES/M2E)

Offline:

1. Create a link and myplugins two folders in the Eclipse directory

2. Download the eclipse-maven3-plugin.7z and compress it into the Myplugins directory: Http://pan.baidu.com/s/1qW8tqva

3. Create a Maven.link in the links directory, open and enter: Path=%elcipse_home%/myplugins/maven, where%eclipse_home% is your ECLIPSE directory

4. Restart Eclipse

5. Check that MAVEN is installed successfully and configure MAVEN

Open Eclipse and enter window->preferences

Configure MAVEN paths

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.