Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

JIB Maven not supporting JDK 24

オープン
#4,397 コメント 4 件 リアクション 4 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java

調査の方向性

まず、Jib Maven plugin が使用する ASM 依存関係を追跡し、issue に記載されている Java 24 の構成と mvn compile jib:build の手順で失敗を再現します。関連する依存関係または class-file の処理が major version 68 をサポートしていることを確認し、その後、Java 24 プロジェクトが互換性のある base image でビルドされることを検証します。

索引モデルが issue の本文から書いたものです。

説明

priority:p3 type: feature request

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GoogleContainerTools/jib のほかの issue

GoogleContainerTools/jib の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。