Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6166

mvn dependency:go-offline fails due to missing transitive dependency jdom:jdom:jar:1.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.9
    • Fix Version/s: 3.5.0-alpha-1, 3.5.0
    • Component/s: core
    • Labels:
      None

      Description

      When running mvn dependency:go-offline it reports that

      Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) on project maven-artifact: Nested: Could not find artifact jdom:jdom:jar:1.1 in central (http://repo.maven.apache.org/maven2)

      It is likely in one of the external dependencies because I don't see it on the code base itself.

      https://travis-ci.org/trajano/maven/builds/198102606

      Just an FYI there is no jdom:jdom:jar:1.1 in central it is a POM project.

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user trajano commented on the issue:

          https://github.com/apache/maven/pull/97

          Build is failing due to https://issues.apache.org/jira/browse/MNG-6166 after I synced with main branch

          Show
          githubbot ASF GitHub Bot added a comment - Github user trajano commented on the issue: https://github.com/apache/maven/pull/97 Build is failing due to https://issues.apache.org/jira/browse/MNG-6166 after I synced with main branch
          Show
          trajano Archimedes Trajano added a comment - My suspicion is in https://github.com/sonatype/plexus-containers/blob/plexus-containers-1.6/pom.xml where it has a reference to jdom:jdom 1.1 https://github.com/sonatype/plexus-containers/blob/plexus-containers-1.6/pom.xml#L78
          Hide
          trajano Archimedes Trajano added a comment -

          It is also in https://github.com/codehaus-plexus/plexus-containers/blob/plexus-containers-1.6/pom.xml

          This is not an issue with plexus-containers 1.7 though where they switched to jdom2. But maven on master still uses 1.6 of plexus.

          Show
          trajano Archimedes Trajano added a comment - It is also in https://github.com/codehaus-plexus/plexus-containers/blob/plexus-containers-1.6/pom.xml This is not an issue with plexus-containers 1.7 though where they switched to jdom2. But maven on master still uses 1.6 of plexus.
          Hide
          michael-o Michael Osipov added a comment -

          You analysis is correct:

          diff --git a/maven-core/src/test/resources-project-builder/foo/sub/pom.xml b/maven-core/src/test/resources-project-builder/foo/sub/pom.xml
          index c5e3d9a..dc10bd1 100644
          --- a/maven-core/src/test/resources-project-builder/foo/sub/pom.xml
          +++ b/maven-core/src/test/resources-project-builder/foo/sub/pom.xml
          @@ -25,10 +25,6 @@
                 <artifactId>dom4j</artifactId>
               </dependency>
               <dependency>
          -      <groupId>jdom</groupId>
          -      <artifactId>jdom</artifactId>
          -    </dependency>
          -    <dependency>
                 <groupId>org.apache.maven</groupId>
                 <artifactId>maven-model</artifactId>
               </dependency>
          diff --git a/pom.xml b/pom.xml
          index 7d44da6..cfc5cb7 100644
          --- a/pom.xml
          +++ b/pom.xml
          @@ -49,7 +49,7 @@
               <commonsCliVersion>1.2</commonsCliVersion>
               <commonsLangVersion>3.4</commonsLangVersion>
               <junitVersion>4.11</junitVersion>
          -    <plexusVersion>1.6</plexusVersion>
          +    <plexusVersion>1.7.1</plexusVersion>
               <plexusInterpolationVersion>1.21</plexusInterpolationVersion>
               <plexusUtilsVersion>3.0.22</plexusUtilsVersion>
               <!-- Latest version of Guava that works with Sisu -->
          
          Show
          michael-o Michael Osipov added a comment - You analysis is correct: diff --git a/maven-core/src/test/resources-project-builder/foo/sub/pom.xml b/maven-core/src/test/resources-project-builder/foo/sub/pom.xml index c5e3d9a..dc10bd1 100644 --- a/maven-core/src/test/resources-project-builder/foo/sub/pom.xml +++ b/maven-core/src/test/resources-project-builder/foo/sub/pom.xml @@ -25,10 +25,6 @@ <artifactId>dom4j</artifactId> </dependency> <dependency> - <groupId>jdom</groupId> - <artifactId>jdom</artifactId> - </dependency> - <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> </dependency> diff --git a/pom.xml b/pom.xml index 7d44da6..cfc5cb7 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ <commonsCliVersion>1.2</commonsCliVersion> <commonsLangVersion>3.4</commonsLangVersion> <junitVersion>4.11</junitVersion> - <plexusVersion>1.6</plexusVersion> + <plexusVersion>1.7.1</plexusVersion> <plexusInterpolationVersion>1.21</plexusInterpolationVersion> <plexusUtilsVersion>3.0.22</plexusUtilsVersion> <!-- Latest version of Guava that works with Sisu -->
          Hide
          trajano Archimedes Trajano added a comment -

          I updated my Travis PR to contain the changes you had specified including the plexus 1.7.1 as aseparate commit. The build has successfully passed. https://travis-ci.org/trajano/maven/builds/198406657

          Feel free to merge it so it will have Apache's keys rather than mine and have https://sonarqube.com/dashboard?id=org.apache.maven%3Amaven be run from it.

          Show
          trajano Archimedes Trajano added a comment - I updated my Travis PR to contain the changes you had specified including the plexus 1.7.1 as aseparate commit. The build has successfully passed. https://travis-ci.org/trajano/maven/builds/198406657 Feel free to merge it so it will have Apache's keys rather than mine and have https://sonarqube.com/dashboard?id=org.apache.maven%3Amaven be run from it.
          Hide
          michael-o Michael Osipov added a comment -
          Show
          michael-o Michael Osipov added a comment - Fixed with 66a0fbe495f7df45562bee22188341899e1ca839 .
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Jenkins build maven-3.x #1540 (See https://builds.apache.org/job/maven-3.x/1540/)
          MNG-6166 mvn dependency:go-offline fails due to missing transitive (michaelo: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=66a0fbe495f7df45562bee22188341899e1ca839)

          • (edit) pom.xml
          • (edit) maven-core/src/test/resources-project-builder/foo/sub/pom.xml
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Jenkins build maven-3.x #1540 (See https://builds.apache.org/job/maven-3.x/1540/ ) MNG-6166 mvn dependency:go-offline fails due to missing transitive (michaelo: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=66a0fbe495f7df45562bee22188341899e1ca839 ) (edit) pom.xml (edit) maven-core/src/test/resources-project-builder/foo/sub/pom.xml

            People

            • Assignee:
              michael-o Michael Osipov
              Reporter:
              trajano Archimedes Trajano
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development