Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-7361

PNC build fails to disable the community profile

    Details

      Description

      I encountered a weird problem where the wf8 adapter was failing the build in PNC due to missing dependencies. Eventually I realised that it shouldn't be active at all, and only was because of a quirk in how maven profiles operate.

      The mvn arguments defined in prod-arguments.json doesn't disable the community profile, as the community profile's activation condition is when the product property is undefined. The product profile is active, but doesn't set the product property, and can't do so, since only non-profile properties are considered by maven when checking activation conditions.

      $ mvn -q help:active-profiles -Ppnc -Pproduct -Pjboss-release -Doutput=/tmp/kc-profiles
      $ grep 'community' /tmp/kc-profiles | wc -l
      355
      

      $ mvn -q help:active-profiles -Ppnc -Pproduct -Pjboss-release -Dproduct -Doutput=/tmp/kc-profiles
      $ grep 'community' /tmp/kc-profiles | wc -l
      0
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aszczucz Alex Szczuczko
                Reporter:
                aszczucz Alex Szczuczko
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: