Enhancement: read the Java version from `maven-compiler-plugin` `<release>` / `<source>` configuration
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java, typescript
調査の方向性
src/core-open/scanners/java-scanner.ts の parsePom から始め、POM プロパティをどのように確認し、resolveProperty を呼び出すかを読みます。build.plugins と build.pluginManagement.plugins の両方にあるコンパイラープラグインの release、source、target 設定について、プロパティ参照を含めてテストを追加します。関連する Java scanner のテストを実行します。プラグインの値が認識され、maven.compiler.release プロパティが引き続き優先されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Context
parsePom in src/core-open/scanners/java-scanner.ts (around line 188) only looks for the Java version in <properties>: java.version, maven.compiler.source, maven.compiler.target, maven.compiler.release and java.source.version.
Plenty of POMs set it on the compiler plugin instead:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>17</release>
</configuration>
</plugin>
</plugins>
</build>
Those projects get no Java runtime in vg scan, so runtime drift and EOL status are missing for them.
What to do
- When no property gave a version, look for
maven-compiler-pluginunderbuild.plugins.pluginandbuild.pluginManagement.plugins.plugin(one plugin or an array). - Read
configuration.releasefirst, thenconfiguration.source, thenconfiguration.target. - Run the value through
resolvePropertyso<release>${jdk.version}</release>works when the property exists. - Add tests for each form, including a property reference.
Acceptance
- A POM whose only Java version is
<release>17</release>onmaven-compiler-pluginreports Java 17 -
<source>11</source>is used when<release>is absent - A
maven.compiler.releaseproperty still wins over plugin configuration - A property reference in the plugin configuration is resolved
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 3
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vibgrate/cli のほかの issue
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
documentation Entwickler
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:frontend bug ci-test level:low priority:high
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
skytuhua-org/Gen-V1#2974 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
area: cli area: core priority: P3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
appandflow/stim#6736 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
naomiaro/waveform-playlist#973 ·
メンテナーはふだん 1 日以内に返信