-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This PR makes Shrinkwrap be buildable with latest Maven4 #375
base: master
Are you sure you want to change the base?
Conversation
Also fixes the shrinkwrap maven-plugin that exploded in Maven4.
Strong -1. |
Shrinkwrap was not buildable with Maven4 at all, and after fixing resolver, the maven-plugin ITs exploded as well. This fixes all of that, now it can be built with Maven4. Since Shrinkwrap is a Maven3 project (is built against Maven3 APIs not Maven4 APIs) it still works "as with Maven3". This part is unchanged. |
The point is to use new features that maven 4 provides, not necessarily make it buildable with maven 4 Also, all the new features are behind feature flags and can be disabled if necessary by the users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes need to be deferred until Mima is available in maven 4 and thus reactor subprojects can be tested without install
The code dropped here was a hack violating all the Maven principles and was not "using new Maven4 features at all", it was going for its internals, and it makes this code fragile and just bad. Again, Shrinkwrap is a Maven3 lib (just like MIMA the bridge is), and there is no place for "tricks" to reach (in very bad way) for Maven4 internals at all. It works with Maven3 and it works with Maven4 in very same way (as Maven4 offers Maven3 backward compatibility). Running a Maven3 codebase with Maven4 as runtime will not "magically" make the codebase Maven4 codebase. |
It's a hack in the same way You have a different view on this, as a maven developer, I understand that. Trying to remove a major feature because it's "not to your liking" is just silly, especially when I asked, |
First of all, thank you both for looking into this, happy to see this project being noticed. Unfortunately I've returned from PTO to go on another, so I'll take a better look at this issue in ~2 weeks. I'll try to provide some insight into Resolver at the current state in the meantime. With Maven 4 happening it is a good opportunity to finally move this project from JDK 8 to JDK 17, which I would love to do once I'm back from PTO and my time allows me to commit more to Shrinkwrap once again. Before that happens, changes in Resolver were to support new Maven 4 features provided they don't break backward compatibility. Once I'm back I'll finally rename this branch to main and create new maintenance 3.x branch for supporting Maven 3, with main supporting Maven 4. Hope this somewhat brought some light into the current state what to expect from next development |
Also fixes the shrinkwrap maven-plugin that exploded in Maven4.
Build with
Results: