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

[jira] [Updated] (MNG-7570) Allow a Maven plugin to require a Maven version through its plugin descriptor

     [ https://issues.apache.org/jira/browse/MNG-7570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated MNG-7570:
---------------------------------
    Description: 
Although the minimum Maven version can be specified via pom's prerequisites (https://maven.apache.org/pom.html#Prerequisites), there is currently no element for this on the plugin descriptor. 
I would suggest to slightly expand the plugin descriptor to include an element there as well. If such an element is found it should take precedence over pom prerequisites.

  was:
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.


> Allow a Maven plugin to require a Maven version through its plugin descriptor
> -----------------------------------------------------------------------------
>
>                 Key: MNG-7570
>                 URL: https://issues.apache.org/jira/browse/MNG-7570
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>              Labels: plugin-descriptor-1.1
>
> Although the minimum Maven version can be specified via pom's prerequisites (https://maven.apache.org/pom.html#Prerequisites), there is currently no element for this on the plugin descriptor. 
> I would suggest to slightly expand the plugin descriptor to include an element there as well. If such an element is found it should take precedence over pom prerequisites.



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