【问题标题】:Failed to deploy artifacts: Could not find artifact无法部署工件:找不到工件
【发布时间】:2017-01-31 18:50:23
【问题描述】:

当运行此命令部署 aretifact 时说它在存储库服务器上找不到它。现在应该先上传吗?

mvn deploy:deploy-file -DgroupId=com.microbuild3.test -DartifactId=com.microbuild3.com -Dversion=0.0.1 -Dfile=./target/com.microbuild3.test-0.0.2-SNAPSHOT.war -Durl=https://api.bintray.com/maven/meja0016/microbuild3/com.microbuild3.test -DrepositoryId=bintray 

【问题讨论】:

  • 请发布整个错误输出...
  • [错误] 无法在项目 com.microbuild3.test 上执行目标 org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli):部署失败工件:在 bintray (api.bintray.com/maven/meja0016/microbuild3/com.microbuild3.test) 中找不到工件 com.microbuild3.test:com.microbuild3.com:war:0.0.1 ->
  • 我遇到了同样的错误。我有相同的项目,可以顺利部署到 repsy.io maven repo。但它没有部署到 bintray,因为这个错误说找不到工件。

标签: maven bintray


【解决方案1】:

您的语法似乎没有遵循 Bintray 的 Maven Upload REST API。 您的 URL 包含您的组织名称和您的姓名,它不包含存储库名称。 你的路径应该是:

https://bintray.com/api/v1/maven/microbuild3/:repositoy_name/:package_name/:file_path[;publish=0/1]

更多信息Publishing Your Maven Project to Bintray博客。

我在 JFrog 背后的公司。

【讨论】:

    猜你喜欢
    • 2021-10-16
    • 1970-01-01
    • 2013-04-13
    • 1970-01-01
    • 1970-01-01
    • 2022-08-06
    • 2014-03-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多