I keep getting this:
The following profiles are active: - local (source: settings.xml) - local (source: settings.xml) - local (source: settings.xml) - dev-7777 (source: *profiles*.xml) - documentation (source: *profiles*.xml) - dev-7778 (source: *profiles*.xml) Not all of these profiles have been activated. Only local is active by default. The other 3 profiles exist in profiles.xml, but have not been activated. On Dec 11, 2007 1:33 PM, Patrick Schneider <[EMAIL PROTECTED]> wrote: > 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 > > --- > > > -- 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 ---
