There is another question related to this, but the error code is different (409).
还有另一个与此相关的问题,但错误代码不同(409)。
In the pom.xml file I added:
在pom.xml文件中我添加了:
bintray
https://api.bintray.com/maven/USERNAME/maven/PACKAGE_NAME;publish=1
jfrog-snapshots
http://oss.jfrog.org/artifactory/libs-snapshot
And the settings.xml file contains:
settings.xml文件包含:
bintray
USERNAME
API_KEY
jfrog-snapshots
USERNAME
API_KEY
The release is (almost) published to BinTray, but when I try to deploy a snapshot it fails with the following error:
该版本(几乎)已发布到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]
无法传输工件GROUP_ID:ARTIFACT_ID:jar:0.4-20150716.145236-1 from / to jfrog-snapshots(http://oss.jfrog.org/artifactory/libs-snapshot):无法传输文件:http:// oss。 jfrog.org/artifactory/libs-snapshot/GROUP_ID/ARTIFACT_ID/0.4-SNAPSHOT/ARTIFACT_ID-0.4-20150716.145236-1.jar。返回码为:405,ReasonPhrase:方法不允许。 - > [帮助1]
1 个解决方案
#1
4
libs-snapshot is a virtual repository which you cannot deploy artifacts to.
You should use the oss-snapshot-local repository instead:
libs-snapshot是一个虚拟存储库,您无法将工件部署到该存储库。您应该使用oss-snapshot-local存储库:
jfrog-snapshots
http://oss.jfrog.org/artifactory/oss-snapshot-local
有关更多信息,请参阅将Maven和Gradle快照部署到OJO(oss.jfrog.org)