You can use a comma separated list -Px,y




Stephen Connolly <stephen.alan.conno...@gmail.com> 
Aug 26 2010 13:43

Mail Size: 6227

Please respond to
"Maven Users List" <users@maven.apache.org>


To
Maven Users List <users@maven.apache.org>
cc

Subject
Re: Multiple profile execution in maven

  Entity
   HSBC Bank plc - HBEU



I think you use multiple -P's to activate them

-Px -Py

but that could all just be my imagination ;-)

On 26 August 2010 12:33, Anders Hammar <and...@hammar.net> wrote:

> It should work. However, I'm not sure if I have ever enabled more than 
one
> profile from command line.
> Just for the heck of it, could you try adding a space between -P and the
> profiles list ("-P x,y")?
>
> /Anders
>
> On Thu, Aug 26, 2010 at 13:16, Sridhar Laxmipuram Srinivasan <
> sridh...@yahoo-inc.com> wrote:
>
> > Hi,
> > I have 2 profiles which are deactivated by default but at run time I 
need
> > to execute both of them, I have tried with -P<x>,<y> but of no use it
> always
> > executes the latter, Could you kindly provide me a solution to this. I 
am
> > using maven 2.2.1 version
> >
> > thnkx
> > sridharl
> >
> >
>



************************************************************
HSBC Bank plc
Registered Office: 8 Canada Square, London E14 5HQ
Registered in England - Number 14259
Authorised and regulated by the Financial Services Authority
************************************************************


-----------------------------------------
SAVE PAPER - THINK BEFORE YOU PRINT!

This transmission has been issued by a member of the HSBC Group
"HSBC" for the information of the addressee only and should not be
reproduced and/or distributed to any other person. Each page
attached hereto must be read in conjunction with any disclaimer
which forms part of it. Unless otherwise stated, this transmission
is neither an offer nor the solicitation of an offer to sell or
purchase any investment. Its contents are based on information
obtained from sources believed to be reliable but HSBC makes no
representation and accepts no responsibility or liability as to its
completeness or accuracy.

Reply via email to