pzygielo commented on PR #1024:
URL: https://github.com/apache/maven-enforcer/pull/1024#issuecomment-5645805102

   > I found the official Maven Model documentation for 
`ReportPlugin#getVersion()`, which states that starting with Maven 3, if no 
version is defined explicitly, Maven searches for the version in 
`build/plugins` and then `build/pluginManagement`:
   > 
   > 
https://maven.apache.org/ref/3.9.15/apidocs/org/apache/maven/model/ReportPlugin.html
   > 
   > The Maven Model reference documents the same behavior for the 
`<reporting><plugins><plugin><version>` element:
   > 
   > https://maven.apache.org/ref/3.9.15/maven-model/maven.html
   > 
   > So my current understanding is that the version can be resolved from 
`build/pluginManagement` even when it is not explicitly specified under 
`<reporting>`.
   
   Perfect! Thanks!


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