On 18 Oct 07, at 3:22 PM 18 Oct 07, Yan Huang wrote:

Hello,

Is there a way to configure a profile to be activated only if another
profile is not active? Let's say I have profile1, profile2 and profie3. I
only want to activate profile1 when profile2 is not active. How can I
achieve it?


The activator that is used for this is the "activeByDefault"

<profile>
  <id>default</id>
  <activation>
    <activeByDefault>true</activeByDefault>
 </activation>
 ..
</profile>

If no other profile is active then this profile will be used. As soon as another profile is active, this profile is knocked out. To have a profile always on you place it in the "activeProfiles" element in your settings.xml.

Thanks
Yan

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to