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

Selected JDK is ignored for Maven build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • maven-plugin
    • None
    • Platform: PC, OS: Windows XP

      I am running Hudson under Tomcat 5.5 with Java 1.5, building a single-module
      Maven project. Since version 5.5 of Tomcat, it can be run with a JRE rather than
      a JDK, as Tomcat comes bundled with the Java compiler from Eclipse.

      Initially, I ran into problems compiling Java because, with the default
      settings, it seemed to be using the JRE running Tomcat, which of course doesn't
      have tools.jar. I then setup a JDK properly in Hudson, ensured that the project
      was configured to use it, and tried again. It seemed to completely ignore this
      setting and continued using the same JRE. I tried re-starting, but that had no
      effect.

      The only way I got this to work was to start Tomcat using a JDK - it appeared
      that the JDK settings in Hudson were ignored.

      Thanks, Alex.

            Unassigned Unassigned
            alexmcmanus alexmcmanus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: