restlet-framework-java icon indicating copy to clipboard operation
restlet-framework-java copied to clipboard

restlet maven repository rejected by maven 3.8.1

Open marinier opened this issue 3 years ago • 2 comments

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

marinier avatar Apr 27 '21 23:04 marinier