You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jeroen Ruijgers (JIRA)" <ji...@codehaus.org> on 2014/08/05 13:25:10 UTC
[jira] (MNG-5673) Profile activation does not work if more than 1
type of activation is present
Jeroen Ruijgers created MNG-5673:
------------------------------------
Summary: Profile activation does not work if more than 1 type of activation is present
Key: MNG-5673
URL: https://jira.codehaus.org/browse/MNG-5673
Project: Maven
Issue Type: Bug
Components: Profiles
Affects Versions: 3.2.2
Reporter: Jeroen Ruijgers
Priority: Blocker
When a profile has more than 1 activation, according to the [documentation|http://maven.apache.org/pom.html#Activation] 1 match is enough to activate a profile:
{quote}Activation occurs when one or more of the specified criteria have been met. When the first positive result is encountered, processing stops and the profile is marked as active.{quote}
Since Maven 3.2.2 this does not work. For instance with the following activation code:
{code}
<activation>
<file>
<exists>${env.JBOSS_HOME}/server/development</exists>
</file>
<property>
<name>assembly</name>
</property>
</activation>
{code}
The profile only gets activated if both the directory is present and the propery is specified. If we remove the property, the profile is activated based on the directory
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)