[
https://issues.apache.org/jira/browse/MPLUGIN-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated MPLUGIN-531:
------------------------------------
Summary: Fail the build if mixing v3 and v4 annotations and enforce v4
annotations when requiring Maven 4 or above (was: Fail the build if mixing v3
and v4 annotations)
> Fail the build if mixing v3 and v4 annotations and enforce v4 annotations
> when requiring Maven 4 or above
> ---------------------------------------------------------------------------------------------------------
>
> Key: MPLUGIN-531
> URL: https://issues.apache.org/jira/browse/MPLUGIN-531
> Project: Maven Plugin Tools
> Issue Type: Improvement
> Components: maven-plugin-tools-annotations
> Reporter: Konrad Windszus
> Priority: Major
>
> The
> https://github.com/apache/maven-plugin-tools/blob/master/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java
> should fail the build in case
> v3 (1.0/1.1 descriptor,
> https://github.com/apache/maven-plugin-tools/tree/master/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations)
> and v4 (2.0 descriptor) annotations
> (https://github.com/apache/maven-plugin-tools/tree/master/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations)
> are mixed in a single project.
> This leads to unexpected behaviour like {{Component}} no longer being
> evaluated among others.
> Also it should not be possible to generate v2.0 descriptors with v3
> annotations (currently possible via
> https://github.com/apache/maven-plugin-tools/blob/9332b09acc08d2e063f12a8158a57ca8ec56fadd/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorFilesGenerator.java#L114).
> V3 annotations should only support requirements up to (excluding) Maven 4
> and v4 annotations should require Maven 4 or above. If the Maven requirements
> don't match the used annotation package the build should fail as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)