Hi guys,
I'm solving issue with issue with Maven 2.1.X,
I want to activate profile when two conditions are satisfied...
- file is missing
- property containerId isn't set
I used this:
<activation>
<activeByDefault>false</activeByDefault>
<file>
<missing>${demo.location}</missing>
</file>
<property>
<name>containerId</name>
<value>jboss5x</value>
</property>
</activation>
But profile is activated when I'm trying to do
$ mvn verify -Dtest="..."
(without any parameters and that file is missing in ${project.directory})
Article 11.4 from
http://www.sonatype.com/books/maven-book/reference/profiles-sect-activation.html
says, that this is possible.
--
View this message in context:
http://old.nabble.com/Profile-activation-tp26826008p26826008.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]