使用 OSC Maven 第三方仓库
来源:互联网 发布:淘宝访客忽然下降一半 编辑:程序博客网 时间:2024/06/15 21:09
如果您在使用 OSC Maven 时是否遇到了这个问题:
”[ERROR] Failed to execute goal on project ...: Could not resolve dependencies for project ...: The following artifacts could not be resolved: com.smart:smart-framework:jar:1.0, ...: Failure to find com.smart:smart-framework:jar:1.0 in http://maven.oschina.net/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of osc has elapsed or updates are forced -> [Help 1] “
或许本文会帮您解决这个问题。
据了解,目前 OSC Maven 已经将所有第三方 jar 包放到了独立的仓库中,该仓库的地址如下:
http://maven.oschina.net/content/repositories/thirdparty/
为了防止与中央仓库同步时导致冲突,目前 thirdparty 仓库与 public 仓库没有任何交集了,也就是说它们是完全独立的,public 不再包括 thirdparty。
所以需要在自己的 setting.xml 中做如下配置:
配置 mirror
<mirrors>... <mirror> <id>osc</id> <mirrorOf>central</mirrorOf> <url>http://maven.oschina.net/content/groups/public/</url> </mirror> <mirror> <id>osc_thirdparty</id> <mirrorOf>thirdparty</mirrorOf> <url>http://maven.oschina.net/content/repositories/thirdparty/</url> </mirror>...</mirrors>
配置 profile
<profiles>... <profile> <id>osc</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>osc</id> <url>http://maven.oschina.net/content/groups/public/</url> </repository> <repository> <id>osc_thirdparty</id> <url>http://maven.oschina.net/content/repositories/thirdparty/</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>osc</id> <url>http://maven.oschina.net/content/groups/public/</url> </pluginRepository> </pluginRepositories> </profile>...</profiles>
原文地址:http://my.oschina.net/huangyong/blog/195559
0 0
- 使用 OSC Maven 第三方仓库
- 使用 OSC Maven 第三方仓库
- 使用 OSC Maven 仓库
- maven 使用第三方仓库
- 使用maven命令将第三方jar包导入本地仓库
- maven 添加第三方jar到本地仓库
- maven 安装第三方构建到本地仓库
- eclipse Maven 插件添加第三方远程仓库
- 上传第三方jar包到maven远程仓库nexus
- 安装第三方jar包到本地maven仓库
- maven向本地仓库导入第三方jar包
- 在maven中使用第三方库
- 使用maven 安装第三方jar包
- 【Maven学习】Nexus私服代理其他第三方的Maven仓库
- 第三方yum仓库搭建
- 个人开源项目 第三方Git@OSC客户端
- maven使用中央仓库没有的jar包001---Maven自定义上传第三方包到3rd party(第三方无依赖jar和本地扩展类加入maven统一管理)
- 上传jar到私服的两种方式From POM和GAV Parameters。使用Nexus管理Maven仓库时,上传带依赖的第三方jar.
- 友元类
- AOP初级
- android学习四:xml
- 树莓派实战1:查询自己内网,外网ip
- 一个资深SOHO程序员对新人的建议
- 使用 OSC Maven 第三方仓库
- IOS View编程指南笔记
- NYOJ 33 蛇形填数
- HDU 4372 Count the Buildings(组合数学,第一类Stirling数)
- YUV格式学习:YUV420P、YV12、NV12、NV21格式转换成RGB24
- CodeForces 46D Parking Pot(线段树区间更新)
- 史上最全程序员创业指南之兼职私单
- 程序员也能当老板,年薪100W不是梦,我行你也行!
- 命令模式