
專案從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包的時候出錯
uj5u.com熱心網友回復:
倉庫清空過 還是可以根據 pom.xml中的坐標 下載下來jar包 但是在打war包的時候提示錯誤
uj5u.com熱心網友回復:
可能是有些網站無法訪問導致的吧可以參考
http://www.cnblogs.com/wql025/p/4996484.html
這里的方法試試。
另外,你的dom4j參考了2次,
盡量使用
http://mvnrepository.com
中的jar
uj5u.com熱心網友回復:
你解決沒有兄弟uj5u.com熱心網友回復:
洗掉掉lastupdated結尾的檔案,然后清除依賴重新打包試試轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/30386.html
標籤:Apache
下一篇:css 全網頁 六邊形布局
