Package scala_maven
Class AddSourceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
scala_maven.AddSourceMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="add-source",
executionStrategy="always",
defaultPhase=INITIALIZE,
requiresDirectInvocation=false,
threadSafe=true)
public class AddSourceMojo
extends org.apache.maven.plugin.AbstractMojo
Add more source directories to the POM.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.project.MavenProject
The maven projectprotected File
The directory in which scala source is foundprotected File
The directory in which testing scala source is foundprotected boolean
Should use CanonicalPath to normalize path (true => getCanonicalPath, false => getAbsolutePath)Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(property="project", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe maven project -
sourceDir
The directory in which scala source is found -
testSourceDir
@Parameter(defaultValue="${project.build.testSourceDirectory}/../scala") protected File testSourceDirThe directory in which testing scala source is found -
useCanonicalPath
@Parameter(property="maven.scala.useCanonicalPath", defaultValue="true") protected boolean useCanonicalPathShould use CanonicalPath to normalize path (true => getCanonicalPath, false => getAbsolutePath)- See Also:
-
-
Constructor Details
-
AddSourceMojo
public AddSourceMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-