-
Notifications
You must be signed in to change notification settings - Fork 121
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
Maven 3.9.2 displays warnings with version 2.2.3 #634
Comments
Thanks for the heads up. |
It seems to be that as long as you don't get warnings on the new checks being added to Maven 3, everything should just work with Maven 4. |
I though so, but the mentioned dependencies are not directly used, so at first glance, I am unsure how to proceed here. Need some time look for official docs. |
|
I could get the warnings with Also, good news, the first manual testing of I'd add v4 to the pipeline and see if we can make |
@abelsromero the warnings are really annoying so please consider backporting that in a maintenance release. Waiting for 3.0 doesn't sound right IMO. I believe this issue should be split in two. While making sure the plugin works with Maven 4 is for sure something that can happen in 3.0, getting rid of the warnings are very different as they outcomes something that Maven considers to be a misuse of the API. |
Sure thing, it's a matter of time, I can't commit to a date but I hope no more than 2 weeks 🤞 @OrangeDog If you don't mind I'll re-purpose this issue for the v2.2.4 fix. If you find any specific issue with Maven 4, feel free to open another issue and I'll tag with the new "Maven v4" milestone. |
As far as I know. everything should work in Maven 4 as long as there are no warnings in the latest Maven 3. |
I could fix all of the warnings, but those are workarounds. The docs say it's for Maven 4 compatibility, but that's not the case here. For example, I had to exclude a dependency marked as EOL that during a build will be added anyway by a I will apply them anyway to avoid concerns for users but, these fixes don't offer any assurance of compatibility with Maven 4. We'll still need to work on a branch and experiment with the |
@abelsromero that means all you have to do is update Then the warnings will be gone, and it will work in Maven 4. |
I did not want to go into much detail, but to clarify my points let me go into a long post format.
Sadly it's not that simple. You can see now:
On the topic of dependencies with invalid scope, all follow the same pattern as After seeing both issues and solutions, users can understand now how I don't see this as any guarantee of Maven v4 compatibility. The only real thing options are (a or b or both): On top of that, to provide some degree of compatibility with older versions, we build against Maven 3.8.5 (1 year old version) and test in CI against newer Maven CLIs. Thanks to the magic of Java binary compatibility and amazing Maven's Team effort to not respect semantic versioning (reminds me of the "we do not break userspace" Linux moto ❤️ ) things work. In conclusion: seeing warnings does not mean things will work for Maven v4, and as a matter of fact, not seeing warnings doesn't either. That means the affirmation To understand my interest now in v4... Someone may ask ¿why not work upstream to fix things? Again, it's a matter of time. This a voluntary project run in spare time. And I already dip my toes in Maven source code. But there's a steep learning curve, only getting to Plexus injection is not easy, after that comes all the other maven and doxia modules. Finally, for peace of mind on the topic of maven-site, we are already running integration tests against the latest maven-site-plugin 3.12.1. And I am adding a test for older versions to also ensure we are still compatible with not only the latest. I want to split that branch into different PRs for git history reasons, that's the only reason why it hasn't been formalized in a PR yet. |
* Apply Maven workarounds to dependencies to remove warnings * Set maven-resources-plugin version to 3.3.1 Fixes #634
Release v2.2.4 is out! Should appear in maven central at any moment. |
Thank you for taking your time to talk with us!
What is this issue about?
Description
Environment information
The text was updated successfully, but these errors were encountered: