You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ronald Chen (JIRA)" <ji...@codehaus.org> on 2012/11/07 18:27:13 UTC
[jira] (MNG-3229) Active by default profile is ignored when
another is specified explicitly.
[ https://jira.codehaus.org/browse/MNG-3229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=313033#comment-313033 ]
Ronald Chen commented on MNG-3229:
----------------------------------
Not a bug. As intended. activeByDefault is ONLY used when no -P are used
> Active by default profile is ignored when another is specified explicitly.
> ---------------------------------------------------------------------------
>
> Key: MNG-3229
> URL: https://jira.codehaus.org/browse/MNG-3229
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.7
> Reporter: Oleksandr Maksymchuk
> Fix For: Documentation Deficit
>
>
> When default profile is added its used only when there is no another profile specified to be used on command line via -P option.
> So in the pom containig:
> <profile>
> <id>default</id>
> <activation>
> <activeByDefault>true</activeByDefault>
> </activation>
> <profile>
> <id>dev</id>
> <!-- Not active, should be called explicitly. -->
> default profile is used only when running command without -P dev
> mvn
> but not used when running:
> mvn -P dev
> Expected: should be used in both variants as per doc.
--
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