关于eclipse上面的maven下载jar包太慢的解决方法
2017-04-08 00:00
183 查看
在setting.xml里面的的内容给替换掉:
<mirrors>
<!-- mirror
Specifies a repository mirror site to use instead of a given repository. The repository that
this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>nexus</id>
<name>internal nexus repository</name>
<!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>-->
<url>http://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<mirrors>
<!-- mirror
Specifies a repository mirror site to use instead of a given repository. The repository that
this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>nexus</id>
<name>internal nexus repository</name>
<!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>-->
<url>http://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
相关文章推荐
- 关于eclipse使用maven下载jar包失败的解决方法
- 关于Maven构建Appfues时出com.sun:tools:jar:1.5.0错的解决方法
- Eclipse maven工程 Missing artifact com.sun:tools:jar:1.6.0:system 解决方法
- Eclipse maven工程 Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- 解决eclipse中maven web工程打包成war(发布到tomcar)时lib中没有jar包的解决方法
- 关于eclipse导入jar包无法查看源码解决方法
- 关于maven下载jar包失败的问题的总结和解决
- 下载maven JAR包太慢?各种方法解决。不再为此烦恼!
- 在国内使用maven下载jar包非常慢的解决方法
- eclipse每天启动时maven 自动download jar包的pom解决方法
- maven下载jar包失败的原因- 解决方法汇总
- Eclipse关于svn和maven插件的下载方法
- 解决osx中maven总是下载jar包到eclipse自带仓库的问题
- 关于eclipse添加maven后报缺少JDK的错误解决方法
- 关于maven下载jar包失败的问题的总结和解决
- eclipse中maven项目jar包不会自动下载解决办法
- maven下载jar包失败的原因- 解决方法汇总
- Eclipse下maven项目自动打war包丢失jar包问题解决方法
- Eclipse maven工程 Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- Jar包冲突解决方法 Unknown lifecycle phase "mvn" Eclipse中执行maven命令