Maven 3.8.1 and HTTP Repositories

Hi all,

It’s me again reporting on yet another breaking change to our build infrastructure! This time, caused by a new update to Maven, specifically Maven 3.8.1, which was created in response to CVE-2021-26291.

Basically, with Maven 3.8.1, Maven repositories that use an http link instead of https are blocked by default. While locally it’s fairly simple to stick with Maven 3.6.3 or earlier, where we’ll get bit is with GitHub Actions (or, in a few cases Travis); both of these services seem to have updated the version of Maven in their base images to 3.8.1.

When this issue occurs there’s usually a tell-tale error in the build output like this:

Unresolveable build extension: Plugin org.openmrs.maven.plugins:maven-openmrs-plugin:1.0.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.openmrs.maven.plugins:maven-openmrs-plugin:jar:1.0.1: Could not transfer artifact org.openmrs.maven.plugins:maven-openmrs-plugin:pom:1.0.1 from/to maven-default-http-blocker ( Blocked mirror for repositories: [openmrs-repo (, default, releases)] -> [Help 2]

Note the mention of the maven-default-http-blocker and the apparent attempt to connect to The easy way to resolve this is to update the POM of the file you’re working on to use an HTTPS rather than HTTP link. Both our Maven repo ( and our Maven proxy ( have valid SSL certificates, so just changing, e.g.,




in the POM should get things back up and running.

Thanks @ibacher for tracking out this, we have been facing this kind of acatastrophy while debugging refapp distro

Thanks @kdaud who already fixed this for RATEST-129: Resolving arttifacts for referenceapplication-ui-tests module by kdaud · Pull Request #377 · openmrs/openmrs-distro-referenceapplication · GitHub


thanks @ibacher for sharing this

Thanks @ibacher for this!

I think it would be a better approach changing the url to for time efficiency during the ci-build plan rather than which redirects to the previous one

@kdaud is the canonical repo for OpenMRS… just in case JFrog also decides to drop Artifactory, so I’d recommend using