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.