gpt4 book ai didi

java - 如何将 Maven 快照部署到 oss.jfrog.org?返回代码 : 405

转载 作者:行者123 更新时间:2023-11-29 03:07:20 24 4
gpt4 key购买 nike

还有一个question与此相关,但错误代码不同(409)。

在我添加的pom.xml文件中:

<distributionManagement>
<!-- Release repository -->
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/USERNAME/maven/PACKAGE_NAME;publish=1</url>
</repository>
<!-- Snapshot repository -->
<snapshotRepository>
<id>jfrog-snapshots</id>
<url>http://oss.jfrog.org/artifactory/libs-snapshot</url>
</snapshotRepository>
</distributionManagement>

settings.xml 文件包含:

<servers>
<server>
<id>bintray</id>
<username>USERNAME</username>
<password>API_KEY</password>
</server>
<server>
<id>jfrog-snapshots</id>
<username>USERNAME</username>
<password>API_KEY</password>
</server>
</servers>

版本已 ( almost ) 发布到 BinTray,但是当我尝试部署快照时失败并出现以下错误:

Could not transfer artifact GROUP_ID:ARTIFACT_ID:jar:0.4-20150716.145236-1 from/to jfrog-snapshots (http://oss.jfrog.org/artifactory/libs-snapshot): Failed to transfer file: http://oss.jfrog.org/artifactory/libs-snapshot/GROUP_ID/ARTIFACT_ID/0.4-SNAPSHOT/ARTIFACT_ID-0.4-20150716.145236-1.jar. Return code is: 405, ReasonPhrase: Method Not Allowed. -> [Help 1]

最佳答案

libs-snapshot 是一个 virtual repository您无法将 Artifact 部署到其中。
您应该改用 oss-snapshot-local 存储库:

<snapshotRepository>
<id>jfrog-snapshots</id>
<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>
</snapshotRepository>

有关详细信息,请参阅 Deploying Maven and Gradle snapshots to OJO (oss.jfrog.org)

关于java - 如何将 Maven 快照部署到 oss.jfrog.org?返回代码 : 405,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31458098/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com