Bamboo Data Center Java Specs is failing with "invalid target release: 17" error
プラットフォームについて: Data Center のみ - この記事は、Data Center プラットフォームのアトラシアン製品にのみ適用されます。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
Bamboo Java Specs scanning fails with an "invalid target release: 17" error present in the <
bamboo-home>/logs/atlassian-bamboo.log
file.
環境
Issue was observed on Bamboo 10.0.0 but other versions could be affected too.
診断
The following error can be found in <bamboo-home>/logs/atlassian-bamboo.log
file during the Java Specs scanning execution:
27-Sep-2024 11:40:44 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project bamboo-specs-generator: Fatal error compiling: invalid target release: 17 -> [Help 1]
原因
The maven-complier-plugin on the Bamboo server might be configured incorrectly or using an older version that doesn't support Java 17.
Check the version of maven by running the command mvn --version
ソリューション
Make sure that you upgrade Maven to version 3.8.1 or later which supports Java 17 on the Bamboo server.
You need to update Bamboo server capabilities to point to the new Maven