I think I read that things get weird if you have a profile without an <id> element. Try adding one to your uat profile. Then try both with your activation property, but also by directly specifying the id with -P.
Greg Vaughn [EMAIL PROTECTED] "Mick Knutson" <[EMAIL PROTECTED]> 10/18/2006 03:34 PM Please respond to "Maven Users List" <[email protected]> To "maven" <[email protected]> cc Subject profiles.xml question I have the following setting in my profiles.xml: <profilesXml> <profiles> <!--================================================================--> <!-- Local developer Profile. --> <!--================================================================--> <profile> <id>local</id> <properties> <target.server>local</target.server> <jazn.url>${jazn.url.dev}</jazn.url> </properties> </profile> <profile> <activation> <property> <name>environment</name> <value>uat</value> </property> </activation> <properties> <jazn.url>${jazn.url.uat}</jazn.url> <jazn.bind.dn>${jazn.bind.dn.qa}</jazn.bind.dn> </properties> </profile> Then I run: mvn -Denvironment=qa clean install -e I get this at the start of my build: C:\viewstore\npi_tactical_dev\NPI_Provider>mvn -Denvironment=uat clean install -e + Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] Overriding profile: 'null' (source: profiles.xml) with new instance from source: profiles.xml [WARNING] Overriding profile: 'null' (source: profiles.xml) with new instance from source: profiles.xml WHen the build is finished, the values that I get for "jazn.url" are for dev URL, not UAT...??? WHy is that not getting picked up? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson ====================================================================== Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. ======================================================================
