Install and update Maven

Source: Internet
Author: User
Tags version control system

Maven is a very successful open-source project in the Apache organization. It mainly serves project construction, dependency management, and Project Information Management Based on Java platform;

1) Maven is cross-platform and can be used on Windows, Linux, and Mac;

2) Maven can help us manage open-source class libraries introduced into the project to solve problems such as version inconsistency, version conflicts, and bloated dependencies due to the increasing dependency of class libraries;

3) Maven can help us manage project information, including project description, developer list, version control system address, license, and defect management system address;

4) Maven provides a free central repository for Java developers, where almost any popular open-source class libraries can be found. Maven can automatically help us download components;

5) Maven follows the "Convention is better than configuration" policy;

 

1. Install Maven (Windows)

1) slave;

2) decompress the obtained Maven to any directory (this directory as the installation directory), the local decompression directory is: D: \ apache-maven-3.2.1;

3) Add the environment variable m2_home, the value is the maven installation directory, the local is D: \ apache-maven-3.2.1;

4) add % m2_home % \ bin to the end of the path variable of the environment variable;

5) confirm the environment variables in the systemJava_home exists. java_home points to the JDK installation directory. The local java_home value is D: \ syspros \ JDK, and % java_home % \ bin is added to the end of the variable path;

6) run the CMD command line and enter the command MVN-version. If the maven version number is displayed, the installation is successful.

 

Note: For other configurations, see http://maven.apache.org/download.cgi;

 

2. Update Maven

It is easy to update maven on windows. You only need to download the new Maven Installation File, decompress it to the local directory, and then update the m2_home environment variable.

 

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.