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

Maven Plugin uses obsolete methods

    Details

    • Similar Issues:

      Description

      Maven plugin uses Maven Core 3.1.0 while its dependencies bundle Maven Core 3.5.0 (Maven 3.5 interceptor and CLI)

      During the upgrade to Parent POM 2.32 I noticed that ReactorManager#getTopLevelProject() APIs have been deleted in 3.2.1: https://abi-laboratory.pro/java/tracker/compat_report/maven/3.1.1/3.2.1/2fc05/src_compat_report.html

      It causes compilation failure with Maven Core 3.5.0, because MavenBuild#preBuild() and MavenBuild#postBuild() actually use this method.

      There are two ways to fix it:

      • Keep Maven Core on 3.1.0 and ignore upper bounds for this case
      • Update API usage (my plan for now)

        Attachments

          Activity

          oleg_nenashev Oleg Nenashev created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Issue Type Task [ 3 ] Bug [ 1 ]
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          oleg_nenashev Oleg Nenashev made changes -
          Remote Link This issue links to "https://github.com/jenkinsci/maven-plugin/pull/102 (Web Link)" [ 17457 ]
          oleg_nenashev Oleg Nenashev made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/hudson/maven/MavenBuild.java
          http://jenkins-ci.org/commit/maven-plugin/a7b4824df1f16b5ea44bb58e4b5ef11424a4695e
          Log:
          JENKINS-46148 - Avoid using deprecated APIs

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/hudson/maven/MavenBuild.java http://jenkins-ci.org/commit/maven-plugin/a7b4824df1f16b5ea44bb58e4b5ef11424a4695e Log: JENKINS-46148 - Avoid using deprecated APIs
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Arnaud Heritier
          Path:
          pom.xml
          src/main/java/hudson/maven/MavenBuild.java
          src/test/java/hudson/maven/AbstractMaven3xBuildTest.java
          src/test/java/hudson/maven/Maven31xBuildTest.java
          src/test/java/hudson/maven/Maven339BuildTest.java
          src/test/java/hudson/maven/Maven35xBuildTest.java
          http://jenkins-ci.org/commit/maven-plugin/6891d0bee159ea9dd614b0a5d36a969820ca79bb
          Log:
          Merge pull request #102 from oleg-nenashev/facelift

          [JENKINS-46053, JENKINS-45271, JENKINS-46210, JENKINS-46148] - Update HttpClient libraries and Fix Parent POM

          Compare: https://github.com/jenkinsci/maven-plugin/compare/5a3d468d42d6...6891d0bee159

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Heritier Path: pom.xml src/main/java/hudson/maven/MavenBuild.java src/test/java/hudson/maven/AbstractMaven3xBuildTest.java src/test/java/hudson/maven/Maven31xBuildTest.java src/test/java/hudson/maven/Maven339BuildTest.java src/test/java/hudson/maven/Maven35xBuildTest.java http://jenkins-ci.org/commit/maven-plugin/6891d0bee159ea9dd614b0a5d36a969820ca79bb Log: Merge pull request #102 from oleg-nenashev/facelift [JENKINS-46053, JENKINS-45271, JENKINS-46210, JENKINS-46148] - Update HttpClient libraries and Fix Parent POM Compare: https://github.com/jenkinsci/maven-plugin/compare/5a3d468d42d6...6891d0bee159
          Hide
          aheritier Arnaud Héritier added a comment -

          Fixed in 3.0(-rc1)

          Show
          aheritier Arnaud Héritier added a comment - Fixed in 3.0(-rc1)
          aheritier Arnaud Héritier made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: