|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo com.google.code.sbt.AbstractSBTCompileMojo
public abstract class AbstractSBTCompileMojo
Abstract base class for SBT compilation mojos.
Field Summary | |
---|---|
static String |
DEFAULT_SCALA_VERSION
Default Scala library and compiler version used when no scalaVersion configuration property specified and org.scala-lang:scala-library dependency not found in the project. |
protected ArtifactFactory |
factory
Artifact factory used to look up artifacts in the remote repository. |
protected String |
javacOptions
Additional parameters for Java compiler. |
protected ArtifactRepository |
localRepo
Location of the local repository. |
protected MavenProjectBuilder |
mavenProjectBuilder
Maven project builder used to resolve artifacts. |
protected MavenProject |
project
Maven Internal: Project to interact with. |
protected List<MavenProject> |
reactorProjects
All projects in the reactor. |
protected List<?> |
remoteRepos
List of Remote Repositories used by the resolver |
protected ArtifactResolver |
resolver
Artifact resolver used to resolve artifacts. |
protected String |
scalacOptions
Additional parameters for Scala compiler. |
protected String |
sourceEncoding
The -encoding argument for Scala and Java compilers. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractSBTCompileMojo()
|
Method Summary | |
---|---|
protected File |
defaultAnalysisCacheFile(MavenProject p)
Returns incremental main compilation analysis cache file location for a project. |
protected File |
defaultTestAnalysisCacheFile(MavenProject p)
Returns incremental test compilation analysis cache file location for a project. |
void |
execute()
Performs compilation. |
protected abstract File |
getAnalysisCacheFile()
Returns incremental compilation analysis cache file. |
protected abstract Map<File,File> |
getAnalysisCacheMap()
Returns incremental compilation analyses map for reactor projects. |
protected abstract List<String> |
getClasspathElements()
Returns compilation classpath elements. |
protected abstract List<String> |
getCompileSourceRoots()
Returns compilation source roots. |
protected abstract File |
getOutputDirectory()
Returns output directory. |
protected abstract Set<String> |
getSourceExcludes()
A list of exclusion filters for the compiler. |
protected abstract Set<String> |
getSourceIncludes()
A list of inclusion filters for the compiler. |
protected void |
internalExecute()
Actual compilation code, to be overridden. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SCALA_VERSION
@Parameter(property="project.build.sourceEncoding") protected String sourceEncoding
@Parameter(property="sbt.javacOptions", defaultValue="-g") protected String javacOptions
@Parameter(property="sbt.scalacOptions", defaultValue="-deprecation -unchecked") protected String scalacOptions
@Component protected MavenProject project
@Component protected MavenProjectBuilder mavenProjectBuilder
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected List<MavenProject> reactorProjects
@Component protected ArtifactFactory factory
@Component protected ArtifactResolver resolver
@Parameter(property="localRepository", readonly=true, required=true) protected ArtifactRepository localRepo
@Parameter(property="project.remoteArtifactRepositories", readonly=true, required=true) protected List<?> remoteRepos
Constructor Detail |
---|
public AbstractSBTCompileMojo()
Method Detail |
---|
public void execute() throws MojoExecutionException, MojoFailureException
MojoExecutionException
- if an unexpected problem occurs.
Throwing this exception causes a "BUILD ERROR" message to be displayed.
MojoFailureException
- if an expected problem (such as a compilation failure) occurs.
Throwing this exception causes a "BUILD FAILURE" message to be displayed.protected void internalExecute() throws MojoExecutionException, MojoFailureException, IOException
MojoExecutionException
- if an unexpected problem occurs.
MojoFailureException
- if an expected problem (such as a compilation failure) occurs.
IOException
- if an IO exception occurs.protected abstract List<String> getClasspathElements()
protected abstract List<String> getCompileSourceRoots()
protected abstract Set<String> getSourceIncludes()
protected abstract Set<String> getSourceExcludes()
protected abstract File getOutputDirectory()
protected abstract File getAnalysisCacheFile()
protected abstract Map<File,File> getAnalysisCacheMap()
protected File defaultAnalysisCacheFile(MavenProject p)
p
- Maven project
protected File defaultTestAnalysisCacheFile(MavenProject p)
p
- Maven project
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |