You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Oscar Picasso <os...@gmail.com> on 2013/11/21 21:50:26 UTC

Force custom mojo to always skip modules

Hi,

I have written a custom plugin.
Is it possible to have it always to skip the modules in multimodule
projects.

I have made several trials like overriding MavenProject.getModules() to
return an empty but with not luck.

Oscar

Re: Force custom mojo to always skip modules

Posted by Oscar Picasso <os...@gmail.com>.
Thanks. It works.




On Thu, Nov 21, 2013 at 4:12 PM, Robert Scholte <rf...@apache.org>wrote:

> Hi Oscar,
>
> yes, we call it aggregator:
> http://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/
> apache/maven/plugins/annotations/Mojo.html#aggregator()
>
> Robert
>
> Op Thu, 21 Nov 2013 21:50:26 +0100 schreef Oscar Picasso <
> oscarpicasso@gmail.com>:
>
>
>  Hi,
>>
>> I have written a custom plugin.
>> Is it possible to have it always to skip the modules in multimodule
>> projects.
>>
>> I have made several trials like overriding MavenProject.getModules() to
>> return an empty but with not luck.
>>
>> Oscar
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
blog: http://fp.opicasso.com
twitter: @oscarpica
google+: https://plus.google.com/u/0/
facebook: http://www.facebook.com/

Re: Force custom mojo to always skip modules

Posted by Robert Scholte <rf...@apache.org>.
Hi Oscar,

yes, we call it aggregator:
http://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/apache/maven/plugins/annotations/Mojo.html#aggregator()

Robert

Op Thu, 21 Nov 2013 21:50:26 +0100 schreef Oscar Picasso  
<os...@gmail.com>:

> Hi,
>
> I have written a custom plugin.
> Is it possible to have it always to skip the modules in multimodule
> projects.
>
> I have made several trials like overriding MavenProject.getModules() to
> return an empty but with not luck.
>
> Oscar

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