Download, install, test for Apache maven

Source: Internet
Author: User

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

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.