MAVEN was developed by Apache as well as Java. Maven needs support for your local system JDK

Source: Internet
Author: User
Tags maven central

1.

3. Add M2_home and Maven_home

Add the M2_home and Maven_home environment variables to the WINDOWS environment variable and point it to your MAVEN folder.

M2_home or Maven_home
Maven says it just adds M2_home, but some projects still refer to Maven's folder Maven_home, so add it for security.

4. Add to environment variable-PATH

Update the PATH variable, add the Maven Bin folder to the end of path, such as:%m2_home%\bin, so that you can run the MAVEN command in any directory in the command.

5. In Maven, when you declare a library that does not exist in the local repository and does not exist in the MAVEN central repository, the process stops and outputs the error message to the MAVEN console.

7.

Now, the Dependency Library query order of MAVEN changes to:

  1. Search in Maven local repository, if not found, enter 2nd step, otherwise exit.
  2. In the Maven central repository search, if not found, enter the 3rd step, otherwise exit.
  3. The remote repository search in java.net maven, if not found, prompts for an error message, otherwise exits.

MAVEN was developed by Apache as well as Java. Maven needs support for your local system JDK

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.