我正在使用 azure devops,并尝试使用 Maven 构建代码和上传,但收到以下错误消息。
[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
我发现了一个问题thread https://stackoverflow.com/questions/58233094/error-failed-to-transfer-file-jar-with-status-code-409-despite-transfered喜欢类似的问题。根据该链接,不要使用快照,而是使用发布。所以我在这里添加我的 pom.xml 文件以供参考。
<?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>
我不知道如何解决这个问题。我见过很多版本的错误409。但似乎我的问题有所不同,请指导我。
在 Azure DevOps 中,您不能重复使用版本号 https://developercommunity.visualstudio.com/content/problem/809164/azure-devops-artifact-dele.html在工件存储库提要中。例如,如果您已经部署了v2.0
,并从源中删除它,如果您尝试重新部署,您将收到 HTTP 409 错误v2.0
未来任何时候都会有同名的神器。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)