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