Package org.codehaus.mojo.buildhelper
Class AddSourceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AddSourceMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="add-source",
defaultPhase=GENERATE_SOURCES,
threadSafe=true)
public class AddSourceMojo
extends org.apache.maven.plugin.AbstractMojo
Add more source directories to the POM.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.project.MavenProject
private boolean
Skip plugin execution.private boolean
If a directory does not exist, do not add it as a source root.private File[]
Additional source directories.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
-
sources
Additional source directories.- Since:
- 1.0
-
project
@Parameter(readonly=true, defaultValue="${project}") private org.apache.maven.project.MavenProject project- Since:
- 1.0
-
skipAddSource
@Parameter(property="buildhelper.addsource.skip", defaultValue="false") private boolean skipAddSourceSkip plugin execution.- Since:
- 3.5.0
-
skipAddSourceIfMissing
@Parameter(property="buildhelper.addsource.skipIfMissing", defaultValue="false") private boolean skipAddSourceIfMissingIf a directory does not exist, do not add it as a source root.- Since:
- 3.5.0
-
-
Constructor Details
-
AddSourceMojo
public AddSourceMojo()
-
-
Method Details
-
execute
public void execute()
-