maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado-3 <>
Subject How do I de-activate a profile if another profile is specified?
Date Thu, 08 Aug 2013 21:13:52 GMT

I'm using Maven 3.0.3.  I want to activate a profile (profileA) at all times
unless the user specifically requests profile B on the command line (e.g.
"-P profileB").  However, right now both profiles are active when I run

	mvn clean install -P profileB

and I can't figure out why.  Here's the relevant section from my parent
pom.xml <profiles> section:



Any suggestions how to configure the profiles to get the desired behavior? 
Thanks, - Dave

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message