Skip to content

Bug: Settings interpolation and strict parsing#11776

Open
cstamas wants to merge 1 commit intoapache:maven-3.9.xfrom
cstamas:maven-3.9.x-settings
Open

Bug: Settings interpolation and strict parsing#11776
cstamas wants to merge 1 commit intoapache:maven-3.9.xfrom
cstamas:maven-3.9.x-settings

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Mar 10, 2026

Problem: today in none of Maven 3 is possible to use placeholders and apply interpolation to non-String fields (ie proxy.active or proxy.port). Moreover, given Maven is "forgiving" in settings parsing, and only WARNs, it is very easy for user to miss information.

This PR:

  • fixes interpolation for whole settings
  • allows users to apply "strict" settings parsing that makes Maven FAIL if settings was not properly parsed or interpolated by setting -Dmaven.settings.strictParsing in user or system properties.

Fixes #11011

Problem: today in none of Maven 3 is possible to use placeholders
and apply interpolation to non-String fields (ie proxy.active
or proxy.port). Moreover, given Maven is "forigiving" in settings
parsing, and only WARNs, it is very easy for user to miss information.

This PR:
* fixes interpolation for whole settings
* allows users to apply "strict" settings parsing that makes Maven
  FAIL if settings was not properly parsed or interpolated
@cstamas cstamas self-assigned this Mar 10, 2026
@cstamas cstamas added this to the 3.10.0 milestone Mar 10, 2026
@cstamas cstamas added the bug Something isn't working label Mar 10, 2026
@cstamas cstamas changed the title Bug: Settings interpolation and strict Bug: Settings interpolation and strict parsing Mar 10, 2026
@cstamas cstamas marked this pull request as ready for review March 10, 2026 12:51
@cstamas
Copy link
Member Author

cstamas commented Mar 10, 2026

This PR waits for maven-3.10.x branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support JVM-Config and environment variables for proxy configuration

1 participant