Maven task fail with Could not find or load main class
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
- Navigate to
Administration > Build Resources > Agents
- Click on the related agent name
- In the
Capabilities
tab, edit the Maven executable path to the real Maven Home
Last modified on Mar 18, 2019
Powered by Confluence and Scroll Viewport.