项目打war包出现以下错误

qq_37054939 2017-06-09 05:56:19

项目从SVN上检下来 后 发现pom.xml中两个依赖jar包报错 Missing artifact net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.2.0,Missing artifact com.rop:rop:jar:1.0.7
但是 maven仓库中存在这两个jar包:


在运行打war包的时候报错

Failed to execute goal on project ECS_Insurance: Could not resolve dependencies for project com.antunnel.ecs:ECS_Insurance:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.2.0, com.rop:rop:jar:1.0.7: Failure to find net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.2.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
在依赖包中 也存在:


而且也不影响项目的运行,就是打jar包的时候出错
...全文
1561 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
逃往猎户座 2020-07-08
  • 打赏
  • 举报
回复
你解决没有兄弟
咦哟~~~ 2020-07-08
  • 打赏
  • 举报
回复
删除掉lastupdated结尾的文件,然后清除依赖重新打包试试
孟子E章 2017-06-10
  • 打赏
  • 举报
回复
可能是有些网站无法访问导致的吧 可以参考 http://www.cnblogs.com/wql025/p/4996484.html 这里的方法试试。 另外,你的dom4j引用了2次, 尽量使用 http://mvnrepository.com 中的jar
qq_37054939 2017-06-09
  • 打赏
  • 举报
回复
仓库清空过 还是可以根据 pom.xml中的坐标 下载下来jar包 但是在打war包的时候提示错误

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧