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

pipeline-maven: warning of unknown Maven version in plugin version 1368.vfb_8509d7b_869

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Jenkins LTS 2.426.2
      pipeline-maven 1368.vfb_8509d7b_869
      pipeline-maven-api 1368.vfb_8509d7b_869
    • 1376.v18876d10ce9c

      After updating the pipeline-maven and pipeline-maven-api plugin from version 1362.vee39a_d4b_02b_1 to version 1368.vfb_8509d7b_869, I can now see every time withMaven() is invoked a warning message in the job log:

      [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x
      

      But withMaven seems to pickup the correct Maven version despite the warning:

      1) I have configured Maven tool "Maven 3.9.6" picking the version 3.9.6.

      2) The following pipeline:

      pipeline {  
        agent { node { label 'linux' } }
        stages { 
          stage('Maven') {
            steps {
                withMaven(maven: "Maven 3.9.6") {
                  sh "mvn -U -B -e -v"
               }
            }
          }
        } 
      } 
      

      creates the output

      [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x
      + mvn -U -B -e -v
      Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/srv/jenkins-data/node/workspace/DOT-1949-mvn@tmp/withMavenbbe509b0/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/srv/jenkins-data/node/workspace/DOT-1949-mvn@tmp/withMavenbbe509b0"
      Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
      Maven home: /srv/jenkins-data/node/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.9.6
      Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-17-jdk
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "3.10.0-1160.105.1.el7.x86_64", arch: "amd64", family: "unix"
      Finished: SUCCESS 
      

       

      I reverted both plugins back to the previous version 1362.vee39a_d4b_02b_1 and the warning message is gone.

      Does not look like a critical issue, but having the warning now with every invocation of withMaven() is very irritating for the users.

            bguerin Benoit
            rmontag Rainer Montag
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: