jira-importer commented on issue #323:
URL: 
https://github.com/apache/maven-install-plugin/issues/323#issuecomment-2771868392

   **[Tamas 
Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)**
 commented
   
   Well, your "howerer..." paragraph is true not only for install, but for the 
whole project. As this comment suggests 
(https://github.com/mojohaus/versions/issues/1071#issuecomment-2109926461) the 
plugin is simply put "too late", your model is already built. Hence, 
uninterpolated `$revision` is there, everywhere.
   
   Simply put your contribution to versions maven plugin, while it gets the 
needed info, and even puts it into (already built) project properties, is not 
enough, as model would need to be _fully rebuilt_ to take new property into 
account. Also, it goes against what is explained on this page as well: 
https://maven.apache.org/maven-ci-friendly.html The property MUST BE available 
ahead of time, is clearly explained there as well. When a plugin executes, it 
is already too late, as model was built, phases calculated, and then goal is 
invoked (but as I said, model was already built, so you'd somehow need to 
"trigger model rebuild", which is not possible in Maven).
   


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