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

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

    • 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.

          [JENKINS-72516] pipeline-maven: warning of unknown Maven version in plugin version 1368.vfb_8509d7b_869

          Rainer Montag created issue -
          Rainer Montag made changes -
          Description Original: 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.
          New: 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:

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

          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:
          {code}
          pipeline {
            agent { node { label 'linux' } }
            stages {
              stage('Maven') {
            steps {
                withMaven(maven: "Maven 3.9.6") {
                      sh "mvn -U -B -e -v"
                   }
                }
              }
            }
          }
          {code}
          creates the output
          {code}
          [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
          {code} 

          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.
          Rainer Montag made changes -
          Description Original: 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:

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

          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:
          {code}
          pipeline {
            agent { node { label 'linux' } }
            stages {
              stage('Maven') {
            steps {
                withMaven(maven: "Maven 3.9.6") {
                      sh "mvn -U -B -e -v"
                   }
                }
              }
            }
          }
          {code}
          creates the output
          {code}
          [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
          {code} 

          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.
          New: 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:
          {code:java}
          [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x
          {code}
          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:
          {code:java}
          pipeline {
            agent { node { label 'linux' } }
            stages {
              stage('Maven') {
            steps {
                withMaven(maven: "Maven 3.9.6") {
                      sh "mvn -U -B -e -v"
                   }
                }
              }
            }
          }
          {code}
          creates the output
          {code:java}
          [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
          {code}
           

          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.
          Rainer Montag made changes -
          Summary Original: warning of unknown Maven version in plugin version 1368.vfb_8509d7b_869 New: pipeline-maven: warning of unknown Maven version in plugin version 1368.vfb_8509d7b_869
          Rainer Montag made changes -
          Description Original: 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:
          {code:java}
          [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x
          {code}
          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:
          {code:java}
          pipeline {
            agent { node { label 'linux' } }
            stages {
              stage('Maven') {
            steps {
                withMaven(maven: "Maven 3.9.6") {
                      sh "mvn -U -B -e -v"
                   }
                }
              }
            }
          }
          {code}
          creates the output
          {code:java}
          [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
          {code}
           

          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.
          New: 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:
          {code:java}
          [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x
          {code}
          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:
          {code:java}
          pipeline {
            agent { node { label 'linux' } }
            stages {
              stage('Maven') {
            steps {
                withMaven(maven: "Maven 3.9.6") {
                      sh "mvn -U -B -e -v"
                   }
                }
              }
            }
          }
          {code}
          creates the output
          {code:java}
          [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
          {code}
           

          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.

          Rainer Montag added a comment -

          Running with traceability:true give some more information:

          [withMaven] Options: []
          [withMaven] Available options: 
          [withMaven] using JDK installation provided by the build agent
          [withMaven] using Maven installation 'Maven 3.9.6'
          [withMaven] failed to read Maven version: Unable to serialize Optional[Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)]
          [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x
          ... 

          Rainer Montag added a comment - Running with traceability:true give some more information: [withMaven] Options: [] [withMaven] Available options: [withMaven] using JDK installation provided by the build agent [withMaven] using Maven installation 'Maven 3.9.6' [withMaven] failed to read Maven version: Unable to serialize Optional[Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)] [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x ...

          Same issue here

          [14:53:21.533+01:00] - [withMaven] failed to read Maven version: null
          [14:53:21.533+01:00] - [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x
          

          But latest maven version is used on container (https://hub.docker.com/_/maven)

          [14:53:22.935+01:00] - ----- withMaven Wrapper script -----
          [14:53:22.935+01:00] - Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/home/jenkins/agent/workspace/*********@tmp/withMavenf2a92218/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/home/jenkins/agent/workspace/**********@tmp/withMavenf2a92218" 
          [14:53:23.564+01:00] - Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
          [14:53:23.565+01:00] - Maven home: /usr/share/maven
          

          Valentin Delaye added a comment - Same issue here [14:53:21.533+01:00] - [withMaven] failed to read Maven version: null [14:53:21.533+01:00] - [withMaven] WARNING: You are running an old version of Maven (UNKNOWN), you should update to at least 3.8.x But latest maven version is used on container ( https://hub.docker.com/_/maven ) [14:53:22.935+01:00] - ----- withMaven Wrapper script ----- [14:53:22.935+01:00] - Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext. class. path= "/home/jenkins/agent/workspace/*********@tmp/withMavenf2a92218/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder= "/home/jenkins/agent/workspace/**********@tmp/withMavenf2a92218" [14:53:23.564+01:00] - Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) [14:53:23.565+01:00] - Maven home: /usr/share/maven

          Rainer Montag added a comment -

          bguerin can you have a look? It was introduced with https://github.com/jenkinsci/pipeline-maven-plugin/pull/749

          Rainer Montag added a comment - bguerin can you have a look? It was introduced with https://github.com/jenkinsci/pipeline-maven-plugin/pull/749
          Rainer Montag made changes -
          Link New: This issue is caused by JENKINS-72386 [ JENKINS-72386 ]
          Benoit made changes -
          Assignee New: Benoit [ bguerin ]

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

              Created:
              Updated: