Deploy SNAPSHOT at oss.jfrog.org (JCenter)

I tried to do mvn deploy

oss.jfrog.org for my project. However, I am getting this error:

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

      

When I go through the JFrog Repository browser I see that there is a correct version in the jar, what could this error be, and why is the jar deployed anyway even with this error?

Here's my POM setup:

<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>

      

Could it be because of the bintray-*

id?

+1


source to share


1 answer


simple

shouldn't be part of your url. Artifactory assumes that simple

is the name of the repository and oss-snapshot-local

is part of yours groupId

. As the pom shows another groupId

, it fails with a 409.



+4


source







All Articles