maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manos Batsis <manos_li...@geekologue.com>
Subject Re: Optional Mojo Execution?
Date Mon, 01 Oct 2007 13:02:06 GMT
Tim Kettler wrote:
> Hi,
> 
> Manos Batsis schrieb:
>>
>> Suppose i bundle several mojos under one plugin artifactId, how can i 
>> make their execution optional? In other words, I only want to run a 
>> specific mojo when there is an execution element is present for it's 
>> goal in the plugin configuration.
> 
> Isn't that the default behaviour? You may want to look at the sources of 
> the dependency- or assembly-plugin, both contain multiple mojo's and 
> only those you specify in an execution element will be invoked.

I still cannot figure it out (or how much of it applies to Reporting 
mojos). Can someone please explain the difference, if any, between


/* @goal foo
  * @phase site
  */

and

/* @goal foo
  * @execute phase="site"
  */


??

Many thanks,

Manos



> 
>> Many thanks,
>>
>> Manos
> 
> -Tim
> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


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


Mime
View raw message