question

XUSHIYAN-2116 avatar image
0 Votes"
XUSHIYAN-2116 asked BartVanBogaert-9361 answered

Azure Pipeline MS hosted job blocked maven repository mirror

Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [datanucleus (http://www.datanucleus.org/downloads/maven2, default, releases), glassfish-repository (http://maven.glassfish.org/content/groups/glassfish, default, disabled), glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish, default, disabled), apache.snapshots (http://repository.apache.org/snapshots, default, snapshots), central (http://repo.maven.apache.org/maven2, default, releases), conjars (http://conjars.org/repo, default, releases+snapshots)]


Maven dependencies repositories blocked from Azure Pipelines build environment. Anyone knows how to resolve this?

Details in this build
https://dev.azure.com/apache-hudi-ci-org/apache-hudi-ci/_build/results?buildId=108&view=logs&j=49186a26-7c18-5ea7-a030-c991549c6bb6&t=21f2af40-2a5f-5246-f47b-34f6d07b886a

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

BartVanBogaert-9361 avatar image
2 Votes"
BartVanBogaert-9361 answered

It seems the agents in azure have maven upgraded lately : in my build of a couple of days ago, it was still using maven 3.6.3, but now it's 3.8.1.

Release notes :
https://maven.apache.org/docs/3.8.1/release-notes.html

Starting from this build, http is now by default blocked.
The best solution would be to upgrade your repositories to https.

You can create exceptions, I found this stackOverflow answer about it :
https://stackoverflow.com/questions/66980047/maven-build-failure-dependencyresolutionexception

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.