java ee项目部署到服务器上405,如何将Maven快照部署到oss.jfrog.org?返回码:405

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)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值