I recently upgraded a large Maven-based Scala 2.7 project to Scala 2.8. After doing this I discovered that mvn scala:cc was no longer working. The error message was:
[INFO] Cannot start compilation daemon. [INFO] tried command: List(scala, scala.tools.nsc.CompileServer)
Running mvn scala:cc -Dfsc=false worked fine, but I lost the benefits of FSC.
I managed to fix this, but I never tracked down exactly what has happening, so this is one of those "it works now, who cares" type of things.
- I noticed java -version was not returning what I expected; an old manually installed version in /opt was apparently eclipsing the java-6-sun version installed through apt. Fixed this with: sudo update-java-alternatives -s java-6-sun
- Noted the ... tried command: bit of the error above mentioned it was trying the scala command first. Made sure that when I typed scala I got the appropriate 2.8 version.
Started working after this. Wish I knew in more detail what was happening, but I don't have the time right now. Perhaps this will help someone else.