I'm trying to set jboss-interceptor-api-1.1 as a dependency via sbt, but it can't be found. I've searched on Maven Repository and this version is there, can anyone help me?
Actually, I'm trying to use sbt-assembly. Removing the plugin dependency and adding the dependency to libraryDependencies still shows that error.
Stack trace:
[info] Resolving org.jboss.interceptor#jboss-interceptor-api;1.1 ... [info] Resolving org.jboss.interceptor#jboss-interceptor-api;1.1 ... [warn] problem while downloading module descriptor: https://repo1.maven.org/maven2/org/jboss/interceptor/jboss-interceptor-api/1.1/jboss-interceptor-api-1.1.pom: invalid sha1: expected=453b712ff6cda3a3f10f46a9ab9b9a42fc9bc021 computed=56da14e5a3e7e5656fe2ed1942d9fc0c1f3b054b (122ms) [warn] module not found: org.jboss.interceptor#jboss-interceptor-api;1.1 [warn] ==== typesafe-ivy-releases: tried [warn] https://repo.typesafe.com/typesafe/ivy-releases/org.jboss.interceptor/jboss-interceptor-api/1.1/ivys/ivy.xml [warn] ==== sbt-plugin-releases: tried [warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jboss.interceptor/jboss-interceptor-api/1.1/ivys/ivy.xml [warn] ==== local: tried [warn] /Users/vicaba/.ivy2/local/org.jboss.interceptor/jboss-interceptor-api/1.1/ivys/ivy.xml [warn] ==== public: tried [warn] https://repo1.maven.org/maven2/org/jboss/interceptor/jboss-interceptor-api/1.1/jboss-interceptor-api-1.1.pom [warn] ==== activator-launcher-local: tried [warn] /Users/vicaba/.activator/repository/org.jboss.interceptor/jboss-interceptor-api/1.1/ivys/ivy.xml [warn] ==== activator-local: tried [warn] /Applications/activator-dist-1.3.12/repository/org.jboss.interceptor/jboss-interceptor-api/1.1/ivys/ivy.xml [warn] ==== typesafe-releases: tried [warn] http://repo.typesafe.com/typesafe/releases/org/jboss/interceptor/jboss-interceptor-api/1.1/jboss-interceptor-api-1.1.pom [warn] ==== typesafe-ivy-releasez: tried [warn] http://repo.typesafe.com/typesafe/ivy-releases/org.jboss.interceptor/jboss-interceptor-api/1.1/ivys/ivy.xml [info] Resolving javax.annotation#jsr250-api;1.0 ... [info] Resolving javax.inject#javax.inject;1 ... [info] Resolving org.eclipse.sisu#org.eclipse.sisu.inject;0.3.0 ... [info] Resolving org.codehaus.plexus#plexus-component-annotations;1.5.5 ... [info] Resolving org.codehaus.plexus#plexus-classworlds;2.5.2 ... [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.jboss.interceptor#jboss-interceptor-api;1.1: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [info] Resolving com.typesafe.scala-logging#scala-logging_2.11;3.4.0 ... [info] Resolving org.scala-lang#scala-library;2.11.8 ... [info] Resolving org.slf4j#slf4j-api;1.7.21 ... [info] Resolving ch.qos.logback#logback-core;1.1.7 ... [info] Resolving ch.qos.logback#logback-classic;1.1.7 ... [info] Resolving org.scala-lang#scala-reflect;2.11.8 ... [info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.4 ... [info] Resolving org.scala-lang#scala-compiler;2.11.8 ... [info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.4 ... [info] Resolving jline#jline;2.12.1 ... [trace] Stack trace suppressed: run 'last *:updateSbtClassifiers' for the full output. [error] (*:updateSbtClassifiers) sbt.ResolveException: unresolved dependency: org.jboss.interceptor#jboss-interceptor-api;1.1: not found [error] Total time: 5 s, completed Feb 1, 2017 9:51:26 AM
LCartwright is correct that this is due to the SHA-1 hash file differring from the hash of the POM on maven central.
To get around this you can add the JBoss maven repository, where the hash matches, to your resolvers in the global sbt config ~/.sbt/0.13/global.sbt
resolvers += "JBoss" at "https://repository.jboss.org/"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With