`sbt dist` 静默退出而不生成二进制文件
`sbt dist` silently exits without producing binary
我曾经能够调用 sbt dist
将我的播放应用程序打包成二进制文件,但是(在进行了大量更改之后)当我尝试它时,它只是静静地存在而没有给出任何错误或产生二进制文件。这是 运行ning w/ -verbose
和 -d
(调试)时的完整输出:
$ sbt dist
[addSbt] arg = '-debug'
[residual] arg = '-sbt-create'
[residual] arg = 'dist'
[residual] arg = '-XX:MaxPermSize=50G'
[residual] arg = '-Xmx50G'
[residual] arg = 'dist'
[process_args] java_version = '14'
[sbt_options] declare -a sbt_options=()
[addMemory] arg = '1024'
[addJava] arg = '-Xms1024m'
[addJava] arg = '-Xmx1024m'
[addJava] arg = '-Xss4M'
[addJava] arg = '-XX:ReservedCodeCacheSize=128m'
[copyRt] java9_rt = '/home/ali/.sbt/0.13/java9-rt-ext-adoptopenjdk_14_0_1/rt.jar'
[addJava] arg = '-Dscala.ext.dirs=/home/ali/.sbt/0.13/java9-rt-ext-adoptopenjdk_14_0_1'
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-Dscala.ext.dirs=/home/ali/.sbt/0.13/java9-rt-ext-adoptopenjdk_14_0_1
-jar
/home/ali/.sdkman/candidates/sbt/1.3.13/bin/sbt-launch.jar
-debug
-XX:MaxPermSize=50G
-Xmx50G
dist
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Other repositories:
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
$
然后它就存在了,我又回到了 shell,二进制文件没有生成。相比之下,我曾经看到过inflating xxx.yyy.zzz
等消息
同样的事情发生在我 运行 sbt clean compile
:
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Other repositories:
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
然后又退出了,没有报错
我怎样才能让 sbt 显示某种错误,表明它为什么不生成二进制文件?
使用:
scalaVersion := "2.13.2"
sbt.version=1.3.12
并播放 2.8.2
从我的 .sbtopts 文件中删除这两行解决了问题:-XX:MaxPermSize=50G 和 -Xmx50G
我曾经能够调用 sbt dist
将我的播放应用程序打包成二进制文件,但是(在进行了大量更改之后)当我尝试它时,它只是静静地存在而没有给出任何错误或产生二进制文件。这是 运行ning w/ -verbose
和 -d
(调试)时的完整输出:
$ sbt dist
[addSbt] arg = '-debug'
[residual] arg = '-sbt-create'
[residual] arg = 'dist'
[residual] arg = '-XX:MaxPermSize=50G'
[residual] arg = '-Xmx50G'
[residual] arg = 'dist'
[process_args] java_version = '14'
[sbt_options] declare -a sbt_options=()
[addMemory] arg = '1024'
[addJava] arg = '-Xms1024m'
[addJava] arg = '-Xmx1024m'
[addJava] arg = '-Xss4M'
[addJava] arg = '-XX:ReservedCodeCacheSize=128m'
[copyRt] java9_rt = '/home/ali/.sbt/0.13/java9-rt-ext-adoptopenjdk_14_0_1/rt.jar'
[addJava] arg = '-Dscala.ext.dirs=/home/ali/.sbt/0.13/java9-rt-ext-adoptopenjdk_14_0_1'
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-Dscala.ext.dirs=/home/ali/.sbt/0.13/java9-rt-ext-adoptopenjdk_14_0_1
-jar
/home/ali/.sdkman/candidates/sbt/1.3.13/bin/sbt-launch.jar
-debug
-XX:MaxPermSize=50G
-Xmx50G
dist
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Other repositories:
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
$
然后它就存在了,我又回到了 shell,二进制文件没有生成。相比之下,我曾经看到过inflating xxx.yyy.zzz
等消息
同样的事情发生在我 运行 sbt clean compile
:
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Other repositories:
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] Full compilation, no sources in previous analysis.
[debug] Copy resource mappings:
[debug]
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
[debug] Checking for meta build source updates
然后又退出了,没有报错
我怎样才能让 sbt 显示某种错误,表明它为什么不生成二进制文件?
使用:
scalaVersion := "2.13.2"
sbt.version=1.3.12
并播放 2.8.2
从我的 .sbtopts 文件中删除这两行解决了问题:-XX:MaxPermSize=50G 和 -Xmx50G