zoukankan      html  css  js  c++  java
  • springboot maven 更新jar包速度慢的问题

    maven更新jar包很慢可以试试使用阿里的国内镜像去更新jar包

    找到你的maven配置的 settings.xml 配置文件

    默认是在C:Users用户.m 路径下

    如果是自己安装的maven 仓库  :自己安装maven仓库conf  目录下

    替换以下内容:

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <settings>
     3   <localRepository>D:\mavenpool</localRepository><!--需要改成自己的maven的本地仓库地址-->
     4   <mirrors>
     5     <mirror>
     6       <id>alimaven</id>
     7       <name>aliyun maven</name>
     8       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
     9       <mirrorOf>central</mirrorOf>
    10     </mirror>
    11   </mirrors>
    12   <profiles>
    13     <profile>
    14       <id>nexus</id>
    15       <repositories>
    16         <repository>
    17           <id>nexus</id>
    18           <name>local private nexus</name>
    19           <url>http://maven.oschina.net/content/groups/public/</url>
    20           <releases>
    21             <enabled>true</enabled>
    22           </releases>
    23           <snapshots>
    24             <enabled>false</enabled>
    25           </snapshots>
    26         </repository>
    27       </repositories>
    28 
    29       <pluginRepositories>
    30         <pluginRepository>
    31           <id>nexus</id>
    32           <name>local private nexus</name>
    33           <url>http://maven.oschina.net/content/groups/public/</url>
    34           <releases>
    35             <enabled>true</enabled>
    36           </releases>
    37           <snapshots>
    38             <enabled>false</enabled>
    39           </snapshots>
    40         </pluginRepository>
    41       </pluginRepositories>
    42     </profile></profiles>
    43 </settings>

    保存  然后重启一下IDEA就好了

  • 相关阅读:
    Django学习笔记8
    Django杂记
    Django学习笔记7
    MongoDB
    python爬虫pyquery库详解
    python爬虫urllib库详解
    Django学习笔记13
    OpenCV(二)
    [译文]casperjs的API-colorizer模块
    什么是探索性测试?
  • 原文地址:https://www.cnblogs.com/sunxun001/p/13176451.html
Copyright © 2011-2022 走看看