Skip to content

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Sep 2, 2025

This PR adds a failing integration test documenting gh-11086:

Maven 4 fails model building when a dependency POM contains a self-referential URL:

<url>${project.url}</url>

whereas Maven 3 did not fatally fail (existing artifacts are usable). The IT uses a local test repository with such a POM and asserts the current failure to anchor the fix discussion.

Changes:

Follow-up work will investigate Maven 3 interpolation/recursion handling and adjust Maven 4 to retain compatibility for URL fields.

Closes: #11086 (once fixed)


Pull Request opened by Augment Code with guidance from the PR author

….url}</url> causing recursive interpolation failure in Maven 4

- Add MavenITgh11086DependencyPomSelfUrlTest asserting current failure
- Add IT resources under its/core-it-suite/src/test/resources/apachegh-11086 with a dependency POM containing <url>${project.url}</url>
- Revert earlier local tweak to DefaultModelInterpolator (no behavior changes in this PR)
- Remove previous draft mng-8138 IT assets

This PR documents the regression vs Maven 3 and will guide the compatibility fix.
@gnodet gnodet force-pushed the gh-11086-it-self-referential-url branch from a1db924 to 6eedb0d Compare September 3, 2025 06:12
@gnodet
Copy link
Contributor Author

gnodet commented Sep 3, 2025

Actually, this behaviour is consistent with Maven 3, so closing.

@gnodet gnodet closed this Sep 3, 2025
@gnodet gnodet deleted the gh-11086-it-self-referential-url branch September 3, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maven 4 fails for dependency POM with <url>${project.url}</url> (recursive variable reference) while Maven 3 did not
1 participant