Package org.codehaus.mojo.flatten
Class CleanMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.flatten.AbstractFlattenMojo
org.codehaus.mojo.flatten.CleanMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="clean",
defaultPhase=CLEAN,
requiresProject=true,
requiresDirectInvocation=false,
executionStrategy="once-per-session",
threadSafe=true)
public class CleanMojo
extends AbstractFlattenMojo
This MOJO realizes the goal
flatten:clean that deletes any files created by
flatten:flatten (more specific the flattened POM file which is by default
.flattened-pom.xml).- Since:
- 1.0.0-beta-2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIftruethe clean goal will be skipped.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.flatten.AbstractFlattenMojo
getFlattenedPomFile, getFlattenedPomFilename, getOutputDirectory, shouldSkipMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
skipClean
@Parameter(property="flatten.clean.skip", defaultValue="false") private boolean skipCleanIftruethe clean goal will be skipped.- Since:
- 1.6.0
-
-
Constructor Details
-
CleanMojo
public CleanMojo()The constructor.
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
shouldSkipGoal
protected boolean shouldSkipGoal()- Specified by:
shouldSkipGoalin classAbstractFlattenMojo
-