Build with Maven does not find lib in Artifacts

Asked

Viewed 61 times

0

I’m building a pipeline in Azure Devops to build java projects with Maven.

When trying to download libs in Artifacts the following error appears

Caused by: org.eclipse.Aether.resolution.Artifactresolutionexception: Could not find Artifact com.oracle:ojdbc14:jar:10.2.0.4.0 in Azure.maven.XXX.com.br

But when consulting in Artifacts I find the lib

inserir a descrição da imagem aqui

Does anyone know what to do for Maven to find that lib?

1 answer

1

For the error message, Maven is not finding the Maven Central packages.

For this to work you need to set up Maven Central as upstream from your Artifacts feed.

You can check this settings in your feed settings, Upstream sources > Add upstream source

Then select the option Select the URL feed and select Maven Central.

Reference: Use Packages from Maven Central

  • 1

    Thank you for Reply , I tried to do what you said, it worked for all other artifacts except for those of the oracle, To solve the problem I made a provisionally fixed Alternative Solution (Gambiarra ) which consists of going up the oracle lib to a separate file and build time using <dependency> <groupid>com.oracle</groupid> <artifactId>ojdbc14</artifactId> <version>10.2.0.4.0</version> <Scope>system</Scope> <systemPath>${basedir}/src/jar/ojdbc14-10.2.0.4.0.jar</systemPath> </dependency>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.