Maven task fail with Could not find or load main class

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

問題

Maven task fail with the following appears in the build log:

error 08-Mar-2019 09:19:15 Error: Could not find or load main class xxx.xxx.xxx

原因

Maven executable in Agent Capabilities isn't configured with the real Maven Home, for example /usr (incorrect setting).

ソリューション

  1. ではない場合は、 Administration > Build Resources > Agents

  2. Click on the related agent name

  3. In the Capabilities tab, edit the Maven executable path to the real Maven Home

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。