1. 程式人生 > >在myeclipse中maven項目關於ssh整合時通過pom.xml導入依賴是pom.xml頭部會報錯

在myeclipse中maven項目關於ssh整合時通過pom.xml導入依賴是pom.xml頭部會報錯

eat 3.0 是我 ttr exc temp 找不到 repos 3.0.5

錯誤如下

ArtifactTransferException: Failure to transfer org.springframework:spring-jdbc:jar:3.0.5.RELEASE from http:// repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elaps

解決辦法:

添加依賴之後,總是報添加的依賴的jar文件找不到,但是在承上啟下的庫裏面能找到這個依賴的JAR文件,但是在本地的maven的庫裏面找不到,於是我將本地庫裏面這個依賴對應的文件夾刪掉,然後在eclipse裏面執行更新依賴。成功解決問題!

在myeclipse中maven項目關於ssh整合時通過pom.xml導入依賴是pom.xml頭部會報錯