IDEA使用maven打javaweb生成war包速度慢的问题解决

这主要是每次都需要去下载相关依赖,所以速度会很慢,使用阿里的镜像

找到maven安装地址然后一般都会把conf中的settings.xml文件进行拷出来进行修改,这里打开settings.xml  

<mirrors>  
    <!--此处文本自带注释内容就不显示了 -->  
<mirror>  
      <!--This sends everything else to /public -->  
      <id>nexus</id>  
      <mirrorOf>*</mirrorOf>   
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
    </mirror>  
    <mirror>  
      <!--This is used to direct the public snapshots repo in the   
          profile below over to a different nexus group -->  
      <id>nexus-public-snapshots</id>  
      <mirrorOf>public-snapshots</mirrorOf>   
      <url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>  
    </mirror>  
</mirrors>  

网上找个好几个镜像,这个是亲测可以用的


速度12秒就可以啦,当时没有使用阿里镜像的时候需要2分钟多一点



猜你喜欢

转载自blog.csdn.net/qq_35733535/article/details/80174807