Uploaded image for project: 'Maven Clean Plugin'
  1. Maven Clean Plugin
  2. MCLEAN-72

post-clean phase is not executed

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

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] ------------------------------------------------------------------------
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rfscholte Robert Scholte
            stokito Sergey Ponomarev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment