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

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

<mirrors> 
     <mirror> 
       <id>nexus-releasesid> 
       <mirrorOf>*mirrorOf> 
       <url>http://mvn1.tools.xxx.com/nexus/content/groups/publicurl> 
     mirror>
     <mirror> 
       <id>nexus-snapshotsid> 
       <mirrorOf>*mirrorOf> 
       <url>http://mvn1.tools.xxx.com/nexus/content/repositories/snapshotsurl> 
     mirror> 
   mirrors> 

 

转载于:https://www.cnblogs.com/dannyyao/p/6829108.html

你可能感兴趣的:(maven - 配置强制从指定仓库拉取jar包)