Apache maven is a software project management tool that, based on the concept of project object Model,pom, is used by MAVEN to manage project dependencies, compilation, documentation, and more.
When you use MAVEN to manage a project, the jar packages that the project relies on are not contained within the project, but are centrally placed in the. M2 folder in the user directory.
1.Maven Installation
1.1 Download Maven
: http://maven.apache.org/download.cgi
Download the correct MAVEN version according to the operating system and unzip it to a path.
1.2 Configuring MAVEN
Configure m2_home and path separately in System properties → advanced → environment variables, as shown in.
1.3 Test Installation
Enter "Mvn-v" in the console and get the information shown to indicate that the installation was successful.
1.4 Maven How it works
Maven automatically downloads dependent packages to the. M2 directory in the MAVEN Center library directly via the Internet, based on the dependency configuration in the dependency in Pom.xml, under the. M2 directory, which is your local maven library.
If you do not know how to write the dependency of the jar package you rely on, it is recommended to search http://mvnrepository.com website.
Download, install, test for Apache maven