maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MNG-2276) profile activation by property doesn't work with properties defined in settings.
Date Tue, 24 Mar 2009 14:30:13 GMT

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

Benjamin Bentmann updated MNG-2276:
-----------------------------------

    Attachment: mng-2276.zip

Demo project. "mvn help:effective-pom -s settings" shows the POM profile is not activated
by the property from the settings.xml

> profile activation by property doesn't work with properties defined in settings.
> --------------------------------------------------------------------------------
>
>                 Key: MNG-2276
>                 URL: http://jira.codehaus.org/browse/MNG-2276
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM, Profiles
>    Affects Versions: 2.0.4
>            Reporter: Brian Fox
>             Fix For: 3.x
>
>         Attachments: mng-2276.zip
>
>
> Activating a profile like below doesn't get activated unless the property is set on the
CLI. I need to have the property defined in the settings.xml so it's always set.
>     <profiles>
>      <profile>
>       <id>prod</id>
>       <activation>
>           <property>
>              <name>deploy-ct</name>
>           </property>
>       </activation>
> Further, I noticed that if I set it so that the activation is like:
>       <activation>
>           <property>
>              <name>deploy-ct</name><value>true</value>
>           </property>
>       </activation>
> The profile is triggered just by setting the cli like "mvn -Ddeploy-ct"  It is not active
if I use "-Ddeploy-ct=false" but the settings descriptor says that the existence of the property
is only used if value is not set.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message