Azure DevOps pipeline failed to connect to a repository

heng yeow (nova) 90 Reputation points
2026-04-15T03:45:43.7666667+00:00

My Azure DevOps pipeline failed today when it was performing a Maven build command: mvn clean install

I didn't change anything to the pipeline and it is still working fine at today 3.00am, below is the Maven steps from the .yml file

It seems Azure DevOps failed to connect to the repository, please advise

  - powershell: |
      $env:MAVEN_HOME = "$(Agent.TempDirectory)\maven\apache-maven"
      $env:PATH = "$env:MAVEN_HOME\bin;$env:PATH"
      Write-Host ">>> Run Maven Build"
      mvn clean install "-Dmaven.repo.local=$(Pipeline.Workspace)\.m2"
    displayName: 'Build Project with mvn clean install'

The error message initially:

[ERROR] Failed to execute goal on project spd: Could not resolve dependencies for project spd:spd:pom:1.0: Failed to collect dependencies at org.apache.wss4j:wss4j-ws-security-common:jar:4.0.0 -> org.opensaml:opensaml-saml-impl:jar:5.1.3: Failed to read artifact descriptor for org.opensaml:opensaml-saml-impl:jar:5.1.3: Could not transfer artifact org.opensaml:opensaml-saml-impl:pom:5.1.3 from/to B_shibboleth (https://build.shibboleth.net/nexus/content/groups/public): Transfer failed for https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-saml-impl/5.1.3/opensaml-saml-impl-5.1.3.pom: Connect to build.shibboleth.net:443 [build.shibboleth.net/3.213.250.186] failed: Connection timed out: connect -> [Help 1]

After re-triggering a few times:

[ERROR] Failed to execute goal on project spd: Could not resolve dependencies for project spd:spd:pom:1.0: Failed to collect dependencies at org.apache.wss4j:wss4j-ws-security-common:jar:4.0.0 -> org.opensaml:opensaml-saml-impl:jar:5.1.3: Failed to read artifact descriptor for org.opensaml:opensaml-saml-impl:jar:5.1.3: Could not transfer artifact org.opensaml:opensaml-saml-impl:pom:5.1.3 from/to B_shibboleth (https://build.shibboleth.net/nexus/content/groups/public): Authorization failed for https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-saml-impl/5.1.3/opensaml-saml-impl-5.1.3.pom 403 Forbidden -> [Help 1]

For reference, in my pom.xml, it has this dependency:

<dependency>
      <groupId>org.apache.wss4j</groupId>
      <artifactId>wss4j-ws-security-common</artifactId>
      <version>4.0.0</version>
</dependency>
Azure DevOps

Answer accepted by question author
Alex Burlachenko 25,115 Reputation points MVP Volunteer Moderator
2026-04-15T09:44:41.2266667+00:00

heng yeow (nova) hi and thx for join us here at Q&A portal,

so quick and simple )))) yeah this is not Azure DevOps breaking, its ur external repo (pipeline fine external repo either down or blocking u) ... key line is build.shibboleth.net ... timeout / 403, so Maven cant fetch dependency build fails

first it was timeout > network / repo down then 403 > repo now blocking access, so yeah nothing changed in ur pipeline, upstream repo changed or rate-limited u. U see that repo is not Maven Central, its custom Nexus they often block anonymous access or change permissions or throttle requests.

From my point of view the best fix isstop relying on that repo directly, add mirror or move dependency to Maven Central if possible or cache dependencies. retry sometimes works if its rate limit / temp block or use internal repo (Azure Artifacts / Nexus / Artifactory) so ur pipeline pulls from cache, not internet.

But if u must use that repo u probably now need auth (settings.xml with credentials).

rgds,

Alex

&pls if it helps accept my answer

Was this answer helpful?

1 person found this answer helpful.

Answer accepted by question author
Pravallika KV 18,850 Reputation points Microsoft External Staff Moderator
2026-04-15T09:17:58.61+00:00

Hi @heng yeow (nova) ,

As you mentioned, this isn't actually an Azure DevOps issue; it’s a dependency repository problem that just surfaced during your pipeline run.

Even though you only declared:

<dependency>
  <groupId>org.apache.wss4j</groupId>
  <artifactId>wss4j-ws-security-common</artifactId>
  <version>4.0.0</version>
</dependency>

it pulls a transitive dependency:

org.opensaml:opensaml-saml-impl:5.1.3

And Maven is resolving it from:

B_shibboleth → https://build.shibboleth.net/...

That means somewhere you have a <repository> entry in pom.xml OR settings.xmlOR parent POM

Check your pom.xml or settings.xml and remove the Shibboleth repository completely

<repository>
  <id>B_shibboleth</id>
  <url>https://build.shibboleth.net/nexus/content/groups/public</url>
</repository>

org.opensaml:opensaml-saml-impl:5.1.3 is already in Maven Central, so Maven will automatically resolve it from:

https://repo.maven.apache.org/maven2

No need for Shibboleth repo anymore.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Rod Widdowson 0 Reputation points
    2026-04-15T13:13:00.46+00:00

    build.shibboleth.net is being DDOSd so that repo is offline and may stay like that.

    Was this answer helpful?

    0 comments No comments

Your answer

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