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 AbstractFlattenMojoThis MOJO realizes the goalflatten:cleanthat deletes any files created by(more specific the flattened POM file which is by defaultflatten:flatten.flattened-pom.xml).- Since:
- 1.0.0-beta-2
-
-
Field Summary
Fields Modifier and Type Field Description private booleanskipCleanIftruethe clean goal will be skipped.
-
Constructor Summary
Constructors Constructor Description CleanMojo()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected booleanshouldSkipGoal()-
Methods inherited from class org.codehaus.mojo.flatten.AbstractFlattenMojo
getFlattenedPomFile, getFlattenedPomFilename, getOutputDirectory, shouldSkip
-
-
-
-
Method Detail
-
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
-
-