MAVEN Learning---Maven add a remote repository

Source: Internet
Author: User
Tags jboss maven central

By default, MAVEN downloads all dependencies from the MAVEN central repository. However, some libraries are missing in the central repository and can only be found in java.net or JBoss repository remote repositories.

1. java.net Resource Library

Add the java.net remote repository details in the "Pom.xml" file.

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

Note
The old " HTTP://DOWNLOAD.JAVA.NET/MAVEN/2"is still available, but it is recommended to upgrade to the latest repository. 2. JBoss maven Repository

1. Add details of the JBoss remote repository in the "Pom.xml" file.

Pom.xml
<project ...>    <repositories>      <repository><id>jboss repository</id><url >http://repository.jboss.org/nexus/content/groups/public/</url>      </repository>    </ Repositories></project>

Note: the old http://repository.jboss.com/maven2/is obsolete and is no longer used. Reference
    1. http://maven2-repository.java.net/


Tags: Maven add remote repositories

This site is reproduced in addition to the article, are the original site or compiled
Welcome any form of reprint, but please be sure to indicate the source, respect for the work of others to create excellent examples of the tutorial
Reprint Please specify: Article reprinted from: http://www.yiibai.com/maven/add-remote-repository-in-maven-pom-xml.html

MAVEN Learning---Maven add a 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.