-
Notifications
You must be signed in to change notification settings - Fork 55
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
Relax plugin prerequisites to minimum required version #241
Comments
I'm not sure why @depandabot updated this to 3.8.1 and now 3.9.5. I'll revert it and run a 3.8.1 release. |
Versions earlier than 3.8.1 have a security vulnerability that I guess requiring newer maven works around? |
If you depend on newer, vuln will go away (like now). Basically the problem was "wrong pattern", where maven-version property was used for both: prerequisite but also version of the maven deps |
Yes please fix this, maven supports 3.6.3 or better. They are promoting all plugins get upgraded to 3.6.3. Just split your property you are using here. The min maven version should not be shared as noted already. Dependabot/renovate/others will not open issues in that case. You run off the 3.9.6 api, your min is 3.6.3. This 'mavenVersion' should be split to two properties or just hard code the min version required and use the property in the properties section instead. In, set usage as the example: https://github.com/gaul/modernizer-maven-plugin/blob/master/modernizer-maven-plugin/pom.xml Example: <prerequisites>
<maven>3.6.3</maven>
</prerequisites>
<properties>
<mavenVersion>3.9.6</mavenVersion>
</properties> |
See https://maven.apache.org/docs/history.html#maven-3-6-x-and-before for 3.6.3 being pushed now. |
I'll raise a PR for this in a few minutes. |
nevermind, didn't see it linked to this ticket as fixed already. Now just waiting on a release ;) |
This works around gaul/modernizer-maven-plugin#241.
Starting with
2.8.0
the plugin prerequisite was bumped from3.2.5
to3.9.5
[1]. From looking at the various PRs that applied those updates(#220 and #206) there doesn't appear to be any compilation updates requiring3.9.5
. But now with that update this plugin no longer works on any previous maven versions since the prerequisite element[2] is enforced by maven[3] for plugins.Can the prerequisite be reverted to the minimum version needed? Or even a few versions back but maybe not all the way to
3.2
, maybe3.8
[4]? Preferably whatever is decided would be a major/minor version and not a patch version.[1] modernizer-maven-plugin-2.7.0...modernizer-maven-plugin-2.8.0#diff-6ce0d1d232829895a06b9b19f7f57d6bdcf2c2b9661fe93c071a56403ed18385R24
[2] https://maven.apache.org/guides/development/guide-plugin-documentation.html#optional-elements
[3] https://maven.apache.org/ref/3.9.5/maven-model/maven.html#class_prerequisites
[4] https://maven.apache.org/docs/history.html
The text was updated successfully, but these errors were encountered: