Is there a way to activate a profile only if there was not one specified on
the command line? ActiveByDefault seems to always be active no matter what.
On Dec 4, 2007 11:11 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:
> I have a local profile in my settings.xml that is activeby default. I am
> trying to solve:
>
> I want to switch filters based on environment:
>
> <filters>
>
> <filter>${projectRoot}/src/main/filters/filter-${env}.properties</filter>
>
> <!--<filter>${projectRoot}/src/main/filters/filter.properties</filter>-->
> </filters>
>
> SO I would like to keep local as the default:
>
> <profile>
> <id>local</id>
> <activation>
> <activeByDefault/>
> </activation>
> <properties>
> <env>local</env>
> ....
>
> Then if I add -P dev7777 I want to then have Maven override this:
>
> <profile>
> <id>dev7777</id>
> <properties>
> <env>dev</env>
> ....
>
> Is this the proper way to do this for multi-module project?
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---