[MPLUGIN-531] Fail the build if mixing v3 and v4 annotations and enforce v4 annotations when requiring Maven 4 or above
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- build-system, tooling
調査の方向性
JavaAnnotationsMojoDescriptorExtractor.java と PluginDescriptorFilesGenerator.java から始め、その後、issue で示されている v3 および v4 のアノテーションパッケージパスを確認します。混在したアノテーションバージョンと一致しない Maven 要件によってビルドが失敗し、v3 アノテーションでは 2.0 ディスクリプターを生成できず、v4 アノテーションでは Maven 4 以上が必要になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Java
- スター
- 63
- フォーク
- 78
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/maven-plugin-tools のほかの issue
-
`@Execute` with a custom phase or `"none"` fails descriptor extraction対応中かも @CaptainAni187 が 26 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/maven-plugin-tools#1232 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
apache/maven-plugin-tools#1240 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
apache/maven-plugin-tools#1233 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
`descriptor` fails on `onlineRequired`, `dependencyCollection` and `dependencyResolutionPathScopes` in the Maven 4 API `@Mojo`対応中かも @efegokdemir が 25 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
apache/maven-plugin-tools#1231 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`@Resolution` fields stay null: `plugin.xml` gets no `<resolutions>`対応中かも @goutamadwant が 29 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
apache/maven-plugin-tools#1230 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
apache/maven-plugin-tools の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: WriteFileTool shows "Error reading file" snippet for relative paths when baseDir is set対応中かも @ShryukGrandhi が今日担当しました。 オープン
難易度 2/5 1時間未満 初心者へのやさしさ 86/100
agentscope-ai/agentscope-java#3917 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
intellij-elixir/intellij-elixir#4585 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
MetricsHub/metricshub-community#1474 ·
メンテナーはふだん 1 日以内に返信
-
go:build
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
Sanne/incus-spawn#1929 ·
メンテナーはふだん 1 日以内に返信