Software 152 Liu Hao John
First, JDK and maven ready to download
Bits of 1.JDK corresponds to the number of bits in Eclipse (example: 32 bits corresponds to 32 bits)
2.maven File: Maven-3.3.9.rar
3.maven Warehouse file:. m2.rar
Second, installation
1. Select a working disk, such as e: Disk, to create a folder Jee
2. Place the extracted files in the Jee folder:
JDK root directory is E:\jee\jdk1.7
Eclipse root directory is E:\jee\eclipse
Eclipse working Directory is E:\jee\workspace
Maven root directory is E:\jee\maven-3.3.9
Maven Repository root directory is E:\jee\.m2
Third, the configuration
1. Set the configuration file for Eclipse Eclipse.ini, modify the virtual machine path, and add-VM before-vmargs E:\jee\jdk1.7\bin\javaw.exe
Note: Open the changes with WordPad,-VM do not wrap. The actual operation found that, considering the computer compatibility issues, some computers need to-VM content after the line to run.
2. Launch Eclipse, set maven in menu
Search for "maven" in Window-prefrences, open the "Installations" option to set it up, import the Maven repository and select, as
3. Set the MAVEN local warehouse path
Maven local warehouse By default under C:\Users\ username \.m2, c disk space is usually very tense and needs to be moved to another disk, the steps are as follows:
(1) Modify the Setting.xml file in the Conf folder under the MAVEN root directory (E:\jee\maven-3.3.9) and add a new line:
<localRepository>e:\jee\.m2\repository</localRepository>
(2) Modifying the MAVEN configuration in eclipse
In the menu window--prefrences, open "Maven--user settings" as
Iv. Summary
The MAVEN environment is simple to build and can be done with the steps you follow. Be aware of the number of JDK and Eclipse bits to match!
Eclipse and MAVEN Environment building