restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
645 stars 284 forks source link

restlet maven repository rejected by maven 3.8.1 #1384

Open marinier opened 3 years ago

marinier commented 3 years ago

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 commented 3 years ago

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

marinier commented 3 years ago

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>