maven搜索仓库
2016-01-18 22:03
393 查看
——爱迪生经过1001次实验成功发明了电灯
1、maven搜索服务
国外常见maven仓库:可能打开很慢甚至无法打开,解决方案。代理、svn或国内maven搜索仓库
1.1 Sonatype Nexus
http://repository.sonatype.org/
1.2 Jarvana
http://www.jarvana.com/
1.3MVNbrowser
http://www.mvnbrowser.com
1.4 MVNrepository (访问速度比上面三个快些)
http://mvnrepository.com/
2、配置maven下载地址
http://repo1.maven.org/maven2/ 是真正的Maven中央仓库的地址,该地址内置在Maven的源码中。也是默认jar包下载地址,我们可以通过setting.xml配置文件,配置指定下载地址。
修改setting.xml文件。默认在maven目录下的conf目录下。
例如:打开settring.xml文件,在<mirrors>标签对内插入<mirror>标签对
• 由于在国内连接外国maven可能会很慢,整理一些国内maven仓库。
====================国内OSChina提供的镜像,非常不错===================
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
========================================================
OSChina Maven 库使用帮助
==================其他maven仓库镜像==========================
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
<id>net-cn</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://maven.net.cn/content/groups/public/</url>
</mirror>
<mirror>
<id>ui</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>ibiblio</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
原文地址
时间:2016年1月18日21:46:45
备注:内容整理于网络
1、maven搜索服务
国外常见maven仓库:可能打开很慢甚至无法打开,解决方案。代理、svn或国内maven搜索仓库
1.1 Sonatype Nexus
http://repository.sonatype.org/
1.2 Jarvana
http://www.jarvana.com/
1.3MVNbrowser
http://www.mvnbrowser.com
1.4 MVNrepository (访问速度比上面三个快些)
http://mvnrepository.com/
2、配置maven下载地址
http://repo1.maven.org/maven2/ 是真正的Maven中央仓库的地址,该地址内置在Maven的源码中。也是默认jar包下载地址,我们可以通过setting.xml配置文件,配置指定下载地址。
修改setting.xml文件。默认在maven目录下的conf目录下。
例如:打开settring.xml文件,在<mirrors>标签对内插入<mirror>标签对
<mirrors> <mirror> <id>CN</id> <name>OSChina Central</name> <url>http://maven.oschina.net/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors>
• 由于在国内连接外国maven可能会很慢,整理一些国内maven仓库。
====================国内OSChina提供的镜像,非常不错===================
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
========================================================
OSChina Maven 库使用帮助
==================其他maven仓库镜像==========================
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
<id>net-cn</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://maven.net.cn/content/groups/public/</url>
</mirror>
<mirror>
<id>ui</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>ibiblio</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
原文地址
时间:2016年1月18日21:46:45
备注:内容整理于网络
相关文章推荐
- SVN学习记录
- mac系统下如何删除银行安全插件
- 为什么数据库有这条数据,却怎么也查询不出来
- 欢迎使用CSDN-markdown编辑器
- GreenPlum 介绍 - client认证、限制并发、SSL连接
- 162 Find Peak Element
- KVC的使用 -- 没整明白呢 先留个位置 第四天课程的结尾
- JavaBeans及其使用方式,作用域范围
- Linux学习之less命令
- 小工具之文件整合
- 改善C++ 程序的150个建议学习之建议20:使用memcpy()系列函数时要足够小心
- 磁盘和文件系统管理LVM(二)
- Delphi下使用Sato打印机
- 开始!
- 最大流-最小割定理
- SmtpClient 类
- javax.servlet.ServletException: Error instantiating servlet class ***
- 关于无法使用广播接收器对电话的监听问题
- layer-list的用法
- ubuntu下配置NFS,TFTP服务