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

   Fixes #870.
   
   `getProfilePlugins(MavenProject)` collects a profile's build plugins 
straight from the model without resolving property expressions, while the 
entries it's later matched against (gathered via `getAllPluginEntries()`'s own 
`getProfilePlugins(List, Profile)` overload) go through 
`EnforcerRuleUtils.resolvePlugins()` first. A profile plugin declared with a 
property-based artifactId (e.g. `<artifactId>${myArtifactIdProp}</artifactId>`) 
therefore never matches its resolved counterpart, and the rule reports it as 
missing a version even though one is correctly declared.
   
   Resolved `getProfilePlugins(MavenProject)` the same way its sibling methods 
already do, and added a test reproducing the mismatch.
   
   ---
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   https://claude.ai/code/session_01BrsHTdDq7PD1DoqeA9vs66


-- 
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