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 4.0.x] Fix #13004: enable deterministic profile activation for BUILD_CONSUMER by gnodet · Pull Request #13015 · apache/maven

Conversation

@gnodet

@gnodet gnodet commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #13006 (merged to master as d96bf89) to the maven-4.0.x branch.

Enable only deterministic profile activations (OS, JDK, activeByDefault) for BUILD_CONSUMER, so that platform-dependent properties (e.g. ${swt.artifactId} from an OS-activated profile) are resolved before the coordinate validator runs, while keeping the consumer POM reproducible across environments.

  • Packaging-activated profiles are excluded — handled separately by inlinePackagingActivatedProfiles()
  • Repositories from activated profiles are stripped to prevent leaking into the published consumer POM
  • Also fixes pre-existing Spotless violations and a compilation error on master

Closes #13004

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@gnodet
Fix #13004: enable deterministic profile activation for BUILD_CONSUMER
9a6f135
Enable only deterministic profile activations (OS, JDK, activeByDefault)
for BUILD_CONSUMER, so that platform-dependent properties (e.g.
${swt.artifactId} from an OS-activated profile) are resolved before the
coordinate validator runs, while keeping the consumer POM reproducible
across environments.

Packaging-activated profiles are excluded — they are handled separately
by inlinePackagingActivatedProfiles() in the consumer POM builder.
Repositories from activated profiles are stripped to prevent leaking
into the published consumer POM.

Also fixes pre-existing Spotless violations and a compilation error on
master (DefaultVersionResolver, DefaultVersionRangeResolver,
DistributionManagementArtifactRelocationSourceTest).
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Sep 2, 2026
@gnodet gnodet added bug Something isn't working backport mvn4 labels Sep 2, 2026
@gnodet gnodet self-assigned this Sep 2, 2026
@gnodet @claude
Adapt IT to 4.0.x AbstractMavenIntegrationTestCase API
fbdfd23
- Add constructor with version range "[4.0.0-rc-7,)"
- Convert extractResources() File return to Path via .getAbsoluteFile().toPath()
- Pass String to newVerifier() via basedir.toString()
- Convert getArtifactPath() String return to Path via Path.of()

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@gnodet
gnodet merged commit a930702 into maven-4.0.x Sep 2, 2026
23 checks passed

Uh oh!

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

@gnodet
gnodet deleted the backport/13004-to-4.0.x branch September 2, 2026 13:56
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

backport bug Something isn't working mvn4

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.