Closed as duplicate of#10608
Closed as duplicate of#10608
Description
Christoph Läubrich opened MNG-8040 and commented
Currently the prerequisites of a maven-plugin to define a minimum maven version and then maven gives a nice message to the user if this is not meet.
Given the fast evolution of java versions plugins are facing another issue, e.g. if one of their dependencies require a higher java version than is the default for maven this currently fails with a rather cryptic "unsupported class version" error when running such a build.
It would therefore be good to extend the element so that plugins can declare:
<prerequisites>
<maven>${minimal-maven-version}</maven>
<java>${minimal-java-version}</java>
</prerequisites>
please note that using Maven Enforcer Plugin's is not an option here as it requires the user to know beforehand the java version of all its build plugins.
No further details from MNG-8040