我正在尝试使用fsc(快速scala编译器)和我的maven项目.我pom.xml
有:
...
<execution>
<id>cc</id>
<goals>
<goal>cc</goal>
</goals>
<phase>compile</phase>
<configuration>
<useFsc>true</useFsc>
<once>true</once>
</configuration>
</execution>
...
Run Code Online (Sandbox Code Playgroud)
正如在使用maven编译Scala文件的最快方法中所讨论的那样?
当我输入时mvn scala:cc
,它会挂起:
[INFO] wait for files to compile...
Run Code Online (Sandbox Code Playgroud)
运行 mvn scala:cc -DdisplayCmd=true -Dverbose=true
[INFO] cmd: /bin/sh -c .../java -classpath [redacted] scala.tools.nsc.MainGenericRunner scala.tools.nsc.CompileServer >MainGenericRunner.out 2>MainGenericRunner.err
Run Code Online (Sandbox Code Playgroud)
这似乎很奇怪(不应该不包括scala.tools.nsc.MainGenericRunner
?)我注意到MainGenericRunner.out
包含
no such file: scala.tools.nsc.CompileServer
Run Code Online (Sandbox Code Playgroud)
这似乎证实了我的怀疑.
有没有人遇到这个,或者有解决方法?我真的很想用fsc来加速我的构建.我在Google群组中找到了一个具有类似输出的用户,但没有跟进.
在OSX上运行scala 2.8.1和maven 3.0.3