Context
PR #12332 added the executable() function for conditional profile activation (MNG-8768). During review, it was identified that executable() conditions survive into published consumer POMs via DefaultConsumerPomBuilder, which means:
Proposal
Strip executable() conditions from consumer POMs during DefaultConsumerPomBuilder processing, similar to how <build> sections are stripped from profiles. This ensures the function remains useful for local build decisions without polluting published artifacts.
References
Context
PR #12332 added the
executable()function for conditional profile activation (MNG-8768). During review, it was identified thatexecutable()conditions survive into published consumer POMs viaDefaultConsumerPomBuilder, which means:executable()condition against their ownPATHProposal
Strip
executable()conditions from consumer POMs duringDefaultConsumerPomBuilderprocessing, similar to how<build>sections are stripped from profiles. This ensures the function remains useful for local build decisions without polluting published artifacts.References