Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restlet maven repository rejected by maven 3.8.1 #1384

Open
marinier opened this issue Apr 27, 2021 · 2 comments
Open

restlet maven repository rejected by maven 3.8.1 #1384

marinier opened this issue Apr 27, 2021 · 2 comments

Comments

@marinier
Copy link

Maven projects that depend on restlet fail using maven 3.8.1 (or later) with an error like this (note the jsoar references are just from my project):

Error:  Failed to execute goal on project jsoar-legilimens: Could not resolve dependencies for project com.soartech:jsoar-legilimens:jar:4.0.4-SNAPSHOT: Failed to collect dependencies at org.restlet.jse:org.restlet:jar:2.4.2: Failed to read artifact descriptor for org.restlet.jse:org.restlet:jar:2.4.2: Could not transfer artifact org.restlet.jse:org.restlet:pom:2.4.2 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [maven-restlet (http://maven.restlet.org, default, releases+snapshots)] -> [Help 1]

The issue appears to be that as of maven 3.8.1, maven no longer allows http addresses for repositories. The restlet maven parent pom has many http addresses baked in, including the one the error mentions. Changing these to https (and fixing your expired certificate for https://maven.restlet.org) should fix the problem.

More info here:
https://maven.apache.org/docs/3.8.1/release-notes.html

@thboileau
Copy link
Contributor

thboileau commented May 31, 2021

Hi @marinier
thanks for reporting this issue.
The certificate has not been fixed yet.
could you try with https://maven.restlet.talend.com

@marinier
Copy link
Author

marinier commented Jun 4, 2021

That URL worked! I included it in my pom like this:

    <repositories>
        <repository>
            <id>maven-restlet</id>
            <name>Public online Restlet repository</name>
            <url>https://maven.restlet.talend.com</url>
        </repository>
    </repositories>

marinier added a commit to soartech/jsoar that referenced this issue Jun 4, 2021
…th maven 3.8.1 now

Previously I had baked in an earlier version of maven to work around this issue on github, which always uses the latest maven. But it should work now without that workaround.
See restlet/restlet-framework-java#1384
dan2097 pushed a commit to dan2097/opsin-ws that referenced this issue Apr 5, 2023
…aven

Transfer failed for
https://maven.restlet.com/org/restlet/jee/org.restlet/2.4.3/org.restlet-2.4.3.pom:
PKIX path validation failed: java.security.cert.CertPathValidatorException:
validity check failed: NotAfter: Sun Nov 13 17:05:56 GMT 2022 -> [Help 1]

Please see:
  restlet/restlet-framework-java#1384
mjw99 added a commit to BlueObelisk/chemicaltagger-webapp that referenced this issue Jul 11, 2023
…aven

Transfer failed for
https://maven.restlet.com/org/restlet/jee/org.restlet/2.4.3/org.restlet-2.4.3.pom:
PKIX path validation failed: java.security.cert.CertPathValidatorException:
validity check failed: NotAfter: Sun Nov 13 17:05:56 GMT 2022 -> [Help 1]

Please see:
  restlet/restlet-framework-java#1384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants