You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Balasubramanian, Ravi Shankar" <rb...@informatica.com> on 2009/03/12 02:21:53 UTC

Which phase does a plugin's goal execute ?

Hi all,

I am executing a plugin's goal directly through the maven command. It is
executed as follows:

 

mvn clover2:setup ( which executes the setup goal of the clover2 plugin)


 

However, I want another plugin's goal to be executed before the
clover2:setup goal is executed which I have to mention in the pom.xml.
Is there a way to find out which phase does the plugin's goal actually
executes when we call it directly ? 

 

Tx, 

Ravi 


Re: Which phase does a plugin's goal execute ?

Posted by Geoffrey Wiseman <ge...@gmail.com>.
On Wed, Mar 11, 2009 at 9:21 PM, Balasubramanian, Ravi Shankar <
rbalasub@informatica.com> wrote:

> Hi all,
>
> I am executing a plugin's goal directly through the maven command. It is
> executed as follows:
>
> mvn clover2:setup ( which executes the setup goal of the clover2 plugin)
>
> However, I want another plugin's goal to be executed before the
> clover2:setup goal is executed which I have to mention in the pom.xml.
> Is there a way to find out which phase does the plugin's goal actually
> executes when we call it directly ?
>

As far as I understand it, when you invoke a plugin directly, there is no
phase per se -- you're just invoking a plugin.  You could invoke two plugins
(mvn clover2:setup jetty:run), or create a profile where you bind each
plugin two phases in sequence, but you can't bind one plugin to another's
invocation.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/

RE: Which phase does a plugin's goal execute ?

Posted by COURCY Michael <mc...@sigma.fr>.
Hi 

Have a look there 

http://www.sonatype.com/books/maven-book/reference/writing-plugins-sect-plugins-lifecycle.html 

-----Message d'origine-----
De : Balasubramanian, Ravi Shankar [mailto:rbalasub@informatica.com] 
Envoyé : jeudi 12 mars 2009 02:22
À : users@maven.apache.org
Objet : Which phase does a plugin's goal execute ? 

Hi all,

I am executing a plugin's goal directly through the maven command. It is executed as follows:

 

mvn clover2:setup ( which executes the setup goal of the clover2 plugin)


 

However, I want another plugin's goal to be executed before the clover2:setup goal is executed which I have to mention in the pom.xml.
Is there a way to find out which phase does the plugin's goal actually executes when we call it directly ? 

 

Tx, 

Ravi 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Which phase does a plugin's goal execute ?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Check the site for the plugin. The plugin author can tell maven to
execute up to a certain phase in the annotations - and this will be
reflected on the plugin's goal page for that goal.


On 3/11/09 6:21 PM, "Balasubramanian, Ravi Shankar"
<rb...@informatica.com> wrote:

Hi all,

I am executing a plugin's goal directly through the maven command. It is
executed as follows:



mvn clover2:setup ( which executes the setup goal of the clover2 plugin)




However, I want another plugin's goal to be executed before the
clover2:setup goal is executed which I have to mention in the pom.xml.
Is there a way to find out which phase does the plugin's goal actually
executes when we call it directly ?



Tx,

Ravi