maven配置私服不能远程下载中央仓库配置办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bestxianfeng163/article/details/85229177
//多配置一个镜像就好了
<mirrors>
     <mirror>
          <id>nexus</id>
          <mirrorOf>*</mirrorOf>
          <name>Nexus Mirror</name>
          <url>http://xxxx:8089/nexus/content/groups/public</url>
     </mirror>
     <!-- 阿里云仓库 -->
     <mirror>
          <id>alimaven</id>
          <mirrorOf>central</mirrorOf>
          <name>aliyun maven</name>
          <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
     </mirror>       
</mirrors>

猜你喜欢

转载自blog.csdn.net/bestxianfeng163/article/details/85229177