Address Book Maven central repository, Maven central repository configuration example

 

                                  "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)


  
  
  1. <repository>  
  2.      <id>alimaven </id>
  3.      <name>aliyun maven </name>
  4.      <url>http://maven.aliyun.com/nexus/content/groups/public/ </url>
  5. </repository> 

 

2, camunda.com central warehouse (devaluation 2)


  
  
  1. <repository>  
  2.      <id>activiti-repos2 </id>  
  3.      <name>Activiti Repository 2 </name>  
  4.      <url>https://app.camunda.com/nexus/content/groups/public </url>  
  5. </repository>  

 

3, spring.io central warehouse


  
  
  1. <repository>  
  2.      <id>springsource-repos </id>  
  3.      <name>SpringSource Repository </name>  
  4.      <url>http://repo.spring.io/release/ </url>  
  5. </repository>

 

4, maven.apache.org central warehouse


  
  
  1. <repository>  
  2.      <id>central-repos </id>  
  3.      <name>Central Repository </name>  
  4.      <url>http://repo.maven.apache.org/maven2 </url>  
  5. </repository>


5, maven.org central warehouse


  
  
  1. <repository>  
  2.      <id>central-repos1 </id>  
  3.      <name>Central Repository 2 </name>  
  4.      <url>http://repo1.maven.org/maven2/ </url>  
  5. </repository>

 

6, alfresco.com central warehouse (devaluation 3)


  
  
  1. <repository>  
  2.      <id>activiti-repos </id>  
  3.      <name>Activiti Repository </name>  
  4.      <url>https://maven.alfresco.com/nexus/content/groups/public </url>  
  5. </repository>  


7, oschina central warehouse (need x wall yo)


  
  
  1. <repository>  
  2.      <id>oschina-repos </id>  
  3.      <name>Oschina Releases </name>  
  4.      <url>http://maven.oschina.net/content/groups/public </url>  
  5. </repository>  

 

8, oschina thinkgem central warehouse (need x wall yo)


  
  
  1. <repository>   
  2.      <id>thinkgem-repos </id>   
  3.      <name>ThinkGem Repository </name>  
  4.      <url>http://git.oschina.net/thinkgem/repos/raw/master </url>  
  5. </repository> 

 

9, java.net central warehouse (need x wall yo)


  
  
  1. <repository>  
  2.      <id>java-repos </id>  
  3.      <name>Java Repository </name>  
  4.      <url>http://download.java.net/maven/2/ </url>  
  5. </repository>

 
 
10, github.com central warehouse (need x wall yo)


  
  
  1. <repository>   
  2.      <id>thinkgem-repos2 </id>   
  3.      <name>ThinkGem Repository 2 </name>  
  4.      <url>https://raw.github.com/thinkgem/repository/master </url>  
  5. </repository>  

 


Maven central repository configuration example

As used herein, the official central warehouse Dubbo example, add the following in profiles of nodes settings.xml:


  
  
  1. <profile>
  2. <id>jdk‐1.8 </id>
  3. <activation>
  4. <activeByDefault>true </activeByDefault>
  5. <jdk>1.8 </jdk>
  6. </activation>
  7. <properties>
  8. <maven.compiler.source>1.8 </maven.compiler.source>
  9. <maven.compiler.target>1.8 </maven.compiler.target>
  10. <maven.compiler.compilerVersion>1.8 </maven.compiler.compilerVersion>
  11. </properties>
  12. <-! Dubbo official solution ->
  13. <repositories>
  14. <repository>
  15. <id>sonatype-nexus-snapshots </id>
  16. <url>https://oss.sonatype.org/content/repositories/snapshots </url>
  17. <releases>
  18. <enabled>false </enabled>
  19. </releases>
  20. <snapshots>
  21. <enabled>true </enabled>
  22. </snapshots>
  23. </repository>
  24. </repositories>
  25. </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.

Guess you like

Origin blog.csdn.net/YiJianCaoTang/article/details/93365913