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

Error "JDK 5 not supported to run Maven" while running Java 6

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None

      Hi,

      I don't know why this problem appeared today, when running a job using Java 6, we got the following error:
      ERROR: JENKINS-18403 JDK 5 not supported to run Maven
      And then Jenkins switched to Java 7 (which we don't want).

      You can see the whole log here: http://jenkins.petalslink.com/view/81%20-%20Petals%20ESB%20Enterprise%204.3.x/job/4.3.x%20-%20Petals%20Components%20-%20CDK%20-%20Parent%20POM/2/console

      I checked the source code, and I guess a UnsupportedClassVersionError happened.
      It would maybe best to log the exception when it does to at least ease diagnostic if the problem is coming from us… but I don't think it is the case because it happens really at the beginning of the execution…

      Thanks!

          [JENKINS-28368] Error "JDK 5 not supported to run Maven" while running Java 6

          Victor Noël created issue -
          Daniel Beck made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Link New: This issue duplicates JENKINS-28294 [ JENKINS-28294 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163206 ] New: JNJira + In-Review [ 197136 ]

            Unassigned Unassigned
            victornoel Victor Noël
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: