And jsut as and added issue to this, I am trying to have a sub-module plugin
only fire in dev but it seems to fire when I run "mvn -P qa clean package
-e"
</build>
<!--=============================================================================================================-->
<!-- Build Profile Declarations -->
<!--=============================================================================================================-->
<profiles>
<profile>
<id>dev</id>
<activation>
<property>
<name>env</name>
<value>dev</value>
</property>
</activation>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
On 10/18/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
Here is what I now have working:
with "mvn clean package -e" or "mvn -Denv-qa clean package -e"
None of the profiles get picked up correctly and all my parameters are
missing.
"mvn -P qa clean package -e" works just fine with the configuration below.
In the settings.xml the <env>dev</env> tag seems to override what is in
the profiles.xml, but when I remove it, then env seems to work if I
specify the -P on the command line
*** BUT, I want to be able to run with zero parameters on the command line
and run the default profile but that does not seem to work
<profile>
<id>local</id>
<properties>
<env>dev</env>
</properties>
</profile>
</profiles>
<!--
| activeProfiles
| List of profiles that are active for all builds.
|-->
<activeProfiles>
<activeProfile>local</activeProfile>
</activeProfiles>
</settings>
profiles.xml:
============
<profilesXml>
<profiles>
<!--================================================================-->
<!-- Local developer Profile. -->
<!--================================================================-->
<profile>
<id>dev</id>
<activation>
<activeByDefault/>
</activation>
<properties>
<env>dev</env>
<compiler.debug>true</compiler.debug>
<jazn.url>${ jazn.url.dev}</jazn.url>
<jazn.bind.dn>${jazn.bind.dn.dev}</jazn.bind.dn>
<jazn.samaccount>${jazn.samaccount.dev}</jazn.samaccount>
</properties>
</profile>
<profile>
<id>qa</id>
<activation>
<property>
<name>env</name>
<value>qa</value>
</property>
</activation>
<properties>
<env>qa</env>
< jazn.url>${jazn.url.qa}</jazn.url>
<jazn.bind.dn>${jazn.bind.dn.qa}</jazn.bind.dn>
<jazn.samaccount >${jazn.samaccount.qa}</jazn.samaccount>
</properties>
</profile>
<profile>
<id>uat</id>
<activation>
<property>
<name>env</name>
<value>uat</value>
</property>
</activation>
<properties>
<env>uat</env>
<jazn.url>${jazn.url.uat}</jazn.url>
<jazn.bind.dn>${jazn.bind.dn.uat}</jazn.bind.dn>
<jazn.samaccount>${jazn.samaccount.uat}</jazn.samaccount>
</properties>
</profile>
<profile>
<id>prod</id>
<activation>
<property>
<name>env</name>
<value>prod</value>
</property>
</activation>
<properties>
<env>prod</env>
<jazn.url>${jazn.url.prod}</jazn.url>
<jazn.bind.dn>${jazn.bind.dn.prod}</jazn.bind.dn>
<jazn.samaccount>${jazn.samaccount.prod}</jazn.samaccount>
</properties>
</profile>
</profiles>
</profilesXml>
--
Thanks
DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson