Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10375

maven failed when turn on headless

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      when I turn on the "Run Headless" option in "Build" of a maven object, it failed with following log:

      Started by user lidaobing
      Building on master
      Cleaning up /var/lib/jenkins/jobs/Base/workspace/.
      Deleting /var/lib/jenkins/jobs/Base/workspace/./target
      Updating http://svn.teamhost.org/llap/trunk/phase1/sources/Base
      At revision 2870
      no change for http://svn.teamhost.org/llap/trunk/phase1/sources/Base since the previous build
      Parsing POMs
      Modules changed, recalculating dependency graph
      [workspace] $ java null -Djava.awt.headless=true -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/var/lib/jenkins/tools/default_maven/boot/classworlds-1.1.jar hudson.maven.agent.Main /var/lib/jenkins/tools/default_maven /var/run/jenkins/war/WEB-INF/lib/remoting-1.421.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar 39682 /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
      Exception in thread "main" java.lang.NoClassDefFoundError: null
      Caused by: java.lang.ClassNotFoundException: null
      at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      Could not find the main class: null. Program will exit.
      ERROR: Failed to launch Maven. Exit code = 1
      Finished: FAILURE

            kutzi kutzi
            lidaobing lidaobing
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: