最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Getting 409 error when trying to deploy a maven artifact manually - Stack Overflow

matteradmin4PV0评论

I am not a maven person, but I need to deploy a jar file to a private maven repository. I am certain my credentials are correct and I do have enough permissions.

The command I am using is

mvn deploy:deploy-file -Durl=https://redacted/artifactory/redacted \
                          -DrepositoryId=redacted \
                          -Dfile=somefile.jar \
                          -DgroupId=redacted \
                          -DartifactId=redacted \
                          -Dversion=1.0.0 \
                          -Dpackaging=jar \
                          -DgeneratePom=true \
                          -X  

I keep getting a 409 error:

[ERROR] Failed to execute goal .apache.maven.plugins:maven-deploy-plugin:3.1.2:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact redacted:redacted:pom:1.0.0 from/to redacted (https://redacted/artifactory/redacted): status code: 409, reason phrase:  (409) -> [Help 1]
.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal .apache.maven.plugins:maven-deploy-plugin:3.1.2:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact redacted:redacted:pom:1.0.0 from/to redacted (https://redacted/artifactory/redacted): status code: 409, reason phrase:  (409)

I checked on the artifactory, the jar file got uploaded, but there is no pom file, like other maven artifacts that are corrected deployed.

Microsoft Copilot Chat does not provide much helpful information.

Post a comment

comment list (0)

  1. No comments so far