Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6297

Active-by-default profiles do not get activated when JDK-activated profile matches

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 3.5.0, 3.5.2
    • None
    • Core
    • None
    • Windows 7 x64, Windows 10 x64, jdk 1.8.0, jdk 9.0.1

    Description

      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.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            kburjack Kai Burjack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: