我目前正在将应用程序从Java 6迁移到Java 8,并且使用的插件有一些问题。构建时出现以下错误:
Failed to resolve artifact.
Error transferring file: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
jfree:jcommon:jar:1.0.16
from the specified remote repositories:
Project (http://lmarccdkmaaf01.ptx.fr.sopra:10008/repository/Project),
commons (http://lmarccdkmaaf01.ptx.fr.sopra:10008/repository/commons/),
central (http://repo1.maven.org/maven2),
apacherepository (http://repo.maven.apache.org/maven2),
jboss-ga-plugin-repository (http://maven.repository.redhat.com/techpreview/all),
jboss-ga-repository (http://maven.repository.redhat.com/techpreview/all),
mvnrepository (https://mvnrepository.com/artifact),
Map (https://orion.agriculture/artifactory/Map),
mvnrepository1 (http://central.maven.org/maven2),
mvnrepository2 (http://repo1.maven.org/maven2),
cdk-map (http://lmarccdkmaaf01.ptx.fr.sopra:10008/repository/Map/)
Path to dependency:
1) org.codehaus.mojo:jasperreports-maven-plugin:maven-plugin:1.0-beta-2
2) jasperreports:jasperreports:jar:1.2.0
3) jfree:jcommon:jar:1.0.16
所以根据我所看到的,我猜这个错误与我使用的JasperReport版本有关。
在pom中,我使用:
jasperreports-maven-plugin: 1.0-beta-2
net.sf.jasperreports: 6.2.0
如果您还有其他需要,我在这里。我不知道该怎么办,我试图越过最新版本的插件,但没有结果。所以现在我请求您的帮助:)