我尝试mvn deploy
为我的项目做一个 for oss.jfrog.org。但是我收到此错误:
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://oss.jfrog.org/simple/oss-snapshot-local/com/myorg/mylibrary/com/myorg/mylibrary/0.0.1-SNAPSHOT/mylibrary-0.0
.1-20141211.050111-1.pom. Return code is: 409, ReasonPhrase: Conflict.
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:573)
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:493)
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:474)
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:454)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:871)
... 28 more
当我查看 JFrog 存储库浏览器时,我可以看到该 jar 具有正确的版本,这可能是什么错误,为什么即使出现此错误,jar 仍然部署?
这是我的 POM 设置:
<distributionManagement>
<repository>
<id>bintray-myorg-maven-mylibrary</id>
<name>artifactory-snapshots</name>
<url>http://oss.jfrog.org/simple/oss-snapshot-local/com/myorg/mylibrary/</url>
</repository>
</distributionManagement>
会不会是bintray-*
id的原因?