From d13e078811d9b589ae05a76494ae9702bebef657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20=C5=BBygie=C5=82o?= Date: Wed, 29 Jan 2025 10:56:31 +0100 Subject: [PATCH] Bind :clean to 'clean' phase by default --- .../pom.xml | 1 - src/it/projects/system-scope-dep-variable/pom.xml | 1 - src/main/java/org/codehaus/mojo/flatten/CleanMojo.java | 2 ++ src/site/xdoc/usage.xml.vm | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss-bom/pom.xml b/src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss-bom/pom.xml index a214621b..d2dcf1d7 100644 --- a/src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss-bom/pom.xml +++ b/src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss-bom/pom.xml @@ -30,7 +30,6 @@ flatten.clean - clean clean diff --git a/src/it/projects/system-scope-dep-variable/pom.xml b/src/it/projects/system-scope-dep-variable/pom.xml index b4565978..00cda823 100644 --- a/src/it/projects/system-scope-dep-variable/pom.xml +++ b/src/it/projects/system-scope-dep-variable/pom.xml @@ -44,7 +44,6 @@ flatten.clean - clean clean diff --git a/src/main/java/org/codehaus/mojo/flatten/CleanMojo.java b/src/main/java/org/codehaus/mojo/flatten/CleanMojo.java index 3d98d577..1d928d02 100644 --- a/src/main/java/org/codehaus/mojo/flatten/CleanMojo.java +++ b/src/main/java/org/codehaus/mojo/flatten/CleanMojo.java @@ -23,6 +23,7 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; +import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; @@ -37,6 +38,7 @@ */ @Mojo( name = "clean", + defaultPhase = LifecyclePhase.CLEAN, requiresProject = true, requiresDirectInvocation = false, executionStrategy = "once-per-session", diff --git a/src/site/xdoc/usage.xml.vm b/src/site/xdoc/usage.xml.vm index a96bdafc..d3c6c898 100644 --- a/src/site/xdoc/usage.xml.vm +++ b/src/site/xdoc/usage.xml.vm @@ -30,7 +30,6 @@ flatten.clean - clean clean