未解决的依赖项 - 导入SBT项目时出错

时间:2016-05-17 23:56:25

标签: sbt

导入SBT项目时出错:
...

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.apache.hadoop#hadoop-mapreduce-client-app;2.6.0-cdh5.4.2: not found
[warn]  :: org.apache.hadoop#hadoop-mapreduce-client-core;2.6.0-cdh5.4.2: not found
[warn]  :: org.apache.hadoop#hadoop-mapreduce-client-jobclient;2.6.0-cdh5.4.2: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run 'last prj1/:update' for the full output.
[trace] Stack trace suppressed: run 'last prj2/:ssExtractDependencies' for the full output.
[trace] Stack trace suppressed: run 'last prj1/:ssExtractDependencies' for the full output.
[error] (prj1/:update) sbt.ResolveException: unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-app;2.6.0-cdh5.4.2: not found
[error] unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-core;2.6.0-cdh5.4.2: not found
[error] unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-jobclient;2.6.0-cdh5.4.2: not found
[error] (prj2/:ssExtractDependencies) sbt.ResolveException: unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-app;2.6.0-cdh5.4.2: not found
[error] unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-core;2.6.0-cdh5.4.2: not found
[error] unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-jobclient;2.6.0-cdh5.4.2: not found
[error] (prj1/:ssExtractDependencies) sbt.ResolveException: unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-app;2.6.0-cdh5.4.2: not found
[error] unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-core;2.6.0-cdh5.4.2: not found
[error] unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-jobclient;2.6.0-cdh5.4.2: not found
[error] Total time: 146 s, completed May 17, 2016 4:16:57 PM

有关如何解决问题的任何建议。导入在另一台机器上正常工作。我在.ivy2文件夹中看到了jar文件。

1 个答案:

答案 0 :(得分:0)

我在使用Intellij,SBT。问题是必须正确指定存储库位置。要指定转到文件 - >设置 - > (搜索SBT)然后在VM参数中,您可以指定repostories。

  

-XX:MaxPermSize参数= 1024M   -Dsbt.override.build.repos =真   -Dsbt.repository.config =的/ usr /本地/ basically_some_path / some_repo_file_name.repositories

IntelliJ IDEA 2016.1.2 Build#IU-145.971,建于2016年4月29日 JRE:1.8.0_76-release-b47 amd64 JVM:JetBrains s.r.o的OpenJDK 64位服务器VM