I am using azure devops, and trying to building code and upload using maven, but i am getting following error message.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file
(default-cli) on project ojdbc7:
com.huber.abc:ojdbc7:jar:2.0 from
to dev-azure-com-abc-devops-abc-artifacts (https://pkgs.dev.azure.com/ABC-DevOps/_packaging/abc-
Artifacts/maven/v1):
Failed to transfer file
https://pkgs.dev.azure.com/abc-DevOps/_packaging/abc-
Artifacts/maven/v1/com/huber/abc/ojdbc7/2.0/ojdbc7-2.0.jar with status code 409 -> [Help 1]Failed to
deploy artifacts:
Could not transfer artifact
I had found one question thread like similar issue. As per that link don't use snapshot but use release. So I am adding my pom.xml file here for the reference.
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.myorg.abc</groupId>
<artifactId>ojdbc7</artifactId>
<version>2.0</version>
</project>
I don't know how to resolve this issue. I have seen many versions of error 409. But it seems my issue is different, please guide me.
repositories
node in it. BTW, I could not get any useful info from the error log, it just show error status code 409 without any other useful info, so I could not give any useful suggestion, try to share the debug log, or any other info about this issue. – Smolder