You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slachiewicz (via GitHub)" <gi...@apache.org> on 2026/09/30 21:33:08 UTC

[PR] Resolve plugins on copies of the model plugins [maven-enforcer]

slachiewicz opened a new pull request, #1046:
URL: https://github.com/apache/maven-enforcer/pull/1046

   `EnforcerRuleUtils.resolvePlugins` and `resolveReportPlugins` resolved expressions by setting values on the `Plugin` and `ReportPlugin` objects of the project model, so a rule leaked its interpolation into the model every other plugin sees. They now resolve and return copies; the only caller, `RequirePluginVersions`, only reads the result.
   
   Found while porting to the Maven 4 API; part of apache/maven#13309.
   
   Verified: both new tests in `EnforcerRuleUtilsTest` fail without the fix (the model plugin loses its `${group}` placeholder).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Resolve plugins on copies of the model plugins [maven-enforcer]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz merged PR #1046:
URL: https://github.com/apache/maven-enforcer/pull/1046


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org