Azure artifacts - How to add additional Maven repositories as upstream

512 Views Asked by At

I am starting to use Azure artifacts from Azure DevOps services as Maven repository for our Java projects. We have an application with following dependency for which build is failing as the dependency is not resolved.

<!-- https://mvnrepository.com/artifact/org.apache.phoenix/phoenix-core -->
<dependency>
    <groupId>org.apache.phoenix</groupId>
    <artifactId>phoenix-core</artifactId>
    <version>5.0.0.7.2.8.5-5</version>
</dependency>

This artifact is located at Cloudera repository (https://repository.cloudera.com/artifactory/cloudera-repos/)

I am not finding a way to add a new Maven upstream in Azure artifacts. Documentation says it supports certain upstream maven repositories only.

I also tried with following version of the dependency, which available in maven central

<!-- https://mvnrepository.com/artifact/org.apache.phoenix/phoenix-core -->
<dependency>
    <groupId>org.apache.phoenix</groupId>
    <artifactId>phoenix-core</artifactId>
    <version>5.0.0-HBase-2.0</version>
</dependency>

Version 5.0.0-HBase-2.0 also resulted in error with following error

Failed to collect dependencies at org.apache.phoenix:phoenix-core:jar:5.0.0-HBase-2.0 -> org.apache.hbase:hbase-mapreduce:jar:2.0.0 -> org.apache.hbase:hbase-server:jar:2.0.0 -> org.glassfish.web:javax.servlet.jsp:jar:2.3.2 -> org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Failed to read artifact descriptor for org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [apache.snapshots (http://repository.apache.org/snapshots, default, snapshots)]

Any suggestions to circumvent this?

0

There are 0 best solutions below