Continuous Compilation of Scala sources
Prerequis : common usages
If you want a continuous compilation of sources under src/main and src/test (compilation when file are saved) :
- Compilation runs in a infinite loop and compiles only modified files (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 -DdisplayCmd=true
- WARNING : continuous compilation is an infinite loop so, avoid call the goal "cc" in pom.xml or to connect it to a lifecycle's phase.