-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Please help. I'm getting the following error when compiling my project in Netbeans .. please note this code compiled fine yesterday I see on some sites the http should no longer be used but when I do that I need a certificate.
Failed to transfer file: http://repo.maven.apache.org/maven2/org/zkoss/zk/zkbind/7.0.3.2/zkbind-7.0.3.2.pom. Return code is: 501, ReasonPhrase: HTTPS Required.
Pom.xml
....
<repositories>
<repository>
<id>ZK CE</id>
<name>ZK CE Repository</name>
<url>http://mavensync.zkoss.org/maven2</url>
</repository>
<repository>
<id>ZK EE</id>
<url>https://maven.zkoss.org/repo/zk/ee</url>
</repository>
</repositories>
....
Changing zkce url from http to https:
Could not transfer artifact org.ngi:zhighcharts:pom:0.2.0 from/to ZK CE (https://mavensync.zkoss.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
you didn't mention it but it sounds like your java version doesn't support the Let's encrypt certificate used on our repo https://mavensync.zkoss.org/maven2
If that's the case you have to either import the certificate manually or upgrade to a supported java version as mentioned in this list (recommended)
from https://letsencrypt.org/docs/certificate-compatibility/
This does not mean you have to run your project using this Java version, just the maven process needs to run using a version supporting the SSL certificate when downloading the dependencies into your local .m2/repository folder.
If this doesn't help, please contact our support directly.
Asked: 2020-01-16 18:33:26 +0800
Seen: 10 times
Last updated: Jan 17 '20
See the origin of this issue and why I can no longer build my project https ://stackoverflow.com/questions/59763531/maven-dependencies-are-failing-with-501-error/59769360#59769360
hechteka ( 2020-01-16 20:09:05 +0800 )edit