Skip to content

[MNG-8040] Allow prerequisites of maven plugins to define there minimum required java version #10040

Closed as duplicate of#10608
@jira-importer

Description

@jira-importer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions