Error: Could Not Find or Load Main Class Org.Codehaus.Classworlds.Launcher While Building Maven 3.0.4

How to resolve jenkins maven error 'Could not find main class'?

Hauptklasse or: this means MainClass with the name 'or' ...

The problem is with the second argument: -Xmx1500m or -XX:MaxPermSize=250m, the word or is interpreted as the name of the mainClass. Removing it should help you a bit further.

maven error when running in cygwin?

Maven with Cygwin - Error: JAVA_HOME is not defined correctly

The "alias mvn=mvn.bat" answer toward the bottom of above post worked for me. However, is this THE solution?

eclipse m2eclipse not working

my envirement

eclipse version : 4.3 kepler

maven version : 3.2.x

OS : windows 7

m2e plugin version : 1.5

the problem caused by combination of things, e.g mismatch between maven installation and setting.xml is one, but mainly the problem was:

  • solution for my problem was to run the eclipse in administrator mode.

  • you can run maven embedded (comes with eclipse) or external installation

    just to make sure they are pointing to the right setting.xml file

  • somehow the embedded disappears sometimes, just restart eclipse it will appear again

  • finally I can confirm the latest m2e 1.5 or above supports maven 3.

    Note:

  • set JAVA_HOME is a must, because maven uses it to look up java which runs maven itself

  • set non-embeded maven installation location in the windows path is needed

  • set M2_HOME was NOT needed in my case, thus to get m2e working in eclipse or interact maven though command line, M2_HOME is not needed

    Jenkins maven error while building job

    I edited the .bashrc file to set the Maven home, sourced it and then restarted the Jenkins server. That seemed to solve my issue.



    Related Topics



  • Leave a reply



    Submit