Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 播放sbt dist命令卡滞_Java_Scala_Playframework_Sbt - Fatal编程技术网

Java 播放sbt dist命令卡滞

Java 播放sbt dist命令卡滞,java,scala,playframework,sbt,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=

上周(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. C:\Beto\Hg\mobilecontrolweb>\sbt dist\bin\sbt.bat Java HotSpot(TM)64位服务器VM警告:忽略选项MaxPermSize=256m;支持在8.0中被删除 [信息]正在从plugins.sbt、sbt-ui.sbt加载设置。。。 [info]正在从C:\Beto\Hg\mobilecontrolweb\project加载项目定义 [调试]完全编译,以前的分析中没有源代码。 [调试]复制资源映射: [调试] [信息]正在从build.sbt加载设置。。。 [info]将当前项目设置为CcmPlayApp(内置文件:/C:/Beto/Hg/mobilecontrolweb/) [信息]sbt服务器已在本地启动:sbt-server-fa35b33dfcba0f6d759f [CcmPlayApp]$clean [成功]总时间:3秒,完成时间2018年4月24日15:19:04 [CcmPlayApp]$dist [信息]正在更新。。。 [信息]打包C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT-sources.jar。。。 [信息]完成包装。 [信息]已完成更新。 [警告]在库依赖项中发现版本冲突;有些被怀疑是二进制不兼容的: [警告]*com.google.guava:guava:22.0被选中,而不是{19.0,15.0,20.0} [警告]+-com.jolbox:bonecp:0.8.0.RELEASE(取决于15.0) [警告]+-org.reflections:reflections:0.9.11(取决于15.0) [警告]+-com.typesafe.play:play_2.11:2.6.11(取决于15.0) [warn]+-com.google.inject:guice:4.1.0(取决于19.0) [警告]*org.scala-lang.modules:scala-java8-compat_2.11:0.8.0被选中而不是0.7.0 [警告]+-com.typesafe.play:play-java-forms_2.11:2.6.11(取决于0.8.0) [警告]+-com.typesafe.play:play-java_2.11:2.6.11(取决于0.8.0) [警告]+-com.typesafe.play:play_2.11:2.6.11(取决于0.7.0) [warn]+-com.typesafe.akka:akka-actor_2.11:2.5.8()(取决于0.7.0) [警告]+-com.typesafe.play:play-streams_2.11:2.6.11(取决于0.7.0) [警告]*com.typesafe.akka:akka-stream_2.11:2.5.8是在2.4.20中选择的 [警告]+-com.typesafe.play:play-streams_2.11:2.6.11(取决于2.5.8) [warn]+-com.typesafe.akka:akka-http-core_2.11:10.0.11()(取决于2.4.20) [警告]*com.typesafe.akka:akka-actor_2.11:2.5.8是在2.4.20中选择的 [warn]+-com.typesafe.akka:akka-slf4j_2.11:2.5.8()(取决于2.5.8) [警告]+-com.typesafe.play:play_2.11:2.6.11(取决于2.5.8) [warn]+-com.typesafe.akka:akka-stream_2.11:2.5.8()(取决于2.5.8) [warn]+-com.typesafe.akka:akka-parsing_2.11:10.0.11()(取决于2.4.20) [警告]运行“收回”查看详细的收回警告 [info]写了C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT.pom [信息]主要的Scala API文档到C:\Beto\Hg\mobilecontrolweb\target\Scala-2.11\API。。。 [信息]打包C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT-web-assets.jar。。。 [信息]完成包装。 [信息]将186个Scala源代码和170个Java源代码编译为C:\Beto\Hg\mobilecontrolweb\target\Scala-2.11\classes。。。 [警告]有一个功能警告;有关详细信息,请使用-功能重新运行 该模型包含524个可记录的模板 [警告]发现一个警告 [信息]主Scala API文档成功。 [信息]打包C:\Beto\Hg\mobilecontrolweb\target\scala-2.11\ccmplayapp_2.11-1.0-SNAPSHOT-javadoc.jar。。。 [信息]完成包装。 [警告]有一个功能警告;有关详细信息,请使用-功能重新运行 [警告]发现一个警告 [info]C:\Beto\Hg\mobilecontrolweb\app\controllers\ContractController.java:某些输入文件使用或覆盖不推荐使用的API。 [info]C:\Beto\Hg\mobilecontrolweb\app\controllers\ContractController.java:使用-Xlint重新编译以获取详细信息。 [信息]完成编译。
问题出在plugins.sbt中的addSbtPlugin(“com.typesafe.sbteclipse“%”sbteclipse plugin“%”5.2.1“)中;当sbt版本高于0.13时,使用此版本而不是5.2.4似乎会使run和dist卡在没有任何日志的情况下。

请解释成功执行后会发生什么。在sbt中,您可以尝试使用命令
debug
(并使用
info
返回正常行为)将日志置于调试模式。这可能有助于确定issueThomas,在最后一行(编译完成)之后没有发生任何事情,没有提示。我所期望的是生成带有分发包的zip文件。vdebergue,我进入调试模式。谢谢你的提示。但是没有有用的信息。最后,我们解决了将plugins.sbt文件从:addSbtPlugin(“com.typesafe.sbteclipse”%”sbteclipse plugin“%”5.2.1”)更改为:addSbtPlugin(“com.typesafe.sbteclipse”%”sbteclipse plugin“%”5.2.4“)(谢谢Leo!)谢谢!