You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/10/13 17:02:00 UTC

[jira] [Commented] (MPLUGIN-424) Allow a maven-plugin to require a Java version

    [ https://issues.apache.org/jira/browse/MPLUGIN-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617195#comment-17617195 ] 

Slawomir Jaranowski commented on MPLUGIN-424:
---------------------------------------------

By the way Maven version should be also in plugin descriptor not in pom

> Allow a maven-plugin to require a Java version
> ----------------------------------------------
>
>                 Key: MPLUGIN-424
>                 URL: https://issues.apache.org/jira/browse/MPLUGIN-424
>             Project: Maven Plugin Tools
>          Issue Type: Improvement
>          Components: Plugin Plugin
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Currently a Maven plugin can only require a minimum Maven version via pom's prerequisites (https://maven.apache.org/pom.html#Prerequisites). There is currently no means to require a minimum Java version.
> I would suggest to slightly expand the plugin descriptor to include a minimumJavaVersion element there as well and evaluate that before executing a plugin goal and emit a good error message. The default Java version could be determined by the target class file version.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)