我正在尝试为我的库发布bintray版本。到目前为止,我已经发布了几个版本。
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)
我使用bintray-sbt通过project/plugins.sbt
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")
完整的详细信息项目托管在github/jedi-io上。
我注意到api url中有两个maven/maven
,并试图使用自定义bintray-sbt来"修复"它,但它都不起作用:https://api.bintray.com/maven/raisercostin/maven/org/raisercostin/jedi-io_2.10/0.22/jedi-io_2.10-0.22.pom
作为解决方案,我启用了publishMavenStyle := false
发布ivy样式,并在使用应用程序resolvers += Resolver.url("raisercostin ivy resolver", url("http://dl.bintray.com/raisercostin/maven"))(Resolver.ivyStylePatterns)
中定义了一个额外的ivy解析器