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) :

          
mvn scala:cc
       
        

  • 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) :
              
    mvn scala:cc -Dfsc=false
           
            
  • 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.