maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Ruijgers (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-5673) Profile activation does not work if more than 1 type of activation is present
Date Tue, 05 Aug 2014 11:27:10 GMT

     [ https://jira.codehaus.org/browse/MNG-5673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeroen Ruijgers updated MNG-5673:
---------------------------------

    Description: 
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 from the configuration, the profile is activated based on the directory

  was:
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


> 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 from the configuration, the profile is activated based on the directory



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message