AFAIK, the order only applies for plugins in the main build section, not
plugins introduced via a profile, and the ordering is just a side effect.
 The recommendation is not to rely on the order within a phase, if something
should run prior to something else, bind it to an earlier phase

-Stephen

On 7 July 2010 07:18, Anders Hammar <and...@hammar.net> wrote:

> AFAIK it's the order they are defined in in the pom. This would depend on
> the version of Maven though, as it has not always been like that.
>
> /Anders
>
> On Wed, Jul 7, 2010 at 08:08, Stephen Connolly <
> stephen.alan.conno...@gmail.com> wrote:
>
> > The rule for Maven is that the order of plugin execution within a phase
> is
> > undefined.
> >
> > -Stephen
> >
> > On 6 July 2010 21:47, asookazian <asookaz...@gmail.com> wrote:
> >
> > >
> > > Does the plugin goal below get executed before or after the completion
> of
> > > the
> > > install phase when I exec 'mvn clean install' command?  Is there a way
> to
> > > configure the before or after order?
> > >
> > > <profile>
> > >                    <id>ant-explode</id>
> > >                    <build>
> > >                        <plugins>
> > >                            <plugin>
> > >
> > >  <groupId>org.apache.maven.plugins</groupId>
> > >
> > >  <artifactId>maven-antrun-plugin</artifactId>
> > >                                                <executions>
> > >                                                  <execution>
> > >
>  <phase>install</phase>
> > >                                                    <configuration>
> > >                                                      <tasks>
> > >                                                        <echo
> > > message="Invoking explode ant target..."/>
> > >                                                        <ant
> > > antfile="build.xml" target="explode"/>
> > >                                                      </tasks>
> > >                                                    </configuration>
> > >                                                    <goals>
> > >                                                      <goal>run</goal>
> > >                                                    </goals>
> > >                                                  </execution>
> > >                                                </executions>
> > >                                              </plugin>
> > >                        </plugins>
> > >                    </build>
> > >                </profile>
> > > --
> > > View this message in context:
> > >
> >
> http://maven.40175.n5.nabble.com/when-does-the-plugin-goal-get-executed-during-the-lifecycle-tp946348p946348.html
> > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
> >
>

Reply via email to