当我运行'sbt compile'时,我收到了这样的错误:
missing or invalid dependency detected while loading class file 'DefaultReads.class'.
[error] Could not access term time in package java,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
Run Code Online (Sandbox Code Playgroud)
我怎么能-Ylog-classpath转到sbt?
Mat*_*zyk 23
-Y只是一个scalac参数.根据doc -Y是私有和-X高级的两种类型.不同的是,私人可以在不事先通知的情况下删除,你应该知道这个事实.
要添加scalac选项,请在build.sbt此行中添加以下内容:
scalacOptions += "-Ylog-classpath"
Run Code Online (Sandbox Code Playgroud)
同样,您可以添加javac选项javacOptions.
| 归档时间: |
|
| 查看次数: |
6371 次 |
| 最近记录: |