您的位置:首页 > 其它

解决Maven默认仓库没有的jar下载(二)

2016-02-06 20:51 363 查看

前言:

在 “解决Maven不能下载“oracle、aspectjweaver、com.springsource.net.sf.cglib”jar(http://www.cnblogs.com/wql025/p/4996484.html )”一文中我写到了如果像oracle这样的jar不能在maven默认仓库下载的解决方法。现在我知道了一个非常强大的Maven仓库地址:

http://maven.oschina.net/home.html

可能很多小伙伴已知道啦。

所以当有些jar不能下载可以在pom.xml加上:

<repositories>
<repository>
<id>Sonatype</id>
<name>Sonatype Repository</name>
<url>http://maven.oschina.net/home.html</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>


这种方法我在“解决Maven不能下载“oracle、aspectjweaver、com.springsource.net.sf.cglib”jar”博客中也讲过,所以这篇文章题目叫做二。

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: