Plugins that are executed with any given phase can come from three
places:  they can be associated with the phase by the definition of the
packaging type for your project, they can come from the parent pom, and
they can be given in your pom.  According to the docs, the plugins from
the packaging are run first, followed by the plugins listed in the
parent pom, followed by the plugins listed in your pom.  For those
groups, the plugins are supposed to be run in the order they are
declared.
 
However, in Maven 2.0, reality proved otherwise.  When I ran the phase
with plugins coming from both the parent and my pom, the order was
incorrect (but when I only had plugins listed in one of the two poms it
worked correctly).  I filed http://jira.codehaus.org/browse/MNG-1499,
which was fixed in Maven 2.0.1.  Are you seeing ordering problems in
Maven 2.0.1?
 
..David..

________________________________

From: Patrick O'shea [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 10:21 AM
To: Maven Users List
Subject: RE: {m2] plugin execution order



Hi, 


it just means that i can configure a plugin to a phase in the pom.xml, 
like the following: 
<plugin> 
  <groupId>org.apache.maven.plugins</groupId> 
  <artifactId>maven-site-plugin</artifactId> 
     <executions> 
         <execution> 
           <id>deploy-site</id> 
           <phase>install</phase> 
           <goals> 
             <goal>deploy</goal> 
                </goals> 
      </execution> 
</executions>                 
<executions> 


The problem I have, is that I have multiple plugins with executions
configured to the install phase, 
and the order they are run in is not the order they appear in the
pom.xml

thanks,
Patrick O'Shea 




  



"Christopher Cobb" <[EMAIL PROTECTED]> 

12/15/2005 06:10 PM 
Please respond to
"Maven Users List" <[email protected]>


To
"'Maven Users List'" <[email protected]> 
cc
Subject
RE: {m2] plugin execution order

        




I just read this:

"you can use the executions element to gain more control over the order
of
particular goals"

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.ht
ml

(Plugins section)

Of course, I have no clue what that actually means.


-----Original Message-----
From: Patrick O'shea [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 11:42 AM
To: Maven Users List
Subject: {m2] plugin execution order

Hi,

If i have multiple plugins running in the same phase, 
How do i control the order that they are run ?

thanks in advance
Patrick O'Shea 


-----------------------------------------
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to