首页 > 代码库 > maven - 配置强制从指定仓库拉取jar包

maven - 配置强制从指定仓库拉取jar包

从官方maven仓库拉取依赖,会超级慢。可配置settings.xml,强制从私服拉取

<mirrors> 
     <mirror> 
       <id>nexus-releases</id> 
       <mirrorOf>*</mirrorOf> 
       <url>http://mvn1.tools.xxx.com/nexus/content/groups/public</url> 
     </mirror>
     <mirror> 
       <id>nexus-snapshots</id> 
       <mirrorOf>*</mirrorOf> 
       <url>http://mvn1.tools.xxx.com/nexus/content/repositories/snapshots</url> 
     </mirror> 
   </mirrors> 

 

maven - 配置强制从指定仓库拉取jar包