我正在使用Maven 3.3版本,並且正在將我的HTTP代理傳遞給settings.xml
,如下所示,但是在運行Maven安裝時,它會失敗。請幫我解決這個錯誤。執行Maven安裝時出現不可解析的父POM錯誤
代理配置:
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>test</username>
<password>pwd</password>
<host>http://xxx.test1234.com</host>
<port>1234</port>
</proxy>
登錄:
[FATAL] Non-resolvable parent POM for com.signalfx.public:appd-integration:0.0.2-SNAPSHOT: Failure to find org.sonatype.oss:oss-parent:pom:7 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 and 'parent.relativePath' points at wrong local POM @ line 6, column 10 The build could not read 1 project -> [Help 1]
[ERROR] The project com.signalfx.public:appd-integration:0.0.2-SNAPSHOT (/app/appd-integration/appd-integration/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.signalfx.public:appd-integration:0.0.2-SNAPSHOT: Failure to find org.sonatype.oss:oss-parent:pom:7 in was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6
'org.sonatype.oss:oss-parent:pom:7'看起來像一個錯誤。那不是'oss-parent-pom'嗎? – fejese
是的fejese得到它,謝謝! –
但運行oss-parent後:我只收到這個問題:沒有找到org.sonatype.oss:oss-parent-pom:pom:7在https://repo.maven.apache.org/maven2是緩存在本地存儲庫中,直到中央的更新時間間隔過去或強制更新並且「parent.relativePath」指向錯誤的本地時纔會重新解析分辨率 –