无法转移org.apache.maven.plugins:来自https://devserver/nexus/content/groups/public的maven-resources-plugin:2.6缓存在本地存储库中,在nexus的更新间隔过去或更新后才会重新尝试解析被迫的。无法传输org.apache.maven.plugins:maven-resources-plugin:2.6 from / to nexus(https://devserver/nexus/content/groups/public):sun.security.validator.ValidatorException:PXIX路径构建失败:sun.security.provider.cerpath .SunCertPathBuilderException:无法找到请求目标的有效证书路径。
我使用nexus-professional-2.14.1-01
Settings.xml文件是
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository />
<interactiveMode />
<usePluginRegistry />
<offline />
<pluginGroups />
<servers />
<mirrors>
<mirror>
<!-- This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>https://dev.server.net/nexus/content/groups/public</url>
</mirror>
</mirrors>
<proxies />
<profiles>
<profile>
<id>nexus</id>
<!-- Enable snapshots for the built in central repo to direct -->
<!-- all requests to nexus via the mirror -->
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!-- make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
答案 0 :(得分:1)