木兰模块生成器中的“有效认证路径”问题

时间:2018-05-02 12:30:25

标签: maven-3 magnolia maven-archetype

我尝试使用maven generator archetype生成新的木兰模块

  

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog = https://nexus.magnolia-cms.com/content/groups/public/

Archetype抛出异常

  

[警告]读取原型目录https://nexus.magnolia-cms.com/content/groups/public时出错   org.apache.maven.wagon.TransferFailedException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security   .provider.certpath.SunCertPathBuilderException:无法找到所请求目标的有效证书路径

使用-X和-e选项运行maven会产生压倒性的日志记录,但不会增加清晰度

1 个答案:

答案 0 :(得分:0)

我在当地尝试过,它对我有用。

但是,当我第一次尝试时它失败了,因为它无法访问nexus,后来一切都很好。如果失败,你还可以检查你是否有问题达到nexus?

此外,也许它们与maven设置有关。请查看https://wiki.magnolia-cms.com/display/DEV/Maven+setup

干杯,