You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christopher Roland B. Basmayor (JIRA)" <ji...@codehaus.org> on 2008/10/01 01:07:45 UTC
[jira] Created: (MNG-3777) ActiveByDefault does not work properly
ActiveByDefault does not work properly
--------------------------------------
Key: MNG-3777
URL: http://jira.codehaus.org/browse/MNG-3777
Project: Maven 2
Issue Type: Bug
Components: Profiles
Affects Versions: 2.0.8
Reporter: Christopher Roland B. Basmayor
I've been working for profiles and it appears that the configuration below does not work too well. Profile env-prod is invoked even when the property 'env' with value 'dev' is provided.
<profiles>
<profile>
<id>env-dev</id>
<activation>
<property>
<name>env</name>
<value>dev</value>
</property>
</activation>
<properties>
[...]
</properties>
</profile>
<profile>
<id>env-prod</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
[...]
</properties>
</profile>
</profiles>
--
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
[jira] Commented: (MNG-3777) ActiveByDefault does not work properly
Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149450#action_149450 ]
Wendy Smoak commented on MNG-3777:
----------------------------------
What happens if you enable the first profile with -Penv-dev instead, is env-prod still active?
I would not use activeByDefault, and instead activate env-prod on the *absence* of the env property with <name>!env</name>
> ActiveByDefault does not work properly
> --------------------------------------
>
> Key: MNG-3777
> URL: http://jira.codehaus.org/browse/MNG-3777
> Project: Maven 2
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.8
> Reporter: Christopher Roland B. Basmayor
>
> I've been working for profiles and it appears that the configuration below does not work too well. Profile env-prod is invoked even when the property 'env' with value 'dev' is provided.
> <profiles>
> <profile>
> <id>env-dev</id>
> <activation>
> <property>
> <name>env</name>
> <value>dev</value>
> </property>
> </activation>
> <properties>
> [...]
> </properties>
> </profile>
> <profile>
> <id>env-prod</id>
> <activation>
> <activeByDefault>true</activeByDefault>
> </activation>
> <properties>
> [...]
> </properties>
> </profile>
> </profiles>
--
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
[jira] Closed: (MNG-3777) ActiveByDefault does not work properly
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-3777.
-----------------------------
Assignee: Brett Porter
Resolution: Cannot Reproduce
pasted this exactly into a POM and under 2.0.8, 2.0.9, 2.1.0-M1 the properties in the respective profiles are used according to -Denv (with prod being the default)
> ActiveByDefault does not work properly
> --------------------------------------
>
> Key: MNG-3777
> URL: http://jira.codehaus.org/browse/MNG-3777
> Project: Maven 2
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.8
> Reporter: Christopher Roland B. Basmayor
> Assignee: Brett Porter
>
> I've been working for profiles and it appears that the configuration below does not work too well. Profile env-prod is invoked even when the property 'env' with value 'dev' is provided.
> <profiles>
> <profile>
> <id>env-dev</id>
> <activation>
> <property>
> <name>env</name>
> <value>dev</value>
> </property>
> </activation>
> <properties>
> [...]
> </properties>
> </profile>
> <profile>
> <id>env-prod</id>
> <activation>
> <activeByDefault>true</activeByDefault>
> </activation>
> <properties>
> [...]
> </properties>
> </profile>
> </profiles>
--
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