Maven构建,打破依赖

时间:2019-06-02 22:09:43

标签: java maven

在构建Java项目时,Maven依赖于一个依赖项失败,而这并不是6个月前的事。

原始错误是:

Failed to execute goal on project bdpreviewer: Could not resolve dependencies for project bdpreviewer:bdpreviewer:jar:3.6.1-SNAPSHOT: Failed to collect dependencies for [xxx]: Failed to read artifact descriptor for Mozilla:Glue:jar:1.9: Could not transfer artifact Mozilla:Glue:pom:1.9 from/to com.teamdev (http://maven.teamdev.com/repository/products): peer not authenticated -> [Help 1]

根据this answer,我添加了以下Maven选项:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

我现在遇到以下错误

Failed to execute goal on project bdpreviewer: Could not resolve dependencies for project bdpreviewer:bdpreviewer:jar:3.6.1-SNAPSHOT: Failed to collect dependencies for [xxx]: Failed to read artifact descriptor for Mozilla:Glue:jar:1.9: Could not transfer artifact Mozilla:Glue:pom:1.9 from/to com.teamdev (http://maven.teamdev.com/repository/products): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

我观察到的是

  • http://maven.teamdev.com/repository/products存储库不包含任何Mozilla / Glue文件夹
  • 我的本地.m2\repository文件夹中确实包含Glue-1.9.jar,但没有相应的.pom文件。

最新:我正在使用Maven 3.0.5

我该如何解决?

0 个答案:

没有答案