gnodet opened a new pull request, #12308:
URL: https://github.com/apache/maven/pull/12308

   ## Summary
   
   - Adds `fixDeprecatedPropertyExpressions()` to `CompatibilityFixStrategy` 
that replaces deprecated Maven 2/3 shorthand properties (`${version}`, 
`${groupId}`, `${artifactId}`) with their Maven 4-compatible `${project.*}` 
equivalents
   - Scans **all text content** in the POM (dependencies, plugin configs, 
properties, etc.)
   - Runs before the undefined-property check so replaced expressions aren't 
falsely flagged as undefined
   - Adds 5 unit tests covering the new fix, including negative case 
(already-correct POMs unmodified)
   
   Fixes apache/maven#12304
   
   ## Test plan
   
   - [x] Unit tests: `CompatibilityFixStrategyTest` — 5 new tests in 
`DeprecatedPropertyExpressionFixesTests` (43 total, 0 failures)
   - [x] Full module build: `mvn -pl impl/maven-cli -am clean test -T1C` passes
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to