Package scala_maven
Class ScalaCompileMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- scala_maven.ScalaMojoSupport
-
- scala_maven.ScalaSourceMojoSupport
-
- scala_maven.ScalaCompilerSupport
-
- scala_maven.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 ScalaCompilerSupportCompiles a directory of Scala source. Corresponds roughly to the compile goal of the maven-compiler-plugin
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FileanalysisCacheFileAnalysis cache file for incremental recompilation.protected java.io.FileoutputDirThe directory in which to place compilation outputprotected java.io.FilesourceDirThe directory which contains scala/java source files-
Fields inherited from class scala_maven.ScalaCompilerSupport
ALL, INCREMENTAL, MODIFIED_ONLY, recompileMode
-
Fields inherited from class scala_maven.ScalaSourceMojoSupport
excludes, includes, sendJavaToScalac
-
Fields inherited from class scala_maven.ScalaMojoSupport
addJavacArgs, addScalacArgs, args, checkMultipleScalaVersions, compilerPlugins, dependencies, displayCmd, encoding, factory, failOnMultipleScalaVersions, forceUseArgFile, fork, JAR, javacArgs, javacGenerateDebugSymbols, jvmArgs, localRepo, mavenProjectBuilder, POM, project, reactorProjects, remoteRepos, resolver, SCALA_COMPILER_ARTIFACTID, SCALA_LIBRARY_ARTIFACTID, scalaClassName, session, source, target, toolchainManager, useCanonicalPath
-
-
Constructor Summary
Constructors Constructor Description ScalaCompileMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.io.FilegetAnalysisCacheFile()Analysis cache file for incremental recompilation.protected java.util.List<java.lang.String>getClasspathElements()protected java.util.List<org.apache.maven.model.Dependency>getDependencies()Deprecated.protected java.io.FilegetOutputDir()protected java.util.List<java.io.File>getSourceDirectories()Retrieves the list of *all* root source directories.-
Methods inherited from class scala_maven.ScalaCompilerSupport
clearCompileErrors, compile, defaultAnalysisCacheFile, defaultAnalysisDirectory, defaultTestAnalysisCacheFile, doExecute, getAnalysisCacheMap, getFilesToCompile, hasCompileErrors, incrementalCompile
-
Methods inherited from class scala_maven.ScalaSourceMojoSupport
findSourceWithFilters, findSourceWithFilters, initFilters, normalize
-
Methods inherited from class scala_maven.ScalaMojoSupport
addCompilerPluginOptions, addCompilerToClasspath, addLibraryToClasspath, addToClasspath, addToClasspath, addToClasspath, addToClasspath, checkScalaVersion, execute, findScalaVersion, findVersionFromDependencies, findVersionFromPluginArtifacts, getAllDependencies, getArtifactJar, getArtifactJar, getCompilerDependencies, getCompilerJar, getCompilerPluginOptions, getEmptyScalaCommand, getEmptyScalaCommand, getJavacOptions, getLibraryJar, getPluginArtifactJar, getPluginArtifactJar, getScalaCommand, getScalaCommand, getScalaOptions, getScalaOrganization, isJavaSupportedByCompiler, resolveArtifactDependencies, resolveDependencyArtifacts, resolveDependencyArtifacts, scalaCompilerArtifact
-
-
-
-
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 sourceDirThe directory which contains scala/java source files
-
analysisCacheFile
@Parameter(property="analysisCacheFile", defaultValue="${project.build.directory}/analysis/compile") protected java.io.File analysisCacheFileAnalysis cache file for incremental recompilation.
-
-
Method Detail
-
getSourceDirectories
protected java.util.List<java.io.File> getSourceDirectories() throws java.lang.ExceptionDescription copied from class:ScalaSourceMojoSupportRetrieves the list of *all* root source directories. We need to pass all .java and .scala files into the scala compiler- Specified by:
getSourceDirectoriesin classScalaSourceMojoSupport- Throws:
java.lang.Exception
-
getClasspathElements
protected java.util.List<java.lang.String> getClasspathElements() throws java.lang.Exception- Specified by:
getClasspathElementsin classScalaCompilerSupport- Throws:
java.lang.Exception
-
getDependencies
@Deprecated protected java.util.List<org.apache.maven.model.Dependency> getDependencies()
Deprecated.- Overrides:
getDependenciesin classScalaMojoSupport
-
getOutputDir
protected java.io.File getOutputDir() throws java.lang.Exception- Specified by:
getOutputDirin classScalaCompilerSupport- Throws:
java.lang.Exception
-
getAnalysisCacheFile
protected java.io.File getAnalysisCacheFile() throws java.lang.ExceptionDescription copied from class:ScalaCompilerSupportAnalysis cache file for incremental recompilation.- Specified by:
getAnalysisCacheFilein classScalaCompilerSupport- Throws:
java.lang.Exception
-
-