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

plugin goals referenced in build/pluginManagment unexpectedly executed during lifecycle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0-beta-3
    • Plugins and Lifecycle
    • None
    • WinXP SP2, Java 1.4.2_06, Maven 2.0-beta-1

    Description

      Goals referenced in <build><pluginManagement> plugins are executed during the lifecycle - this is unexpected.

      See the attached pom.xml as an example.

      Running "m2 install" on this pom causes the "war" plugin to execute the "war" goal during the packaging phase of the lifecycle.

      Note that the goal should not execute because it is inside the <pluginManagement> section.

      Attachments

        1. pom.xml
          0.7 kB
          John Fallows

        Activity

          People

            jdcasey John Dennis Casey
            ejit John Fallows
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h