Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
timothyklim opened this issue Aug 7, 2012 · 6 comments

Comments

@timothyklim
Copy link

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
@chris-twiner
Copy link
Owner

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.

@chris-twiner
Copy link
Owner

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.

@chris-twiner
Copy link
Owner

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
@chris-twiner
Copy link
Owner

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

@timothyklim
Copy link
Author

Thank you!

@chris-twiner
Copy link
Owner

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
Projects
None yet
Development

No branches or pull requests

2 participants