2014-04-04 66 views
2

,當我在我的項目所有SBT插件沒有找到

$sbt 

我所有的插件都沒有發現使用SBT命令。這裏是我的項目的內容/ plugins.sbt

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.10.1") 

addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.3.1") 

addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.1") 

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

的錯誤有以下幾種:

[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::   UNRESOLVED DEPENDENCIES   :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: com.eed3si9n#sbt-assembly;0.11.2: not found 
[warn] :: org.xerial.sbt#sbt-pack;0.3.1: not found 
[warn] :: com.typesafe.sbt#sbt-scalariform;1.2.1: not found 
[warn] :: com.typesafe.sbt#sbt-native-packager;0.6.4: not found 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 

它看起來像我在配置SBT或讓我的插件缺少一個非常基本的一步某處。

全輸出:

> tarting sbt: invoke with -help for other options [info] Loading 
> project definition from 
> /home/vincent/Documents/École/PredictionIO/PredictionIO/project [info] 
> Updating 
> {file:/home/vincent/Documents/%C3%89cole/PredictionIO/PredictionIO/project/}default-5bb8ef... 
> [info] Resolving com.eed3si9n#sbt-assembly;0.11.2 ... [warn] module 
> not found: com.eed3si9n#sbt-assembly;0.11.2 [warn] ==== 
> typesafe-ivy-releases: tried [warn] 
> http://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.9.1/sbt_0.11.3/0.11.2/ivys/ivy.xml 
> [warn] ==== local: tried [warn] 
> /root/.ivy2/local/com.eed3si9n/sbt-assembly/scala_2.9.1/sbt_0.11.3/0.11.2/ivys/ivy.xml 
> [warn] ==== public: tried [warn] 
> http://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.9.1_0.11.3/0.11.2/sbt-assembly-0.11.2.pom 
> [info] Resolving org.xerial.sbt#sbt-pack;0.3.1 ... [warn]  module not 
> found: org.xerial.sbt#sbt-pack;0.3.1 [warn] ==== 
> typesafe-ivy-releases: tried [warn] 
> http://repo.typesafe.com/typesafe/ivy-releases/org.xerial.sbt/sbt-pack/scala_2.9.1/sbt_0.11.3/0.3.1/ivys/ivy.xml 
> [warn] ==== local: tried [warn] 
> /root/.ivy2/local/org.xerial.sbt/sbt-pack/scala_2.9.1/sbt_0.11.3/0.3.1/ivys/ivy.xml 
> [warn] ==== public: tried [warn] 
> http://repo1.maven.org/maven2/org/xerial/sbt/sbt-pack_2.9.1_0.11.3/0.3.1/sbt-pack-0.3.1.pom 
> [info] Resolving com.typesafe.sbt#sbt-scalariform;1.2.1 ... [warn] 
> module not found: com.typesafe.sbt#sbt-scalariform;1.2.1 [warn] ==== 
> typesafe-ivy-releases: tried [warn] 
> http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-scalariform/scala_2.9.1/sbt_0.11.3/1.2.1/ivys/ivy.xml 
> [warn] ==== local: tried [warn] 
> /root/.ivy2/local/com.typesafe.sbt/sbt-scalariform/scala_2.9.1/sbt_0.11.3/1.2.1/ivys/ivy.xml 
> [warn] ==== public: tried [warn] 
> http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-scalariform_2.9.1_0.11.3/1.2.1/sbt-scalariform-1.2.1.pom 
> [info] Resolving com.typesafe.sbt#sbt-native-packager;0.6.4 ... [warn] 
> module not found: com.typesafe.sbt#sbt-native-packager;0.6.4 [warn] 
> ==== typesafe-ivy-releases: tried [warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.9.1/sbt_0.11.3/0.6.4/ivys/ivy.xml 
> [warn] ==== local: tried [warn] 
> /root/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.9.1/sbt_0.11.3/0.6.4/ivys/ivy.xml 
> [warn] ==== public: tried [warn] 
> http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.9.1_0.11.3/0.6.4/sbt-native-packager-0.6.4.pom 
> [info] Resolving org.scala-sbt#sbt_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#main_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#actions_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#classfile_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#io_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#control_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-lang#scala-library;2.9.1 ... [info] Resolving 
> org.scala-sbt#interface;0.11.3 ... [info] Resolving 
> org.scala-sbt#logging_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#process_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#classpath_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#launcher-interface_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-lang#scala-compiler;2.9.1 ... [info] Resolving 
> org.scala-sbt#incremental-compiler_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#collections_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#api_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#persist_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ... [info] Resolving 
> org.scala-sbt#compile_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#ivy_2.9.1;0.11.3 ... [info] Resolving 
> org.apache.ivy#ivy;2.2.0 ... [info] Resolving com.jcraft#jsch;0.1.46 
> ... [info] Resolving commons-httpclient#commons-httpclient;3.1 ... 
> [info] Resolving commons-logging#commons-logging;1.0.4 ... [info] 
> Resolving commons-codec#commons-codec;1.2 ... [info] Resolving 
> org.scala-sbt#completion_2.9.1;0.11.3 ... [info] Resolving 
> jline#jline;0.9.94 ... [info] Resolving org.scala-sbt#run_2.9.1;0.11.3 
> ... [info] Resolving org.scala-sbt#task-system_2.9.1;0.11.3 ... [info] 
> Resolving org.scala-sbt#tasks_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#tracking_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#cache_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-sbt#testing_2.9.1;0.11.3 ... [info] Resolving 
> org.scala-tools.testing#test-interface;0.5 ... [info] Resolving 
> org.scala-sbt#compiler-interface;0.11.3 ... [info] Resolving 
> org.scala-sbt#precompiled-2_8_2;0.11.3 ... [info] Resolving 
> org.scala-sbt#precompiled-2_8_1;0.11.3 ... [info] Resolving 
> org.scala-sbt#precompiled-2_9_2;0.11.3 ... [warn] 
> :::::::::::::::::::::::::::::::::::::::::::::: [warn] ::   
> UNRESOLVED DEPENDENCIES   :: [warn] 
> :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: 
> com.eed3si9n#sbt-assembly;0.11.2: not found [warn] :: 
> org.xerial.sbt#sbt-pack;0.3.1: not found [warn] :: 
> com.typesafe.sbt#sbt-scalariform;1.2.1: not found [warn] :: 
> com.typesafe.sbt#sbt-native-packager;0.6.4: not found [warn] 
> :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: 
> Some unresolved dependencies have extra attributes. Check that these 
> dependencies exist with the requested attributes. [warn] 
>  com.eed3si9n:sbt-assembly:0.11.2 (sbtVersion=0.11.3, 
> scalaVersion=2.9.1) [warn]  org.xerial.sbt:sbt-pack:0.3.1 
> (sbtVersion=0.11.3, scalaVersion=2.9.1) [warn] 
>  com.typesafe.sbt:sbt-scalariform:1.2.1 (sbtVersion=0.11.3, 
> scalaVersion=2.9.1) [warn] 
>  com.typesafe.sbt:sbt-native-packager:0.6.4 (sbtVersion=0.11.3, 
> scalaVersion=2.9.1) [warn] [error] 
> {file:/home/vincent/Documents/%C3%89cole/PredictionIO/PredictionIO/project/}default-5bb8ef/*:update: 
> sbt.ResolveException: unresolved dependency: 
> com.eed3si9n#sbt-assembly;0.11.2: not found [error] unresolved 
> dependency: org.xerial.sbt#sbt-pack;0.3.1: not found [error] 
> unresolved dependency: com.typesafe.sbt#sbt-scalariform;1.2.1: not 
> found [error] unresolved dependency: 
> com.typesafe.sbt#sbt-native-packager;0.6.4: not found Project loading 
> failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i [warn] Ignoring load 
> failure: no project loaded. 
+1

你使用的是什麼版本的sbt?這種行爲突然開始了,還是這是你的第一個項目? –

+0

除了eugene說的,請提供完整的日誌。 – Christian

+0

完整日誌包括。我的sbt版本是sbt 0.11.3。這是我與sbt的第一個項目。 – pikaille

回答

1

我SBT版本是0.11.3 SBT。這是我與sbt的第一個項目。

轉到scala-sbt.org找到最新的穩定版本(截至2014年4月,它是0.13.2)。

如果由於某種原因,你必須使用SBT 0.11.3,這裏的插件版本中,你可以嘗試:

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.7") 

addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.0.0") 

我沒能找到其他插件SBT 0.11.3。不知道他們是否存在。