You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Wim Deblauwe (JIRA)" <ji...@codehaus.org> on 2009/07/10 14:23:22 UTC

[jira] Commented: (MNG-3326) Profile Deactivation Configuration

    [ http://jira.codehaus.org/browse/MNG-3326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183205#action_183205 ] 

Wim Deblauwe commented on MNG-3326:
-----------------------------------

We could use this too. I want to activate a certain profile (defined in my pom.xml) when releasing and de-active another profile (defined in my settings.xml) at the same time. The current workaround is to remove the <activeProfile/> line in my setttings.xml, but this easily forgotten (leading to a bad build in our case).

> Profile Deactivation Configuration
> ----------------------------------
>
>                 Key: MNG-3326
>                 URL: http://jira.codehaus.org/browse/MNG-3326
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Profiles
>    Affects Versions: 2.0.8
>            Reporter: Paul Gier
>             Fix For: 3.x
>
>
> Profile definitions should have a way to add deactivation configuration similar to the activation configuration.  So you could have a profile definition similar to this:
> <profile>
>   <id>my-profile</id>
>   <activation>
>     <property>
>       <name>all.profiles.on</name>
>     </property>
>   </activation>
>   <deactivation>
>     <property>
>       <name>all.profiles.off</name>
>     </property>
>     <jdk>1.6</jdk>
>   </deactivation>
> </profile>

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