Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-8246

Calling pre-clean results in calling before:clean/clean/after:clean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0-beta-4
    • 4.0.0-rc-2
    • Command Line, Core
    • None

    Description

      If I call Maven 4.0.0-beta-4 like this:

      mvn pre-clean
      

      That will result in execution of the life cycle phases:

      • before:clean
      • clean
      • after:clean
        I can use also post-clean which results in exactly the same executions (which is expected). Also things like pre-integration-test results in execution of many phases in contradiction to Maven 3.X.
        If I do the same with Maven 3.X only the pre-clean is being executed (as expected).

      The question here is:

      • The user expected to execute only the pre-clean phase which is deprecated in Maven 4.0.0-beta-4+
        • Should we produce a WARNING about the wrong usage of the phase? And continue as shown above.
        • Should we fail and do not accept pre-clean anymore? But that would mean in consequence to prevent calling with anything like pre-integration-test etc.

      You can reproduce this with the example: https://github.com/khmarbaise/maven-bugs/tree/master/MNG-8244

      Attachments

        Activity

          People

            Unassigned Unassigned
            khmarbaise Karl Heinz Marbaise
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: