Plugin execution defined inside profile is running before other plugin 
executions defined in main project
---------------------------------------------------------------------------------------------------------

                 Key: MNG-4415
                 URL: http://jira.codehaus.org/browse/MNG-4415
             Project: Maven 2
          Issue Type: Bug
          Components: Plugins and Lifecycle, Profiles
    Affects Versions: 3.0
         Environment: windows
            Reporter: Damian Bradicich


in maven 2.2.1 if a plugin execution defined in build section of pom had same 
phase as plugin execution defined in build section of a profile, the 
non-profile plugin execution would run first.  In maven 3.0-SNAPSHOT (latest as 
of oct 27th) the profile plugin execution runs first.

I have a pom setup as follows (pseudo code)

<project>
  <build>
    <plugins>
      <plugin>
        <gav>plugin1</gav>
        <executions>
          <execution>
            <id>some-id</id>
            <phase>package</phase>
            <goals>
              <goal>some-goal</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
<profiles>
    <profile>
      <id>some-id</id>
      <build>
        <plugins>
          <plugin>
            <gav>plugin2</gav>
            <executions>
              <execution>
                <id>some-id</id>
                <phase>package</phase>
                <goals>
                  <goal>some-goal</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profile>
</project>

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

        

Reply via email to