Package scala_maven

Class ScalaCompileMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="compile",
          defaultPhase=COMPILE,
          requiresDependencyResolution=COMPILE,
          threadSafe=true)
    public class ScalaCompileMojo
    extends ScalaCompilerSupport
    Compiles a directory of Scala source. Corresponds roughly to the compile goal of the maven-compiler-plugin
    • Field Detail

      • outputDir

        @Parameter(property="project.build.outputDirectory")
        protected java.io.File outputDir
        The directory in which to place compilation output
      • sourceDir

        @Parameter(defaultValue="${project.build.sourceDirectory}/../scala")
        protected java.io.File sourceDir
        The directory which contains scala/java source files
      • analysisCacheFile

        @Parameter(property="analysisCacheFile",
                   defaultValue="${project.build.directory}/analysis/compile")
        protected java.io.File analysisCacheFile
        Analysis cache file for incremental recompilation.
    • Constructor Detail

      • ScalaCompileMojo

        public ScalaCompileMojo()
    • Method Detail

      • getSourceDirectories

        protected java.util.List<java.io.File> getSourceDirectories()
                                                             throws java.lang.Exception
        Description copied from class: ScalaSourceMojoSupport
        Retrieves the list of *all* root source directories. We need to pass all .java and .scala files into the scala compiler
        Specified by:
        getSourceDirectories in class ScalaSourceMojoSupport
        Throws:
        java.lang.Exception
      • getClasspathElements

        protected java.util.List<java.lang.String> getClasspathElements()
                                                                 throws java.lang.Exception
        Specified by:
        getClasspathElements in class ScalaCompilerSupport
        Throws:
        java.lang.Exception
      • getDependencies

        @Deprecated
        protected java.util.List<org.apache.maven.model.Dependency> getDependencies()
        Deprecated.
        Overrides:
        getDependencies in class ScalaMojoSupport
      • getOutputDir

        protected java.io.File getOutputDir()
                                     throws java.lang.Exception
        Specified by:
        getOutputDir in class ScalaCompilerSupport
        Throws:
        java.lang.Exception