-
Bug
-
Resolution: Unresolved
-
Minor
-
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.
- is caused by
-
JENKINS-72386 withMaven exits with unrecognized option --no-transfer-progress when using maven < 3.6.1
-
- Closed
-
- links to
[JENKINS-72516] pipeline-maven: warning of unknown Maven version in plugin version 1368.vfb_8509d7b_869
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. |
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. |
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 |
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. |
Link |
New:
This issue is caused by |
Assignee | New: Benoit [ bguerin ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "Pull request 758 (Web Link)" [ 29450 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Fixed but Unreleased [ 10203 ] |