Package scala_maven

Class ScalaCompilerSupport

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ScalaCompileMojo, ScalaContinuousCompileMojo, ScalaTestCompileMojo

public abstract class ScalaCompilerSupport extends ScalaSourceMojoSupport
Abstract parent of all Scala Mojo who run compilation
  • Field Details

    • ALL

      public static final String ALL
      See Also:
    • MODIFIED_ONLY

      public static final String MODIFIED_ONLY
      See Also:
    • INCREMENTAL

      public static final String INCREMENTAL
      See Also:
    • compileErrors

      private boolean compileErrors
      Keeps track of if we get compile errors in incremental mode
    • recompileMode

      @Parameter(property="recompileMode", defaultValue="all") protected String recompileMode
      Recompile mode to use when sources were previously compiled and there is at least one change: "modified-only" => only modified sources are recompiled (pre 2.13 behavior), "all" => all sources are recompiled, "incremental" => incrementally recompile modified sources and other affected sources.
    • notifyCompilation

      @Parameter(property="notifyCompilation", defaultValue="true") private boolean notifyCompilation
      notifyCompilation if true then print a message "path: compiling" for each root directory or files that will be compiled. Useful for debug, and for integration with Editor/IDE to reset markers only for compiled files.
    • _lastCompileAt

      private long _lastCompileAt
    • incremental

      private SbtIncrementalCompiler incremental
    • compileOrder

      @Parameter(property="compileOrder", defaultValue="mixed") private String compileOrder
      Compile order for Scala and Java sources for sbt incremental compile. Can be Mixed, JavaThenScala, or ScalaThenJava.
    • useZincServer

      @Parameter(property="useZincServer", defaultValue="false") private boolean useZincServer
      Use zinc server for incremental recompilation.
    • zincPort

      @Parameter(property="zincPort", defaultValue="3030") private int zincPort
      Zinc server port, if running with incremental zinc server mode.
    • zincHost

      @Parameter(property="zincHost", defaultValue="127.0.0.1") private String zincHost
      Zinc server host, if running with incremental zinc server mode. Defaults to 127.0.0.1.
    • addZincArgs

      @Parameter(property="addZincArgs") private String addZincArgs
      Additional parameter to use to call zinc server It is a pipe '|' separated list of arguments, so it can be used from command line ("-DaddZincArgs=arg1|arg2|arg3|...").
  • Constructor Details

    • ScalaCompilerSupport

      public ScalaCompilerSupport()
  • Method Details