2016-05-17 111 views
1

错误而进口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文件。

+0

我将遵循这一这里的http:// www.scala-sbt.org/0.12.1/docs/Detailed-Topics/Dependency-Managemen t-Flow.html并保持对问题的更新 – RajKon

回答

0

我正在使用Intellij,SBT。问题在于存储库的位置必须正确指定。要指定转至文件 - >设置 - >(搜索SBT),则可以在虚拟机参数中指定存储库。

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

IntelliJ IDEA的2016.1 0.2 构建#IU-145.971,建于2016年4月29日 JRE:1.8.0_76释放-B47 AMD64 JVM:OpenJDK的64位服务器VM通过JetBrains的SRO