我得到這個:的Maven無法找到本地回購神器
Failed to execute goal on project boot: Could not resolve dependencies for project xxx:boot:jar:1.0.0-SNAPSHOT: Could not find artifact xxx:xxx:jar:1.0.0-SNAPSHOT in central (http://xxx/artifactory/all/) -> [Help 1]
這arifact只是在我的本地回購。 (是的,我可以在那裏看到)Maven沒有接受。
我在SO上看到很多想法,但都沒有成功。
我已經嘗試了所有的sugestions對SO:
find ~/.m2/repository -name _maven.repositories -exec rm -v {} \;
find ~/.m2/repository -name _remote.repositories -exec rm -v {} \;
我刪除了回購,並重新編譯了所有所需的依賴(即MVN安裝)。
我加
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
到POM
我試圖MVN -o安裝
我不知道下一個嘗試的!我在Ubuntu 16.04上使用mvn 3.3.9
看起來像你不能從http://xxx/artifactory/all/下載xxx:xxx:jar.check you settings.xml,這是一個遺留的url嗎?你可以ping它嗎? – fanshaoer
也許我不清楚。那個罐子不在遙遠的地方。它只存在於本地。 Maven不在那裏看。 – mmaceachran
你確定目標jar文件位於版本庫嗎? xx.jar和xx.pom應該在那裏。 – fanshaoer