配置Maven多仓库

http://blog.csdn.net/u012488504/article/details/52887297


在没有私服的情况下使用Maven,很大情况下依赖网速,为了节省我们宝贵的时间,最好配置多个仓库。在%MAVEN_HOME%\conf\settings.xml中进行如下配置.
[html]  view plain  copy
  1. <profile>  
  2.      <id>jdk-1.8</id>  
  3.      <activation>  
  4.        <jdk>1.8</jdk>  
  5.      </activation>  
  6.   
  7.      <repositories>    
  8.     <repository>    
  9.         <id>repo1</id>    
  10.         <name>org.maven.repo1</name>    
  11.         <layout>default</layout>  
  12.         <url>https://repo1.maven.org/</url>    
  13.         <snapshots>    
  14.             <enabled>false</enabled>    
  15.         </snapshots>    
  16.     </repository>    
  17.       
  18.     <repository>    
  19.         <id>central</id>    
  20.         <name>org.maven.repo1</name>    
  21.         <layout>default</layout>  
  22.         <url>http://central.maven.org/maven2/</url>    
  23.         <snapshots>    
  24.             <enabled>false</enabled>    
  25.         </snapshots>    
  26.     </repository>    
  27.       
  28.     <repository>  
  29.         <id>datanucleus</id>  
  30.         <url>http://www.datanucleus.org/downloads/maven2/</url>  
  31.     </repository>  
  32.     <repository>  
  33.         <id>ibiblio</id>  
  34.         <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>  
  35.     </repository>  
  36.     <repository>  
  37.         <id>gwt-maven</id>  
  38.         <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>  
  39.     </repository>  
  40.     <repository>  
  41.         <id>maven2-repository.dev.java.net</id>  
  42.         <name>Java.net Repository for Maven</name>  
  43.         <url>http://download.java.net/maven/2/</url>  
  44.     </repository>  
  45.     <repository>  
  46.         <id>jboss</id>  
  47.         <url>http://repository.jboss.com/maven2</url>  
  48.     </repository>  
  49.     <repository>  
  50.         <id>gilead-maven-repo</id>  
  51.         <url>https://gilead.svn.sourceforge.net/svnroot/gilead/gilead/maven-repo</url>  
  52.     </repository>  
  53.     <repository>  
  54.         <id>hibernat4gwt-repo</id>  
  55.         <url>https://hibernate4gwt.svn.sourceforge.net/svnroot/hibernate4gwt/branches/jens_meiss/maven/</url>  
  56.     </repository>  
  57.     <repository>  
  58.         <id>gilead-repo</id>  
  59.         <name>Gilead Maven Repository</name>  
  60.     <url>https://gilead.svn.sourceforge.net/svnroot/gilead/gilead/maven-repo</url>  
  61.     </repository>  
  62.    
  63.     </repositories>    
  64.    </profile>  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值