Azure Pipeline MS hosted job blocked maven repository mirror

#XU SHIYAN# 41 Reputation points
2021-05-15T20:44:14.687+00:00

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

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Bart Van Bogaert 86 Reputation points
    2021-05-20T08:07:02.12+00:00

    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

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.