[MPLUGIN-531] Fail the build if mixing v3 and v4 annotations and enforce v4 annotations when requiring Maven 4 or above
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- build-system, tooling
Hướng nghiên cứu
Bắt đầu với JavaAnnotationsMojoDescriptorExtractor.java và PluginDescriptorFilesGenerator.java, sau đó xem xét các đường dẫn package annotation v3 và v4 được nêu trong issue. Được xem là hoàn tất khi các phiên bản annotation trộn lẫn và các yêu cầu Maven không khớp làm build thất bại, trong khi annotation v3 không thể tạo descriptor 2.0 và annotation v4 yêu cầu Maven 4 trở lên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 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.
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
- Ngôn ngữ chính
- Java
- Star
- 63
- Fork
- 78
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 23
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/maven-plugin-tools
-
`@Execute` with a custom phase or `"none"` fails descriptor extractionCó thể đã có người làm @CaptainAni187 đã nhận 27 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/maven-plugin-tools#1232 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
apache/maven-plugin-tools#1240 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
apache/maven-plugin-tools#1233 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`descriptor` fails on `onlineRequired`, `dependencyCollection` and `dependencyResolutionPathScopes` in the Maven 4 API `@Mojo`Có thể đã có người làm @efegokdemir đã nhận 25 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
apache/maven-plugin-tools#1231 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`@Resolution` fields stay null: `plugin.xml` gets no `<resolutions>`Có thể đã có người làm @goutamadwant đã nhận 30 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
apache/maven-plugin-tools#1230 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/maven-plugin-tools
Issue tương tự
-
UGS-FX 2.1.27 Open File IssueĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
winder/Universal-G-Code-Sender#3242 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
dfa1/vortex-java#636 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
omatheusmesmo/vintelli#188 ·
Maintainer thường phản hồi trong vòng 1 ngày