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