我正在使用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”指向错误的本地时才会重新解析分辨率 –