Skip to content

Commit 78bac9e

Browse files
pzygieloslawekjaranowski
authored andcommitted
Bind :clean to 'clean' phase by default
1 parent 8bd8956 commit 78bac9e

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss-bom/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<!-- ensure proper cleanup -->
3131
<execution>
3232
<id>flatten.clean</id>
33-
<phase>clean</phase>
3433
<goals>
3534
<goal>clean</goal>
3635
</goals>

src/it/projects/system-scope-dep-variable/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
</execution>
4545
<execution>
4646
<id>flatten.clean</id>
47-
<phase>clean</phase>
4847
<goals>
4948
<goal>clean</goal>
5049
</goals>

src/main/java/org/codehaus/mojo/flatten/CleanMojo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import org.apache.maven.plugin.MojoExecutionException;
2525
import org.apache.maven.plugin.MojoFailureException;
26+
import org.apache.maven.plugins.annotations.LifecyclePhase;
2627
import org.apache.maven.plugins.annotations.Mojo;
2728
import org.apache.maven.plugins.annotations.Parameter;
2829

@@ -37,6 +38,7 @@
3738
*/
3839
@Mojo(
3940
name = "clean",
41+
defaultPhase = LifecyclePhase.CLEAN,
4042
requiresProject = true,
4143
requiresDirectInvocation = false,
4244
executionStrategy = "once-per-session",

src/site/xdoc/usage.xml.vm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<!-- ensure proper cleanup -->
3131
<execution>
3232
<id>flatten.clean</id>
33-
<phase>clean</phase>
3433
<goals>
3534
<goal>clean</goal>
3635
</goals>

0 commit comments

Comments
 (0)