-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Konrad Windszus opened MPLUGIN-531 and commented
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
Line 114 in 9332b09
| boolean isV4 = apiVersion != null && apiVersion.startsWith("4."); |
Issue Links:
-
MPLUGIN-530 Deprecate o.a.m.plugins.annotations.Component
-
MPLUGIN-523 Split Maven3 and Maven4 support
-
MPLUGIN-532 Fail the build in case JSR330 annotations are used in v4 plugins