Re: Disabling a plugin bound to a phase

2008-06-18 Thread ben.gidley




Wayne Fay wrote:
> 
> I would probably set that up as follows:
> Default profile (in parent pom) only specifies  which are jars
> War profile specifies all modules, jars and wars
> 
> I have a similar set up already for some projects - but in this case I do
> want to build (and especially compile) the web app projects.
> 
> I have played around with  sections on the war plugin but i
> can't get it to unbind to the phase - I suspect it is not possible but I
> was hoping if someone could confirm that. 
> 
> On 6/17/08, Ben Gidley <[EMAIL PROTECTED]> wrote:
>> Hi,
>> We have a multiproject which contains both war and jar projects. I would
>> like (in a profile) to disable the war projects from building their wars
>> -
>> as it takes ages and we only need them now and then.
>>
>> Is this possible?
>>
>> So I want to run
>> mvn install -PnoWars
>> At the parent and get all the jars built but not the wars.
>>
>> Thanks
>>
>> Ben Gidley
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Disabling-a-plugin-bound-to-a-phase-tp17909208p17971871.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Disabling a plugin bound to a phase

2008-06-17 Thread Wayne Fay
I would probably set that up as follows:
Default profile (in parent pom) only specifies  which are jars
War profile specifies all modules, jars and wars

When you want a jar-only build, you just execute "mvn install" at the parent.
When you want wars too, you execute "mvn install -Dpluswars" at the parent.

Wayne

On 6/17/08, Ben Gidley <[EMAIL PROTECTED]> wrote:
> Hi,
> We have a multiproject which contains both war and jar projects. I would
> like (in a profile) to disable the war projects from building their wars -
> as it takes ages and we only need them now and then.
>
> Is this possible?
>
> So I want to run
> mvn install -PnoWars
> At the parent and get all the jars built but not the wars.
>
> Thanks
>
> Ben Gidley
>

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



Disabling a plugin bound to a phase

2008-06-17 Thread Ben Gidley
Hi,
We have a multiproject which contains both war and jar projects. I would
like (in a profile) to disable the war projects from building their wars -
as it takes ages and we only need them now and then.

Is this possible?

So I want to run
mvn install -PnoWars
At the parent and get all the jars built but not the wars.

Thanks

Ben Gidley