Package org.codehaus.mojo.flatten
Class AbstractFlattenMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.flatten.AbstractFlattenMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CleanMojo
,FlattenMojo
public abstract class AbstractFlattenMojo
extends org.apache.maven.plugin.AbstractMojo
This is the abstract base class for
MOJOs
that realize the different goals of this plugin.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The filename of the generated flattened POM file.private File
The directory where the generated flattened POM file will be written to.private boolean
Iftrue
the plugin will be skipped.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
outputDirectory
The directory where the generated flattened POM file will be written to. -
flattenedPomFilename
@Parameter(property="flattenedPomFilename", defaultValue=".flattened-pom.xml") private String flattenedPomFilenameThe filename of the generated flattened POM file. -
skip
@Parameter(property="flatten.skip", defaultValue="false") private boolean skipIftrue
the plugin will be skipped.- Since:
- 1.6.0
-
-
Constructor Details
-
AbstractFlattenMojo
public AbstractFlattenMojo()The constructor.
-
-
Method Details
-
getFlattenedPomFilename
- Returns:
- the filename of the generated flattened POM file.
-
getOutputDirectory
- Returns:
- the directory where the generated flattened POM file will be written to.
-
getFlattenedPomFile
- Returns:
- a
File
instance pointing to the flattened POM.
-
shouldSkip
protected boolean shouldSkip() -
shouldSkipGoal
protected abstract boolean shouldSkipGoal()
-