I have run into a similar problem. I fixed it by setting each profile to
<activeByDefault>false</activeByDefault>, like
* <profile>
<id>dev-7777</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<env>dev-7777</env>
<build.type>no-documentation</build.type>
</properties>
</profile>
<profile>
<id>dev-7778</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<env>dev-7778</env>
<build.type>no-documentation</build.type>
</properties>
</profile>
HTH
Mick Knutson-4 wrote:
>
> I am trying to switch profiles for each environment.
> I have dev-7777, and dev-7778
>
> :*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
> ---
>
>
--
View this message in context:
http://www.nabble.com/-m2--issue-activating-profiles.-tp14280508s177p14331915.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]