maven尝试下载上次下载时没有的包
2015-11-24 11:06
274 查看
[ERROR] Failed to execute goal on project esf-common: Could not resolve dependencies for project com.sinohealth:esf-common:jar:1.0-SNAPSHOT: Failure to find bitwalker:UserAgentUtils:jar:1.13 in http://192.168.2.136:8081/nexus/content/groups/public/ was cached
in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
第一次编译时,自己架设的maven代理nexus中没有UserAgentUtils:jar这个包。后来在网上下载了这个包,并上传到代理后,再编译时,还报这个错,原因是缓中记录这个库中没有这个包。解决的办法是加-U参数,让maven重新尝试下载没有的包:
更多命令参数,可以mvn -help查看
in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
第一次编译时,自己架设的maven代理nexus中没有UserAgentUtils:jar这个包。后来在网上下载了这个包,并上传到代理后,再编译时,还报这个错,原因是缓中记录这个库中没有这个包。解决的办法是加-U参数,让maven重新尝试下载没有的包:
mvn clean install -U
更多命令参数,可以mvn -help查看
相关文章推荐
- 原生对象、内置对象、宿主对象的区别
- C语言常见命名规范
- linux命令学习笔记(40):wc命令
- linux命令学习笔记(39):grep 命令
- TUST项目知识点总结(Android端V1.0)
- Gson 使用
- UICollectionView的用法
- android原生系统老系统不支持localstorage
- C++学习中关于cout遇到的一个小问题
- 项目记录05--客unity,服erlang--另外一种AssetBundle打包方式
- MFC操作注册表
- 50个Android开发技巧(01 好好利用layout_weight属性)
- C#反射的简单示例
- A First Look at Rust Language
- linux命令学习笔记(38):cal 命令
- linux命令学习笔记(37):date命令
- linux命令学习笔记(36):diff 命令
- 浅谈压缩感知(四):恢复算法
- 为什么Hbase能实现快速的查询
- [置顶] 闪客工具:Web H5 UI