I am running a maven based test suite as a task in stand alone Bamboo. I am having problems with a new server that I am standing up where the task fails with:
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
The same script runs correctly if invoked from a command line. If I got this error there (the command line), I would expect that the environment was not properly setup. I have tried setting the M2_HOME variable and others from the local environment box that's part of the task. The error log shows that those are not taking (I see M2_HOME=/usr instead of M2_HOME=/usr/share/maven, for example). Where should I be looking to fix this problem?