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

After upgrading to JDK 17, the maven info plugin version 0.3.1 no longer works.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-info-plugin
    • None

      The plugin seems to load with no issues, however in a build configuration, the maven info section no longer appears.  In previous version of java, I would see a section in a build configuration with: 

      Maven Info Plugin Configuration
      Assign Visible Name  
      Assign Description  
        Main Module Pattern    
        Interesting Dependencies Pattern    

       

      Now that section does not appear.  I have not tried with java 11.  Running Jenkins 2.452, JDK 17.0.10.

      I searched my jenkins logs and cannot find any errors for this.  One of my jenkins jobs has 53 maven projects to process, so having the maven info plugin to show Module Builds status without having to look through the console log was very helpful.

      Thanks,

      Dorothy

          [JENKINS-72967] After upgrading to JDK 17, the maven info plugin version 0.3.1 no longer works.

          Markus Winter added a comment -

          Did you also update Jenkins? 

          Check the browser console for errors, might be that it still uses some prototype stuff

          Markus Winter added a comment - Did you also update Jenkins?  Check the browser console for errors, might be that it still uses some prototype stuff

          running in Chrome, so watching console messages while doing the following:  

          I tried to disable the plugin (which required restart) and then re-enable, but no errors about loading it.

          I tried uninstalling and re-installing. no errors or warnings on install, brought up Configuration for my job and no errors appear.  There are some warnings, but about credential selection, and another about using repeatable.js, nothing about the maven info plugin.

           

          Do you know if anyone has used this plugin with JDK 17?  Or if there is any alternative?

           

          Thanks,

          Dorothy

          Dorothy DeLuca added a comment - running in Chrome, so watching console messages while doing the following:   I tried to disable the plugin (which required restart) and then re-enable, but no errors about loading it. I tried uninstalling and re-installing. no errors or warnings on install, brought up Configuration for my job and no errors appear.  There are some warnings, but about credential selection, and another about using repeatable.js, nothing about the maven info plugin.   Do you know if anyone has used this plugin with JDK 17?  Or if there is any alternative?   Thanks, Dorothy

          Markus Winter added a comment -

          This is what I see on a maven type job on it's configure page on  2.452 with java 17.0.10

          So everything looks good. The java version is not relevant for the configuration page.

          The configuration is only available for maven jobs. You will not see this for freestyle, matrix or pipeline jobs. 

          Markus Winter added a comment - This is what I see on a maven type job on it's configure page on  2.452 with java 17.0.10 So everything looks good. The java version is not relevant for the configuration page. The configuration is only available for maven jobs. You will not see this for freestyle, matrix or pipeline jobs. 

          ok, thanks again for your response. I did install jenkins on a new server and tried to import my job but it failed.  I then tried to recreate the job and used freestyle instead of maven project, so that is why I could not see the plugin.  Thanks so very much for pointing out that the maven info plugin does not work with freestyle.  In my new jenkins server, if I recreate the project as a maven project, I cannot run a job with an older version of jdk.  The error says: 
          ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK.
          and everything I read says I really should not use a maven project.  I have yet to find a plugin that shows status of my maven build using the freestyle project type.  Perhaps I am just out of luck.  

          My freestyle version of the project works fine, jobs run with no problem, my maven version fails with the jdk issue.  If there is no real solution to this other than to use freestyle, and not display maven module build status, then I will just live with that, but if you have any suggestion for an alternative, I would be grateful.

           

          Thanks so very much for all of your input on this issue.

          Dorothy

          Dorothy DeLuca added a comment - ok, thanks again for your response. I did install jenkins on a new server and tried to import my job but it failed.  I then tried to recreate the job and used freestyle instead of maven project, so that is why I could not see the plugin.  Thanks so very much for pointing out that the maven info plugin does not work with freestyle.  In my new jenkins server, if I recreate the project as a maven project, I cannot run a job with an older version of jdk.  The error says:  ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK. and everything I read says I really should not use a maven project.  I have yet to find a plugin that shows status of my maven build using the freestyle project type.  Perhaps I am just out of luck.   My freestyle version of the project works fine, jobs run with no problem, my maven version fails with the jdk issue.  If there is no real solution to this other than to use freestyle, and not display maven module build status, then I will just live with that, but if you have any suggestion for an alternative, I would be grateful.   Thanks so very much for all of your input on this issue. Dorothy

            olamy Olivier Lamy
            dddeluca1 Dorothy DeLuca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: