玩sbt dist命令卡住了

时间:2018-04-24 18:49:43

标签: java scala playframework sbt

上周(2018/04/18)我已经为我的项目生成了一个分发包。从昨天(2018/04/23)起,sbt dist命令没有完成,并且没有给我任何错误。

我上周尝试了源代码并尝试在Windows和Linux上运行它,但行为是一样的。

查看下面的sbt日志:

    C:\Beto\Hg\mobilecontrolweb>.\sbt-dist\bin\sbt.bat
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
    [info] Loading settings from plugins.sbt,sbt-ui.sbt ...
    [info] Loading project definition from C:\Beto\Hg\mobilecontrolweb\project
    [debug] Full compilation, no sources in previous analysis.
    [debug] Copy resource mappings:
    [debug]
    [info] Loading settings from build.sbt ...
    [info] Set current project to CcmPlayApp (in build file:/C:/Beto/Hg/mobilecontrolweb/)
    [info] sbt server started at local:sbt-server-fa35b33dfcba0f6d759f
    [CcmPlayApp] $ clean
    [success] Total time: 3 s, completed 24/04/2018 15:19:04
    [CcmPlayApp] $ dist
    [info] Updating ...
    [info] Packaging C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT-sources.jar ...
    [info] Done packaging.
    [info] Done updating.
    [warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
    [warn]  * com.google.guava:guava:22.0 is selected over {19.0, 15.0, 20.0}
    [warn]      +- com.jolbox:bonecp:0.8.0.RELEASE                    (depends on 15.0)
    [warn]      +- org.reflections:reflections:0.9.11                 (depends on 15.0)
    [warn]      +- com.typesafe.play:play_2.11:2.6.11                 (depends on 15.0)
    [warn]      +- com.google.inject:guice:4.1.0                      (depends on 19.0)
    [warn]  * org.scala-lang.modules:scala-java8-compat_2.11:0.8.0 is selected over 0.7.0
    [warn]      +- com.typesafe.play:play-java-forms_2.11:2.6.11      (depends on 0.8.0)
    [warn]      +- com.typesafe.play:play-java_2.11:2.6.11            (depends on 0.8.0)
    [warn]      +- com.typesafe.play:play_2.11:2.6.11                 (depends on 0.7.0)
    [warn]      +- com.typesafe.akka:akka-actor_2.11:2.5.8 ()         (depends on 0.7.0)
    [warn]      +- com.typesafe.play:play-streams_2.11:2.6.11         (depends on 0.7.0)
    [warn]  * com.typesafe.akka:akka-stream_2.11:2.5.8 is selected over 2.4.20
    [warn]      +- com.typesafe.play:play-streams_2.11:2.6.11         (depends on 2.5.8)
    [warn]      +- com.typesafe.akka:akka-http-core_2.11:10.0.11 ()   (depends on 2.4.20)
    [warn]  * com.typesafe.akka:akka-actor_2.11:2.5.8 is selected over 2.4.20
    [warn]      +- com.typesafe.akka:akka-slf4j_2.11:2.5.8 ()         (depends on 2.5.8)
    [warn]      +- com.typesafe.play:play_2.11:2.6.11                 (depends on 2.5.8)
    [warn]      +- com.typesafe.akka:akka-stream_2.11:2.5.8 ()        (depends on 2.5.8)
    [warn]      +- com.typesafe.akka:akka-parsing_2.11:10.0.11 ()     (depends on 2.4.20)
    [warn] Run 'evicted' to see detailed eviction warnings
    [info] Wrote C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT.pom
    [info] Main Scala API documentation to C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\api...
    [info] Packaging C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT-web-assets.jar ...
    [info] Done packaging.
    [info] Compiling 186 Scala sources and 170 Java sources to C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\classes ...
    [warn] there was one feature warning; re-run with -feature for details
    model contains 524 documentable templates
    [warn] one warning found
    [info] Main Scala API documentation successful.
    [info] Packaging C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT-javadoc.jar ...
    [info] Done packaging.
    [warn] there was one feature warning; re-run with -feature for details
    [warn] one warning found
    [info] C:\Beto\Hg\mobilecontrolweb\app\controllers\ContractController.java: Some input files use or override a deprecated API.
    [info] C:\Beto\Hg\mobilecontrolweb\app\controllers\ContractController.java: Recompile with -Xlint:deprecation for details.
    [info] Done compiling.

1 个答案:

答案 0 :(得分:0)

问题在于plugins.sbt中的addSbtPlugin(" com.typesafe.sbteclipse"%" sbteclipse-plugin"%" 5.2.1");似乎使用这个版本而不是5.2.4,当sbt版本高于0.13时,使得run和dist卡住而没有任何日志。

相关问题