安装maven 3.0.3
1. download maven bin file, unzip it.
2. Environment Variables setup:
a. M2_HOME=D:\Tim_installed\apache-maven-3.0.3
b. M2 = %M2_HOME%\bin
c. path=%JAVA_HOME%\bin;%M2%;%Path%;
3. eclipse plugin install
a. get m2eclipse(maven2Plugin).rar
b. unzip it and copy the whole “maven2” folder to “dropins” folder in eclipse home.
Folder structure is similar to: dropins\maven2\features\, dropins\maven2\plugins\
c. edit eclipse.ini in eclipse home folder, add below line under the “openFile” string.
-vm
D:\jdk1.6.0_27\bin\javaw.exe
4. further setup in eclipse IDE
a. reboot eclipse instance and go to Preference -> Java -> Installed JREs, specify a JDK as the installed JREs
b. go to Preference -> Maven -> Installation, add the maven home address
c. go to Preference -> Maven -> User Settings, change User settings value similar to below string:
D:\Tim_installed\apache-maven-3.0.3\conf\settings.xml
D:\Tim_installed\apache-maven-3.0.3\conf\settings.xml
d. before step c, add below line to settings.xml file located in above path.
<localRepository>D:\mvn_repo\mvn-repo</localRepository>
<localRepository>D:\mvn_repo\mvn-repo</localRepository>
浙公网安备 33010602011771号