标签:oschina net dea set enc pos led pre color
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就好了
标签:oschina net dea set enc pos led pre color
原文地址:https://www.cnblogs.com/sunxun001/p/13176451.html