Rewrite Maven Plugin does not respect recipe libraries’ <dependencyManagement>, here is why #4553
-
I wanted to do some followup on the issue I mentioned in this comment on rewrite-migrate-java#563, as I did some investigations. The premise is this: I’m setting up my own recipe library, which uses recipes from I then run the I have setup a small repository that shows this. Install the library in your local repository with
It will print the version of My investigations show that the issue does not come from the Rewrite plugin itself, but from Maven & Maven Resolver, on which it relies. Indeed, it appears that Maven 3 uses a Maven Resolver In Maven 4 (currently in beta), they have tried to change this in MNG-7982, but it does not fix it for first level dependencies – as we have here (the recipe is first level below the plugin). I hope this will change before the final release because that seems quite inconsistent. As a workaround it’s possible to either add a direct dependency on the desired library, or add that library to the
I don’t know if the Rewrite plugin should do anything about it (it might be possible to change the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For anyone interested, I ended up reporting MNG-8295 for Maven 4, and then worked together with their devs so we got it fixed wih apache/maven#1788 🙂 It should thus work as intended with Maven 4! 🎉 (whenever it gets released 😏) |
Beta Was this translation helpful? Give feedback.
For anyone interested, I ended up reporting MNG-8295 for Maven 4, and then worked together with their devs so we got it fixed wih apache/maven#1788 🙂
It should thus work as intended with Maven 4! 🎉 (whenever it gets released 😏)