You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jérôme Verstrynge (JIRA)" <ji...@codehaus.org> on 2012/01/30 01:23:02 UTC

[jira] (MNG-5235) Profiles not activated according to property values

Jérôme Verstrynge created MNG-5235:
--------------------------------------

             Summary: Profiles not activated according to property values
                 Key: MNG-5235
                 URL: https://jira.codehaus.org/browse/MNG-5235
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Profiles
    Affects Versions: 3.0.3
         Environment: Windows 7
            Reporter: Jérôme Verstrynge
         Attachments: pom.xml

I am trying to activate profiles according to properties defined in the pom.xml. Unfortunately, the profiles are never activated, no matter what value is set for the defined property. I double-checked my pom.xml with existing documentation.

The attached example contains two profiles who echo the property value. These are never displayed in the output. However, documentation says a profile should be invoked if the activation section property values are met.

There is also something unclear in the existing documentation. Is it possible to enable multiple profiles with properties in a single run or is only one profile selected at most in a single run?

 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MNG-5235) Profiles not activated according to property values

Posted by "Jérôme Verstrynge (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290317#comment-290317 ] 

Jérôme Verstrynge commented on MNG-5235:
----------------------------------------

Ok, thanks, that was not clear to me... I'll close the incident.
                
> Profiles not activated according to property values
> ---------------------------------------------------
>
>                 Key: MNG-5235
>                 URL: https://jira.codehaus.org/browse/MNG-5235
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 3.0.3
>         Environment: Windows 7
>            Reporter: Jérôme Verstrynge
>         Attachments: pom.xml
>
>
> I am trying to activate profiles according to properties defined in the pom.xml. Unfortunately, the profiles are never activated, no matter what value is set for the defined property. I double-checked my pom.xml with existing documentation.
> The attached example contains two profiles who echo the property value. These are never displayed in the output. However, documentation says a profile should be invoked if the activation section property values are met.
> There is also something unclear in the existing documentation. Is it possible to enable multiple profiles with properties in a single run or is only one profile selected at most in a single run?
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MNG-5235) Profiles not activated according to property values

Posted by "Jérôme Verstrynge (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290293#comment-290293 ] 

Jérôme Verstrynge commented on MNG-5235:
----------------------------------------

The pom.xml contains <activeByDefault>false</activeByDefault> statements I forgot to remove. 
                
> Profiles not activated according to property values
> ---------------------------------------------------
>
>                 Key: MNG-5235
>                 URL: https://jira.codehaus.org/browse/MNG-5235
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 3.0.3
>         Environment: Windows 7
>            Reporter: Jérôme Verstrynge
>         Attachments: pom.xml
>
>
> I am trying to activate profiles according to properties defined in the pom.xml. Unfortunately, the profiles are never activated, no matter what value is set for the defined property. I double-checked my pom.xml with existing documentation.
> The attached example contains two profiles who echo the property value. These are never displayed in the output. However, documentation says a profile should be invoked if the activation section property values are met.
> There is also something unclear in the existing documentation. Is it possible to enable multiple profiles with properties in a single run or is only one profile selected at most in a single run?
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MNG-5235) Profiles not activated according to property values

Posted by "Jérôme Verstrynge (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jérôme Verstrynge closed MNG-5235.
----------------------------------

    Resolution: Not A Bug
    
> Profiles not activated according to property values
> ---------------------------------------------------
>
>                 Key: MNG-5235
>                 URL: https://jira.codehaus.org/browse/MNG-5235
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 3.0.3
>         Environment: Windows 7
>            Reporter: Jérôme Verstrynge
>         Attachments: pom.xml
>
>
> I am trying to activate profiles according to properties defined in the pom.xml. Unfortunately, the profiles are never activated, no matter what value is set for the defined property. I double-checked my pom.xml with existing documentation.
> The attached example contains two profiles who echo the property value. These are never displayed in the output. However, documentation says a profile should be invoked if the activation section property values are met.
> There is also something unclear in the existing documentation. Is it possible to enable multiple profiles with properties in a single run or is only one profile selected at most in a single run?
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MNG-5235) Profiles not activated according to property values

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290303#comment-290303 ] 

Joerg Schaible commented on MNG-5235:
-------------------------------------

This is by design. Properties are explicitly not mentioned in [How can a profile be triggered? How does this vary according to the type of profile being used?|http://maven.apache.org/guides/introduction/introduction-to-profiles.html]. Profiles are the first thing evaluated *before* anything else to determine the effective POM.
                
> Profiles not activated according to property values
> ---------------------------------------------------
>
>                 Key: MNG-5235
>                 URL: https://jira.codehaus.org/browse/MNG-5235
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 3.0.3
>         Environment: Windows 7
>            Reporter: Jérôme Verstrynge
>         Attachments: pom.xml
>
>
> I am trying to activate profiles according to properties defined in the pom.xml. Unfortunately, the profiles are never activated, no matter what value is set for the defined property. I double-checked my pom.xml with existing documentation.
> The attached example contains two profiles who echo the property value. These are never displayed in the output. However, documentation says a profile should be invoked if the activation section property values are met.
> There is also something unclear in the existing documentation. Is it possible to enable multiple profiles with properties in a single run or is only one profile selected at most in a single run?
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira