Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Releasing and publishing from sbt-bintray

I'm trying to publish to bintray a relase for my library. I already released several versions till now.

java.lang.RuntimeException: error uploading to https://api.bintray.com/maven/raisercostin/maven/maven/org/raisercostin/jedi-io_2.10/0.22/jedi-io_2.10-0.22.pom: 
    {"message":"Unable to upload files: Maven group, artifact or version defined in the pom file do not match the file path 'org/raisercostin/jedi-io_2.10/0.22/jedi-io_2.10-0.22.pom'"}
        at bintray.BintrayMavenRepository.put(Resolver.scala:27)
        at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234)

I'm using bintray-sbt via project/plugins.sbt

addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")

The project with full details is hosted on github/jedi-io.

I noticed a double maven/maven in the api url and tried to "fix" it using a custom bintray-sbt and it didn't work with either: https://api.bintray.com/maven/raisercostin/maven/org/raisercostin/jedi-io_2.10/0.22/jedi-io_2.10-0.22.pom

like image 987
raisercostin Avatar asked Sep 28 '22 04:09

raisercostin


1 Answers

As a workaround I enabled publishing ivy style with publishMavenStyle := false and defined an additional ivy resolver in the using app resolvers += Resolver.url("raisercostin ivy resolver", url("http://dl.bintray.com/raisercostin/maven"))(Resolver.ivyStylePatterns)

like image 66
raisercostin Avatar answered Oct 05 '22 08:10

raisercostin