JIB Maven not supporting JDK 24
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- build-system, devtools
調査の方向性
まず、Jib Maven plugin が使用する ASM 依存関係を追跡し、issue に記載されている Java 24 の構成と mvn compile jib:build の手順で失敗を再現します。関連する依存関係または class-file の処理が major version 68 をサポートしていることを確認し、その後、Java 24 プロジェクトが互換性のある base image でビルドされることを検証します。
索引モデルが issue の本文から書いたものです。
説明
Environment:
Jib version: 3.4.6
Build tool: Maven 3.9.6
OS: Ubuntu 24.04 LTS (Linux amd64)
JDK: Temurin 24.0.1
Description of the issue:
Attempting to build a Java 24 project using jib-maven-plugin fails with:
"Unsupported class file major version 68"
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.6:build (default-cli) on project ms-name-restaurants: Execution default-cli of goal com.google.cloud.tools:jib-maven-plugin:3.4.6:build failed: Check the full stace trace, and if the root cause is from ASM ClassReader about unsupported class file version, see https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#i-am-seeing-unsupported-class-file-major-version-when-building: Unsupported class file major version 68 -> [Help 1]
This happens even after updating to the latest version of Jib (3.4.6).
From what I can tell, the underlying ASM version used by Jib doesn't yet support Java 24 bytecode (major version 68), making Jib currently incompatible with projects compiled using Java 24.
Expected behavior:
Jib should support projects compiled with Java 24 (--release 24) and allow building container images with bytecode version 68, provided a compatible base image is used (e.g., eclipse-temurin:24-jre).
Steps to reproduce:
Create a simple HelloWorld.java class using JDK 24.
Configure Maven compiler plugin with <release>24.
Use latest jib-maven-plugin (3.4.6) with a base image supporting Java 24 (eclipse-temurin:24-jre).
Run mvn compile jib:build.
My specific Maven configuration is:
<plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin</artifactId> <version>3.4.6</version> <configuration> <from> <image>openjdk:24-slim</image> </from> <to> <image>xxx/xxx</image> <credHelper>pass</credHelper> </to> <container> <format>OCI</format> </container> </configuration> </plugin>
- 主要言語
- Java
- スター
- 14.5k
- フォーク
- 1.5k
- 平均マージ
- 40分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleContainerTools/jib のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
GoogleContainerTools/jib#4538 · コメント 1 件 ·
-
priority: p3 type: feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GoogleContainerTools/jib#4525 · コメント 1 件 ·
-
Make the ManifestChecker more flexible to accept NAME_UNKNOWN再び着手できるかも @VelpulaGangavardhan が 13 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンpriority: p3
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
GoogleContainerTools/jib#4521 · コメント 3 件 ·
-
priority: p3 question
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GoogleContainerTools/jib#4508 ·
-
Expose mediaType in ContentDescriptorTemplate対応中かも @Sboti03 が 211 日前に担当しました。 オープンpriority: p3 type: feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
GoogleContainerTools/jib#4498 · コメント 1 件 · リアクション 2 件 ·
GoogleContainerTools/jib の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/context-ontology-accelerator#325 ·
メンテナーはふだん 1 日以内に返信
-
The README tells to run `mvn jeo:disassemble`, which fails with `No plugin found for prefix 'jeo'`オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
objectionary/jeo-maven-plugin#1938 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oVirt/ovirt-engine#1219 ·
メンテナーはふだん 1 日以内に返信
-
pending:code-area pending:issue-category to-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area:core bug priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aomarai/minecraft-mcp#247 ·
メンテナーはふだん 1 日以内に返信