admin管理员组文章数量:1026989
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.
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.
本文标签: Getting 409 error when trying to deploy a maven artifact manuallyStack Overflow
版权声明:本文标题:Getting 409 error when trying to deploy a maven artifact manually - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745665618a2162159.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论