jboss拦截器api 1.1在添加为sbt依赖时未find

我试图通过sbt设置jboss-interceptor-api-1.1作为依赖项,但无法find。 我已经search了Maven仓库,这个版本在那里,任何人都可以帮助我吗?

实际上,我正在尝试使用sbt-assembly。 删除插件依赖项,并添加依赖到libraryDependencies仍然显示错误。

堆栈跟踪:

[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是正确的,这是由于SHA-1散列文件不同于maven central上POM的散列。

为了解决这个问题,你可以添加哈希匹配的JBoss Maven仓库到全局的parsing器中〜/ .sbt / 0.13 / global.sbt

 resolvers += "JBoss" at "https://repository.jboss.org/" 

我在IntelliJ中有同样的问题。 当打开一个项目时,它在jboss-interceptor-api上失败。 这是日志的一部分:

 [info] Resolving org.apache.maven#maven-artifact;3.2.2 ... [info] Resolving org.apache.maven#maven-plugin-api;3.2.2 ... [info] Resolving org.eclipse.sisu#org.eclipse.sisu.plexus;0.0.0.M5 ... [info] Resolving javax.enterprise#cdi-api;1.0 ... [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 (108ms) [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/jessedobbelaere/.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] ==== Typesafe repository: tried [warn] http://repo.typesafe.com/typesafe/releases/org/jboss/interceptor/jboss-interceptor-api/1.1/jboss-interceptor-api-1.1.pom [warn] ==== bintray-kamon-io-sbt-plugins: tried [warn] https://dl.bintray.com/kamon-io/sbt-plugins/org.jboss.interceptor/jboss-interceptor-api/1.1/ivys/ivy.xml 

我注意到,在IntelliJ中取消选中“下载SBT和插件的源代码”时,一切正常

好像罪魁祸首就是这一行

[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 (108ms)

报告一个不正确的SHA-1的POM文件。

  • pom: jboss-interceptor-api-1.1.pom
  • Pom SHA-1: jboss-interceptor-api-1.1.pom.sha1

pom的SHA-1是56da14e5a3e7e5656fe2ed1942d9fc0c1f3b054b但随附的pom.sha1文件是453b712ff6cda3a3f10f46a9ab9b9a42fc9bc021

如上所示,取消选中“为SBT和插件下载源代码”将立即解决您的问题。 不确定联系谁来更新pom.sha1

我今天遇到了同样的问题,我使用的插件是sbt-native-packager 。 它也工作时,我禁用该选项。

后来我去sbt github网站,并更新我的sbt插件版本从1.0.0-RC11.2.0-M8而不禁用该选项,我也工作。 我使用的插件是

 addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.2.0-M8") 

也许你可以去https://github.com/sbtsearch最新版本。