Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
2.5, 3.0.0
-
None
-
None
-
Windows
Description
clean plugin defines three phases: pre-clean, clean, and post-clean.
I bound a goal of another plugin to post-clean but it doesn't work.
For example this [configuration](http://www.avajava.com/tutorials/lessons/what-are-the-phases-of-the-maven-clean-lifecycle.html) echoes pre-clean, clean but not post-clean:
[echo] in pre-clean phase [echo] in clean phase
However if run `mvn post-clean` everything works as expected:
[INFO] ------------------------------------------------------------------------
[INFO] Building mavenclean 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.1:run (id.pre-clean) @ mavenclean ---
[INFO] Executing tasks
[echo] in pre-clean phase
[INFO] Executed tasks
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mavenclean ---
[INFO]
[INFO] --- maven-antrun-plugin:1.1:run (id.clean) @ mavenclean ---
[INFO] Executing tasks
[echo] in clean phase
[INFO] Executed tasks
[INFO]
[INFO] --- maven-antrun-plugin:1.1:run (id.post-clean) @ mavenclean ---
[INFO] Executing tasks
[echo] in post-clean phase
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------