One, MAVEN installation and environment variable configuration
1. Download maven, official website http://maven.apache.org/download.html
Download version as shown below:
2, the download files extracted to any directory, it is best not to have spaces and Chinese, such as placed in D:\Program files\apache-maven-3.2.2;
3, environment variable configuration: New system variable maven_home, variable value is D:\ProgramFiles\apache-maven-3.2.2;
4, increase the value of the path variable%maven_home%\bin, if Maven is extracted to the C-disk directory, you can not increase the value of the variable;
5. Test if MAVEN is installed successfully, run cmd, enter mvn-version or MVN-V, display the following information, indicating the installation is successful. (Special note: JDK must be installed and configured correctly before installing MAVEN, see my Log for JDK installation and configuration: http://blog.csdn.net/brucefo/article/details/36192567)
Second, install Maven plugin for MyEclipse
1, MAVEN installation after the general modification of the warehouse address (for the project depends on the jar package), the default is the C drive. M2 folder, can be modified to any other folder, such as D:\Program Files\apache-maven-3.2.2\repo, while modifying D : \program Files\apache-maven-3.2.2\conf In the settings.xml file, set to create their own warehouse path;
2, verify: Open a command prompt, enter: mvn help:system, the command will print out all the Java System Properties and environment variables. This information is very helpful to our daily programming work. If there are no errors during the run, opening our warehouse (D:\Program Files\apache-maven-3.2.2\repo) will find some more files inside. These files are downloaded from MAVEN's central repository to the local repository.
3, open MyEclipse, enter Window-preference-myeclipse-maven4myeclipse-inatallations, set MAVEN installation path;
4, enter Window-preference-myeclipse-maven4myeclipse-user Settings, set the current library address;
At this point, the MAVEN installation is complete.