I haven't seen those warnings before...

Have you tried using help:active-profiles?  Try:

$ mvn -P dev-7777 help:active-profiles

This will list (surprise!) the currently active profiles with which Maven is
executing.


Patrick

On Dec 11, 2007 12:43 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> I am trying to switch profiles for each environment.
> I have dev-7777, and dev-7778
>
> Then in my profiles.xml I have:
>
> *        <profile>
>            <id>dev-7777</id>
>            <properties>
>                <env>dev-7777</env>
>                <build.type>no-documentation</build.type>
>            </properties>
>        </profile>
>
>        <profile>
>            <id>dev-7778</id>
>            <properties>
>                <env>dev-7778</env>
>                <build.type>no-documentation</build.type>
>            </properties>
>        </profile>*
>
>
> *When I run:*
> *mvn -P dev-7777 assembly:assembly -e -X > 7777.out.txt*
> *
> I keep getting this:*
>
> *[WARNING] Overriding profile: 'dev-7777' (source: pom) with new instance
> from source: profiles.xml
> [WARNING] Overriding profile: 'dev-7778' (source: pom) with new instance
> from source: profiles.xml*
>
>
> so it looks like I get both, but 7778 seems to always override 7777. I
> only
> want one of these profiles active at the same time. Can someone please
> help
> me out?
>
>
> --
> 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
> ---
>

Reply via email to