This is a difficult weekend to summarize some of the actions of Maven:
1, before installing MAVEN to confirm that the computer has installed and configured the JDK;
2. Download maven:
maven-3.0.3:http://download.csdn.net/detail/wangshuxuncom/7367413
maven-3.0.5:http://download.csdn.net/detail/wangshuxuncom/7551799
Description: The above resources are free to download
Choose maven-3.0.3 here to demonstrate the installation. After downloading the maven-3.0.3 will be a compressed file, the file is extracted to a folder called "maven-3.0.3", the folder is copied to the place where you want to copy, here we copied to the C-Drive Program Files folder;
3. Configure the MAVEN environment variables (shown here in the Windows operating system):
A, check "computer" and right mouse select and click on "Properties (R)" to get:
b, click on "Advanced system Settings" to get:
C, click on "Environment variable (N) ..." to get:
D. Click "New (W) ..." in the "C" step chart to get:
Do the following: "Variable name (N)" Input m2_home
"Variable Value (V)" Input C:\Program files\maven-3.0.3
As shown in the following:
Click on the "OK" button, so step d to complete;
The "System variable (S)" field in the E, "C" step diagram finds the PATH variable and clicks on "edit (I) ..." to get:
Do the following: Take a look at the value at "Variable Value (V)" is also no English semicolon if you do not add a semicolon and added "%m2_home%\bin" (Add the time without any double quotes OH), if there is a direct at the end of the add "%m2_home%\bin", add the end of the click " OK button, e step to this end;
--click the "OK" button and click the "OK" button to configure the MAVEN environment variable configuration to complete.
4. Test whether the installation is successful:
Open the CMD command window and execute "mvn-version" if the output, such as the following, indicates that the installation was successful.