sbt.ResolveException: download failed: maven-plugins#maven-cobertura-plugin #4

Closed
TimothyKlim opened this Issue Aug 7, 2012 · 6 comments

Comments

Projects
None yet
2 participants

Hi, I have build.sbt:

name := "example"

version := "0.1"

scalaVersion := "2.9.2"

resolvers ++= Seq(
  "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases",
  "Typesafe repo" at "http://repo.typesafe.com/typesafe/repo",
  "Sonatype Snapshot" at "https://oss.sonatype.org/content/repositories/snapshots"
)


libraryDependencies ++= Seq(
    "com.github.scala-incubator.io" %% "scala-io-core" % "0.4.1-seq",
    "com.github.scala-incubator.io" %% "scala-io-file" % "0.4.1-seq",
    "org.scalesxml" %% "scales-xml" % "0.3.1",
    "org.scalesxml" %% "scales-jaxen" % "0.3.1"
)

but sbt can't resolve some libraries:

[info] Resolving findbugs#findbugsGUI;1.0.0 ...
[warn]  [NOT FOUND  ] maven-plugins#maven-cobertura-plugin;1.3!maven-cobertura-plugin.plugin (176ms)
[warn] ==== Typesafe Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/maven-plugins/maven-cobertura-plugin/1.3/maven-cobertura-plugin-1.3.plugin
[warn]  [NOT FOUND  ] maven-plugins#maven-findbugs-plugin;1.3.1!maven-findbugs-plugin.plugin (172ms)
[warn] ==== Typesafe Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/maven-plugins/maven-findbugs-plugin/1.3.1/maven-findbugs-plugin-1.3.1.plugin
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: maven-plugins#maven-cobertura-plugin;1.3!maven-cobertura-plugin.plugin
[warn]  :: maven-plugins#maven-findbugs-plugin;1.3.1!maven-findbugs-plugin.plugin
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/home/timothy/example/}default-307a69/*:update: sbt.ResolveException: download failed: maven-plugins#maven-cobertura-plugin;1.3!maven-cobertura-plugin.plugin
[error] download failed: maven-plugins#maven-findbugs-plugin;1.3.1!maven-findbugs-plugin.plugin
Owner

chris-twiner commented Aug 7, 2012

Hi, yes this is more than annoying. I have a lighter-weight version in the old repository pom wise, and there is a another version whose pom is cleaner:

org.apache.servicemix.bundles org.apache.servicemix.bundles.jaxen.

I'm going to try this out now. If it works I'll bundle #3 and #4 into a 0.3.2 and 0.4.2 release later today.

Owner

chris-twiner commented Aug 7, 2012

In the meantime you can try to use:

"org.scalesxml" %% "scales-xml" % "0.3.1",
"org.scalesxml" %% "scales-jaxen" % "0.3.1" intransitive(),
"jaxen" % "jaxen" % "1.1.3" intransitive()

which should only download the jars themselves and not attempt to download the others.

Owner

chris-twiner commented Aug 7, 2012

unfortunately that pom also brings in a very old and test breaking version of xerces. (the solution as with aalto is to use a non version aware reader/sax parser pool but its not transparent).

But I'll specifically add the intransitive solution to the 0.3.2 and 0.4.2 release notes

chris-twiner added a commit that referenced this issue Aug 7, 2012

chris-twiner added a commit that referenced this issue Aug 7, 2012

Owner

chris-twiner commented Aug 7, 2012

instructions in release notes, will publish notes tomorrow. release is already made

Thank you!

Owner

chris-twiner commented Aug 8, 2012

You are more than welcome, and many thanks for raising this.

chris-twiner added a commit that referenced this issue Aug 8, 2012

chris-twiner added a commit that referenced this issue Aug 8, 2012

chris-twiner added a commit that referenced this issue Aug 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment