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

MAven toolchains error with maven 3.3

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      linux RHEL, java 8, maven 3.3, check against jenkins version 1.610 & 1.613.
    • Similar Issues:

      Description

      Hi,

      When I use toolchains, I set toolchains.xml file in ~/.m2.
      If I build a job with maven 3.2 it work.
      If I build a job with maven 3.3 it fails with the error :
      INFO] — maven-toolchains-plugin:1.1:toolchain (default) @ xxxxxxx —
      [INFO] Required toolchain: jdk [ version='1.5' ]
      [ERROR] No toolchain found for type jdk
      [ERROR] Cannot find matching toolchain definitions for the following toolchain types:
      jdk [ version='1.5' ]

      It come from jenkins plugin, because when I launch "manually" maven 3.3 it work without issue.

        Attachments

          Issue Links

            Activity

            Hide
            petteyg359 Gordon Pettey added a comment -

            Seeing this error in 1.607.

            Show
            petteyg359 Gordon Pettey added a comment - Seeing this error in 1.607.
            Hide
            aheritier Arnaud Héritier added a comment -

            the workaround is to use a freestyle job and not a maven job

            Show
            aheritier Arnaud Héritier added a comment - the workaround is to use a freestyle job and not a maven job
            Hide
            aheritier Arnaud Héritier added a comment -

            Fixed by JENKINS-28629 in maven-plugin > 2.13

            Show
            aheritier Arnaud Héritier added a comment - Fixed by JENKINS-28629 in maven-plugin > 2.13
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Arnaud HERITIER
            Path:
            pom.xml
            http://jenkins-ci.org/commit/maven-plugin/2ba218bda274cb5d5b561aeada8678d52bd7c26d
            Log:
            Use maven-interceptors 1.8.1
            Fixed: Apache Maven 3.3 support and toolchains integration ( JENKINS-28629, JENKINS-28420 )

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud HERITIER Path: pom.xml http://jenkins-ci.org/commit/maven-plugin/2ba218bda274cb5d5b561aeada8678d52bd7c26d Log: Use maven-interceptors 1.8.1 Fixed: Apache Maven 3.3 support and toolchains integration ( JENKINS-28629 , JENKINS-28420 )

              People

              • Assignee:
                Unassigned
                Reporter:
                intelradoux intelradoux
              • Votes:
                11 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: