>From a recently updated
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

"As of Maven 2.0.9, the tags <exists> and <missing> could be
interpolated. Supported variables are system properties like
${user.home} and enviroment variables like ${env.HOME}. Please note that
properties defined in the POM itself are not available for interpolation
here."

Is this what you are running into?

Lukas Fryc wrote:
> 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.


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to