You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Farrukh Najmi <fa...@wellfleetsoftware.com> on 2007/11/03 17:30:31 UTC

Looking for macro like capability in maven

I have a situation where I need many instances of the same plugin within 
my pom. Each instance would typically require quite a long configuration.
However, all such plugin instances are basically very similar with a few 
minor differences. Is it somehow possible to minimize the content of the 
pom by
using some sort of macro ability to instantiate the same plugin 
description multiple times with the few variables specified as parameters?

TIA.

-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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


Re: Looking for macro like capability in maven

Posted by Farrukh Najmi <fa...@wellfleetsoftware.com>.
I am trying to compile a fairly complex set of XMl Schemas using JAXB RI 
and the maven-jaxb-plugin.
This plugin does not provide a simple way to map schema directories to 
java packages (only maps on a per schema file basis).
So I need to run the plugin for each directory in my schema tree and 
specific a corresponding java package in the plugin configuratio.

In ant days I could have simply create an ant macro with one parameter 
(the java package name) and then simply invoked the macro as many times as
needed. I am looking for something similar. TIA.

Wayne Fay wrote:
> Tell us more about what you're trying to do, what plugin(s) you're
> using, and why you're doing this. There may be a smarter, more
> Maven-ish way to do it.
>
> Wayne
>
> On 11/3/07, Farrukh Najmi <fa...@wellfleetsoftware.com> wrote:
>   
>> I have a situation where I need many instances of the same plugin within
>> my pom. Each instance would typically require quite a long configuration.
>> However, all such plugin instances are basically very similar with a few
>> minor differences. Is it somehow possible to minimize the content of the
>> pom by
>> using some sort of macro ability to instantiate the same plugin
>> description multiple times with the few variables specified as parameters?
>>
>> TIA.
>>
>> --
>> Regards,
>> Farrukh
>>     


-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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


Re: Looking for macro like capability in maven

Posted by Wayne Fay <wa...@gmail.com>.
Tell us more about what you're trying to do, what plugin(s) you're
using, and why you're doing this. There may be a smarter, more
Maven-ish way to do it.

Wayne

On 11/3/07, Farrukh Najmi <fa...@wellfleetsoftware.com> wrote:
>
> I have a situation where I need many instances of the same plugin within
> my pom. Each instance would typically require quite a long configuration.
> However, all such plugin instances are basically very similar with a few
> minor differences. Is it somehow possible to minimize the content of the
> pom by
> using some sort of macro ability to instantiate the same plugin
> description multiple times with the few variables specified as parameters?
>
> TIA.
>
> --
> Regards,
> Farrukh
>
> Web: http://www.wellfleetsoftware.com
>
>
>
> ---------------------------------------------------------------------
> 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