Maven task fail with Could not find or load main class

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

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

Cause

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

Resolution

  1. Navigate to 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


DescriptionMaven task fail with Could not find or load main class
ProductBamboo
Last modified on Mar 18, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.