sbt无法解决超类型快照的依赖关系

时间:2015-08-21 01:42:36

标签: elasticsearch apache-spark sbt

我查看了相关问题并在那里尝试了建议。他们似乎没有帮助。

以下是我在build.sbt文件中的内容:

resolvers += Resolver.sonatypeRepo("snapshots")
...
  libraryDependencies ++= Seq(
    "org.elasticsearch" %% "elasticsearch-spark" % "2.2.0.BUILD-SNAPSHOT"
  )
...

我已经确认回购有适当的罐子。以下是在sbt解释器中进行编译的输出:

[info] Resolving org.elasticsearch#elasticsearch-spark_2.11;2.2.0.BUILD-SNAPSHOT ...
[warn]  module not found: org.elasticsearch#elasticsearch-spark_2.11;2.2.0.BUILD-SNAPSHOT
[warn] ==== local: tried
[warn]   /Users/aswami/.ivy2/local/org.elasticsearch/elasticsearch-spark_2.11/2.2.0.BUILD-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/elasticsearch/elasticsearch-spark_2.11/2.2.0.BUILD-SNAPSHOT/elasticsearch-spark_2.11-2.2.0.BUILD-SNAPSHOT.pom
[info] Resolving jline#jline;2.12.1 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.elasticsearch#elasticsearch-spark_2.11;2.2.0.BUILD-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]      org.elasticsearch:elasticsearch-spark_2.11:2.2.0.BUILD-SNAPSHOT (/Users/aswami/repos/dtex-datascience/build.sbt#L129)
[warn]        +- com.dtex:analysis_2.11:0.1
[trace] Stack trace suppressed: run last analysis/*:update for the full output.
[error] (analysis/*:update) sbt.ResolveException: unresolved dependency: org.elasticsearch#elasticsearch-spark_2.11;2.2.0.BUILD-SNAPSHOT: not found

为什么不尝试sonatype-snapshots repo? 我应该采取哪些不同的方法来解决问题? 感谢。

1 个答案:

答案 0 :(得分:0)

您可以指定其他解析器,对于您可以添加{@ 1}}的声纳类型快照,有关详细信息,请参阅http://www.scala-sbt.org/0.13/docs/Resolvers.html