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

Maven Daemon support

XMLWordPrintable

      When using the maven-deamon I got the error:

       

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

      Also the up- and down-stream builds are not working furthermore.

       
      In detail:
      org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution2.obtainMavenExec()

      uses 

      hudson.tasks.Maven.MavenInstallation.GetExecutable.call() to obtain the executable. 

      It looks like the MavenInstallation needs to be extended by "mvnd"

       

      Debug output from WithMavenStepExecution2:

      Setting up maven: null
      May 05, 2025 11:57:13 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution2Searching for Maven through MAVEN_HOME and M2_HOME environment variables...
      May 05, 2025 11:57:13 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution2Using computer environment...
      May 05, 2025 11:57:13 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution2Agent env: {ALLUSERSPROFILE=C:\ProgramData, APPDATA=.........
      May 05, 2025 11:57:13 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution2Found maven installation on D:\Jenkins\Work\tools\hudson.tasks.Maven_MavenInstallation\maven-deamon\maven-mvnd-1.0.2-windows-amd64
      May 05, 2025 11:57:13 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution2Found exec for maven on: null 

       

       

            bguerin Benoit
            sstamm Sebastian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: