You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2016/04/28 22:06:13 UTC

[jira] [Closed] (MCLEAN-72) post-clean phase is not executed

     [ https://issues.apache.org/jira/browse/MCLEAN-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MCLEAN-72.
--------------------------------
    Resolution: Invalid
      Assignee: Robert Scholte

I understand the assumption, but currently Maven simply executes up until the phase specified. Once MNG-5668 is implemented it should work as you described.

> post-clean phase is not executed
> --------------------------------
>
>                 Key: MCLEAN-72
>                 URL: https://issues.apache.org/jira/browse/MCLEAN-72
>             Project: Maven Clean Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5, 3.0.0
>         Environment: Windows
>            Reporter: Sergey Ponomarev
>            Assignee: Robert Scholte
>
> 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:
> {code}
> [echo] in pre-clean phase
> [echo] in clean phase
> {code}
> However if run `mvn post-clean` everything works as expected:
> {code}
> [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] ------------------------------------------------------------------------
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)