Maven installation (including MyEclipse install maven plugin)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.