maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-4344) [regression] Managed executions of plugins introduced by default lifecycle bindings execute before explicitly defined plugins
Date Mon, 07 Sep 2009 21:23:32 GMT
[regression] Managed executions of plugins introduced by default lifecycle bindings execute
before explicitly defined plugins
-----------------------------------------------------------------------------------------------------------------------------

                 Key: MNG-4344
                 URL: http://jira.codehaus.org/browse/MNG-4344
             Project: Maven 2
          Issue Type: Bug
          Components: Plugins and Lifecycle
    Affects Versions: 3.0-alpha-3
            Reporter: Benjamin Bentmann


For this POM snippet
{code:xml}
<build>
  <pluginManagement>
    <plugins>
      <plugin>
        <!-- NOTE: It's essential that this plugin is also referenced by the default lifecycle
bindings -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>0.1-stub-SNAPSHOT</version>
        <executions>
          <execution>
            <id>second</id>
            <phase>validate</phase>
            <goals>
              <goal>resources</goal>
            </goals>
            <configuration>
              <pathname>target/log.txt</pathname>
              <message>second</message>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </pluginManagement>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.its.plugins</groupId>
      <artifactId>maven-it-plugin-log-file</artifactId>
      <version>2.1-SNAPSHOT</version>
      <executions>
        <execution>
          <id>first</id>
          <phase>validate</phase>
          <goals>
            <goal>log-string</goal>
          </goals>
          <configuration>
            <logFile>target/log.txt</logFile>
            <string>first</string>
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>
{code}
and the invocation "mvn clean process-resources", the execution order is first, second with
Maven 2 but second, first with Maven 3.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message