构建Maven时出现错误。我为nexus.codehaus.org添加了镜像存储库,但仍用于codehaus。
Maven构建错误:-
org.apache.maven.plugins:maven-enforcer-plugin:1.2或其依赖项之一无法解析:无法读取org.apache.maven.plugins:maven-enforcer-plugin:jar的工件描述符: 1.2:无法从/到mojo快照(https://nexus.codehaus.org/content/repositories/codehaus-snapshots/)传输工件org.apache.maven.plugins:maven-enforcer-plugin:pom:1.2:nexus.codehaus.org:未知主机nexus.codehaus.org -> [帮助1]
我在setting.xml中添加的镜像存储库:-
<mirror>
<id>no-codehaus-releases</id>
<name>codehaus releases</name>
<url>https://repository.mulesoft.org/nexus/content/repositories/public/</url>
<mirrorOf>codehaus-releases,codehaus,mule-deps,codehaus.org</mirrorOf>
</mirror>
<mirror>
<id>no-codehaus-snapshots</id>
<name>codehaus snapshots</name>
<url>https://repository.mulesoft.org/snapshots/</url>
<mirrorOf>codehaus-snaphosts</mirrorOf>
</mirror>
请让我知道我是否错过了任何事情。