Before installing MAVEN, install the JDK and configure the JAVA_HOME environment variable first. JDK1.4 above.
Download Maven3, the latest version is maven3.0.3,:http://maven.apache.org/download.html
After downloading the Apache-maven-3.0.3-bin.zip file, unzip to D:\tools\apache-maven-3.0.3
Configure MAVEN3 environment variables, first configure the environment variable of m2_home, the value is "D:\tools\apache-maven-3.0.3", (Set environment variable, set to the system environment variable go, do not set the user environment variable above, because the system environment variable permission is larger) As shown in the following:
Then configure the PATH environment variable, add "%m2_home%\bin" at the end of the path value (set the environment variable, set to the system environment variable, do not set the user environment variable above, because the system environment variable permissions are larger) as shown;
Open the cmd command window, execute "mvn-version", will output the following content, indicating that the installation was successful.
The 64 bits below are as follows:
Eclipse Plug-in installation
1) Plug-in installation
Click menu Help, install new software for plug-in installation
Plugin address http://m2eclipse.sonatype.org/sites/m2e
If you have successfully installed this plugin, when you open window→preferences ... , you should be able to see a maven option in a list of options
After installing the M2eclipse plugin, you need to make two settings.
A) Disable Downloadrepository index updates on startup (that is, uncheck this option, the third fourth one can be ordered), as
b) Set the Maven setting.xml file path, as
Eclipse Configuration Maven