Outdated URL for the Restlet Maven Repo
Closed this issue · 1 comments
If you add a dependency on XMLCalabash 1.5.7-120 to your Java project, e.g.:
<dependency>
<groupId>com.xmlcalabash</groupId>
<artifactId>xmlcalabash</artifactId>
</dependency>
If you don't already have a locally cached copy of the Restlet dependency and you try and compile mvn compile
you will get the following error:
[ERROR] Failed to execute goal on project pkg-calabash: Could not resolve dependencies for project org.expath.packaging:pkg-calabash:jar:2.0.2-SNAPSHOT: Failed to collect dependencies at com.xmlcalabash:xmlcalabash:jar:1.5.7-120 -> org.restlet.jee:org.restlet:jar:2.2.2: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.2.2: The following artifacts could not be resolved: org.restlet.jee:org.restlet:pom:2.2.2 (absent): Could not transfer artifact org.restlet.jee:org.restlet:pom:2.2.2 from/to maven-restlet (https://maven.restlet.org): PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed: NotAfter: Fri Dec 16 19:19:29 CET 2022 -> [Help 1]
The issue is that the SSL certificate used for https://maven.restlet.org
(which is the Maven repo for the Restlet dependency of Calabash) expired in December 2022:
$ curl -vkI https://maven.restlet.org
...
* Server certificate:
* subject: CN=maven.restlet.org
* start date: Nov 14 18:19:29 2021 GMT
* expire date: Dec 16 18:19:29 2022 GMT
Previously here - #228 @ndw kindly added the Maven Repo for Restlet to the published pom.xml files. However, it looks like (see: https://restlet.talend.com/downloads/current/#sample-pom) the URL of the Maven repo now needs to be updated to point at: https://maven.restlet.talend.com.
Thanks.
Actually I just noticed I had a local override in my pom.xml
hierarchy that was causing the above issue. Resolving that revealed another issue that I will open separately now.