Download from Maven remote Repository

Source: Internet
Author: User
Tags maven central
Example

Org. jvnet. localizer is only applicable to the java.net resource library.

Pom. xml
<dependency>        <groupId>org.jvnet.localizer</groupId>        <artifactId>localizer</artifactId>        <version>1.8</version></dependency>

If not stated, an error will be reported.

 

Declare the java.net Repository

Tell Maven to obtain java.net dependencies. You need to declare the remote repository in the Pom. xml file as follows:

Pom. xml


 <repositories><repository>    <id>java.net</id>    <url>https://maven.java.net/content/repositories/public/</url></repository>    </repositories>


Now, the maven dependent database query order is changed:

    1. Search for the maven local resource library. If not found, go to step 2. Otherwise, exit.
    2. Search for the maven central repository. If not found, go to step 2. Otherwise, exit.
    3. Search for the remote repository of java.net maven. If no information is found, an error message is displayed. Otherwise, exit.

Download from Maven remote Repository

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.