"Maven central repository Address Book"
Done on an article in the "Address Book Maven Mirror" , and later spent time went on collected and analyzed maven remote repository address, and organize this, the configuration on the remote Maven repository, there are two addresses,
The first: pom.xml file directly in project modifications (not recommended, especially in multiplayer very protracted and painstaking process of development assistance);
The second: the unified configuration to Settings.xml the Maven profile in Maven remote repository;
Maven central repository Address Book
1, Ali central warehouse (devaluation 1)
-
<repository>
-
<id>alimaven
</id>
-
<name>aliyun maven
</name>
-
<url>http://maven.aliyun.com/nexus/content/groups/public/
</url>
-
</repository>
2, camunda.com central warehouse (devaluation 2)
-
<repository>
-
<id>activiti-repos2
</id>
-
<name>Activiti Repository 2
</name>
-
<url>https://app.camunda.com/nexus/content/groups/public
</url>
-
</repository>
3, spring.io central warehouse
-
<repository>
-
<id>springsource-repos
</id>
-
<name>SpringSource Repository
</name>
-
<url>http://repo.spring.io/release/
</url>
-
</repository>
4, maven.apache.org central warehouse
-
<repository>
-
<id>central-repos
</id>
-
<name>Central Repository
</name>
-
<url>http://repo.maven.apache.org/maven2
</url>
-
</repository>
5, maven.org central warehouse
-
<repository>
-
<id>central-repos1
</id>
-
<name>Central Repository 2
</name>
-
<url>http://repo1.maven.org/maven2/
</url>
-
</repository>
6, alfresco.com central warehouse (devaluation 3)
-
<repository>
-
<id>activiti-repos
</id>
-
<name>Activiti Repository
</name>
-
<url>https://maven.alfresco.com/nexus/content/groups/public
</url>
-
</repository>
7, oschina central warehouse (need x wall yo)
-
<repository>
-
<id>oschina-repos
</id>
-
<name>Oschina Releases
</name>
-
<url>http://maven.oschina.net/content/groups/public
</url>
-
</repository>
8, oschina thinkgem central warehouse (need x wall yo)
-
<repository>
-
<id>thinkgem-repos
</id>
-
<name>ThinkGem Repository
</name>
-
<url>http://git.oschina.net/thinkgem/repos/raw/master
</url>
-
</repository>
9, java.net central warehouse (need x wall yo)
-
<repository>
-
<id>java-repos
</id>
-
<name>Java Repository
</name>
-
<url>http://download.java.net/maven/2/
</url>
-
</repository>
10, github.com central warehouse (need x wall yo)
-
<repository>
-
<id>thinkgem-repos2
</id>
-
<name>ThinkGem Repository 2
</name>
-
<url>https://raw.github.com/thinkgem/repository/master
</url>
-
</repository>
Maven central repository configuration example
As used herein, the official central warehouse Dubbo example, add the following in profiles of nodes settings.xml:
-
<profile>
-
<id>jdk‐1.8
</id>
-
<activation>
-
<activeByDefault>true
</activeByDefault>
-
<jdk>1.8
</jdk>
-
</activation>
-
<properties>
-
<maven.compiler.source>1.8
</maven.compiler.source>
-
<maven.compiler.target>1.8
</maven.compiler.target>
-
<maven.compiler.compilerVersion>1.8
</maven.compiler.compilerVersion>
-
</properties>
-
<-! Dubbo official solution ->
-
<repositories>
-
<repository>
-
<id>sonatype-nexus-snapshots
</id>
-
<url>https://oss.sonatype.org/content/repositories/snapshots
</url>
-
<releases>
-
<enabled>false
</enabled>
-
</releases>
-
<snapshots>
-
<enabled>true
</enabled>
-
</snapshots>
-
</repository>
-
</repositories>
-
</profile>
As shown below:
Note: here represented jdk-1.8, using jdk-1.8 in the development environment, this environment is activated;
Well, on Maven remote repository Address Book To write here, if you have any questions or encounter any questions please scan code to ask questions, you can give me a message oh, I will be 11 detailed answer.
Twisters: "common learning and common progress," I hope you lot of attention CSND the IT community.