maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Géraud <gala...@gmail.com>
Subject Cascading profile activation
Date Fri, 01 Oct 2010 00:56:34 GMT
Hi

I'm trying to activate a profile inside another profile :
here is an example :

 <profiles>
   <!-- ENVIRONMENTS -->
   <profile>
     <id>env1</id>
     <activation>
       <property>
         <name>env</name>
         <value>1</value>
       </property>
     </activation>
     <properties>
       <server.type>type1</server.type>
     </properties>
   </profile>

   <!-- define other environments -->

   <!-- SERVER TYPES -->
   <profile>
     <id>type1</id>
     <activation>
       <property>
         <name>server.type</name>
         <value>type1</value>
       </property>
     </activation>
     <properties>
       <!-- define properties... -->
     </properties>
  </profile>

  <!-- define other server types -->

 </profiles>

when I try to run a maven command, activating "env1" profile, "type1"
profile is never activated
e.g.: mvn help:active-profiles -Denv=1

I tried with differents configurations :
OS: windows XP and Vista
Maven: 2.0.9 and 2.2.1

Did I miss something ?

Géraud

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message