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就好了

  • 相关阅读:
    list extend 和 append
    构建同元素的列表
    Python拷贝(深拷贝deepcopy与浅拷贝copy)
    MySQL之对数据库库表的字符集的更改
    Shell之while循环
    安装keepalived
    Zabbix监控MySQL
    Ganglia监控MySQL
    将Nagios监控信息存入Mysql
    Hadoop之回收站
  • 原文地址:https://www.cnblogs.com/sunxun001/p/13176451.html
Copyright © 2011-2022 走看看