Continuous Compilation of Scala sourcesPrerequis : common usages
If you want a continuous compilation of sources under src/main and src/test (compilation when file are saved) :
- Compilation run in a infinite loop and compile only modified file (non-stop), so use Ctrl+C to stop it
- If you want to compile without FSC (with regular scalac like non-continuous compilation) :
- If you want to display command used to run scala :
mvn scala:cc -Dmaven.scala.displayCmd=true
- WARNING : continius compilation is an infinite loop so, avoid call the goal "cc" in pom.xml or to connect it to a lifecycle's phase.