Because one of my test playground projects needs a few dependencies from a repository other than Maven Central, I added this to my POM:
<repository>
<id>jenkins-releases</id>
<name>Jenkins Releases</name>
<url>https://repo.jenkins-ci.org/releases/</url>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
This works locally, but not in GitHub workflows, see e.g. this build log. In each of the build matrix logs, there is the same error:
org.eclipse.aether.transfer.NoRepositoryConnectorException:
Blocked mirror for repositories:
[repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/, default, releases+snapshots)]
I am puzzled, not because HTTP URLs are being blocked by Maven 3.8.1+, which is a known fact, but because I configured https://
, not http://
. So why is Maven still trying to resolve an unencrypted URL? Is there some kind of redirection on the server that I am unaware of? A curl -v -L
call did not reveal anything suspisious, and I can also browse the repository URL normally under HTTPS in a web browser.
I am aware of this question, but the answers are not helping me to understand the problem at hand. So do not quickly judge this one as a duplicate, because it is not about how to disable HTTP blocking in Maven 3.8.1+, but about why I am running into this problem when not even using an HTTP repository.
As it only happens on GitHub Actions, is that a GitHub-specific problem? Do they block anything which my local workstation does not block?