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

MavenConsole doesn't work properly with maven 3.9.0

      It looks like with Maven 3.9.0 the output of the plugin name has changed and therefore the logic doesn't work correctly anymore.

       

      e.g. Before

      [2023-02-20T11:35:11.123Z] [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ connectivity ---
       

      With maven 3.9.0

      [2023-02-20T13:15:28.231Z] [INFO] --- compiler:3.10.1:compile (default-compile) @ connectivity ---
       

      Similar things are there for other plugins such as maven enforcer or javadoc.

          [JENKINS-70658] MavenConsole doesn't work properly with maven 3.9.0

          Nethradevi added a comment -

          Hello  tario , I am Nethra can I take up this issue and try to solve ? 

          Nethradevi added a comment - Hello   tario , I am Nethra can I take up this issue and try to solve ? 

          Sure d_neth04_ go ahead.

          Patrick Ruckstuhl added a comment - Sure d_neth04_ go ahead.

          Nethradevi added a comment -

          tario So I just want to confirm whether I understood the issue properly.
          So, with latest version of maven terminal (3.9.0) it doesn't work properly. 
          So, can it be fixed if I just change the configuration for the mavin compiler plugin? 
          Can I do this by changing it to the version 3.8.7? 

          Nethradevi added a comment - tario So I just want to confirm whether I understood the issue properly. So, with latest version of maven terminal (3.9.0) it doesn't work properly.  So, can it be fixed if I just change the configuration for the mavin compiler plugin?  Can I do this by changing it to the version 3.8.7? 

          No, this jenkins plugin/the parsing of the console log doesn't work correctly if you use maven 3.9.0 as the console output with the plugin name changes and the logic in the code is depending on the names as were provided by earlier maven versions.

           

          See https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MavenConsoleParser.java where it depends on output of  maven-compiler-plugin, maven-javadoc-plugin and maven-enforcer-plugin and that is now different (e.g. compiler instead of maven-compiler-plugin)

          Patrick Ruckstuhl added a comment - No, this jenkins plugin/the parsing of the console log doesn't work correctly if you use maven 3.9.0 as the console output with the plugin name changes and the logic in the code is depending on the names as were provided by earlier maven versions.   See https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MavenConsoleParser.java where it depends on output of  maven-compiler-plugin, maven-javadoc-plugin and maven-enforcer-plugin and that is now different (e.g. compiler instead of maven-compiler-plugin)

          Nethradevi added a comment - - edited

          tario  Oh okay, so if I just figure out where inside the above code ( https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MavenConsoleParser.java
          the text "maven-compiler-plugin" is being changed to "compiler" then the rest of the logic should work accordingly. And also the code should not depond on that text and give the output with respect to it.
          Am I correct?

          Nethradevi added a comment - - edited tario   Oh okay, so if I just figure out where inside the above code ( https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MavenConsoleParser.java )  the text "maven-compiler-plugin" is being changed to "compiler" then the rest of the logic should work accordingly. And also the code should not depond on that text and give the output with respect to it. Am I correct?

          Nethradevi added a comment -

          I was confused about the issue a little, but I tried to make one small change to the MavenConsoleParser.java file in this code https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MavenConsoleParser.java

          according to whatever I have understood. 

          And when I tried to push it to the GitHub page but there was an error saying push failed.

          Nethradevi added a comment - I was confused about the issue a little, but I tried to make one small change to the MavenConsoleParser.java file in this code https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MavenConsoleParser.java according to whatever I have understood.  And when I tried to push it to the GitHub page but there was an error saying push failed.

            drulli Ulli Hafner
            tario Patrick Ruckstuhl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: