GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Backport #12874: Strip executable() conditions from consumer POMs by gnodet · Pull Request #12960 · apache/maven

Conversation

@gnodet

@gnodet gnodet commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #12874 to maven-4.0.x.

  • Strips executable() profile activation conditions from consumer POMs, since these are build-time-only conditions that should not leak into published POMs

Closes #12570

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Aug 30, 2026
@gnodet gnodet added the enhancement New feature or request label Aug 30, 2026
@gnodet @claude
Strip executable() conditions from consumer POMs (#12874)
2904965
The executable() function evaluates against the local system PATH,
making profile activation environment-dependent. When such conditions
survive into published consumer POMs, downstream consumers silently
evaluate them against their own PATH, producing non-reproducible builds.

Strip the entire condition string when it contains an executable() call
during DefaultConsumerPomBuilder processing. This applies to all three
transform paths: transformNonPom and transformBom (via prune()), and
transformPom (directly). When no other activation triggers remain after
stripping, the activation is removed entirely.

Closes #12570

Co-authored-by: Claude Opus 4.6 <[email protected]>
@gnodet
gnodet force-pushed the backport/12570-strip-executable-4.0.x branch from 9bb8195 to 2904965 Compare August 31, 2026 01:59
@gnodet
gnodet merged commit 125edd6 into maven-4.0.x Aug 31, 2026
41 of 43 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@gnodet
gnodet deleted the backport/12570-strip-executable-4.0.x branch August 31, 2026 07:01
@github-actions github-actions Bot assigned gnodet Aug 31, 2026
@gnodet gnodet added bug Something isn't working and removed enhancement New feature or request labels Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gnodet gnodet

Labels

bug Something isn't working

Projects

None yet

Milestone

4.0.0-rc-7

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@gnodet
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.