无法从 Nexus 存储库更新 Maven 配置
Unable to update maven configuration from nexus repository
无法从 https://devserver/nexus/content/groups/public was cached in the local repository, resolutions will not be reattempted until the update interval of nexus has elapsed or updates are forced. Could not transfer org.apache.maven.plugins:maven-resources-plugin:2.6 from/to nexus (https://devserver/nexus/content/groups/public 传输 org.apache.maven.plugins:maven-resources-plugin:2.6): sun.security.validator.ValidatorException:PXIX 路径构建 failed: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>
Java 无法验证您在 Nexus 上使用的 SSL 证书。看这里:https://support.sonatype.com/hc/en-us/articles/213465088-Maven-is-unable-to-connect-to-Nexus-after-configuring-Nexus-to-use-SSL-
无法从 https://devserver/nexus/content/groups/public was cached in the local repository, resolutions will not be reattempted until the update interval of nexus has elapsed or updates are forced. Could not transfer org.apache.maven.plugins:maven-resources-plugin:2.6 from/to nexus (https://devserver/nexus/content/groups/public 传输 org.apache.maven.plugins:maven-resources-plugin:2.6): sun.security.validator.ValidatorException:PXIX 路径构建 failed: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>
Java 无法验证您在 Nexus 上使用的 SSL 证书。看这里:https://support.sonatype.com/hc/en-us/articles/213465088-Maven-is-unable-to-connect-to-Nexus-after-configuring-Nexus-to-use-SSL-