You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kai Burjack (JIRA)" <ji...@apache.org> on 2017/11/01 20:30:00 UTC

[jira] [Commented] (MNG-6297) Active-by-default profiles do not get activated when JDK-activated profile matches

    [ https://issues.apache.org/jira/browse/MNG-6297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234691#comment-16234691 ] 

Kai Burjack commented on MNG-6297:
----------------------------------

Okay, it seems I misunderstood what "active-by-default" means in Maven: Only active when no other profile is active. Sorry for the issue!

> Active-by-default profiles do not get activated when JDK-activated profile matches
> ----------------------------------------------------------------------------------
>
>                 Key: MNG-6297
>                 URL: https://issues.apache.org/jira/browse/MNG-6297
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.5.0, 3.5.2
>         Environment: Windows 7 x64, Windows 10 x64, jdk 1.8.0, jdk 9.0.1
>            Reporter: Kai Burjack
>            Priority: Major
>
> When having a profile whose activation condition is a jdk version, such as 1.8, and below that another profile whose activation condition is "by-default" then only the first profile (the one with the JDK version condition) is active when building without explicitly defining any profile via `-P`, such as when using `mvn clean package`.
> This appeared for me the first time when actually using an jdk-activated profile and an active-by-default profile for the first time in Maven 3.5.0. After updating to 3.5.2 (current as of now) the problem still remains. It is unclear whether any older Maven versions are affected by this behaviour.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)