You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Wendy Smoak (JIRA)" <ji...@codehaus.org> on 2008/10/01 02:44:45 UTC

[jira] Commented: (MNG-3777) ActiveByDefault does not work properly

    [ 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