Click here to lend your support to: scala-maven-plugin and make a donation at www.pledgie.com !

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