Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15338 Java 11 runtime support
  3. HADOOP-16270

[JDK 11] Remove unintentional override of the version of Maven Dependency Plugin

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • build
    • Reviewed

    Description

      HADOOP-14979 upgraded maven dependency plugin to 3.0.2, but the version was overridden to 3.0.1 by YARN-7129 and the following error occurred again.

      [INFO] --- maven-dependency-plugin:3.0.1:list (deplist) @ hadoop-streaming ---
      java.lang.NoSuchMethodException: jdk.internal.module.ModuleReferenceImpl.descriptor()
              at java.base/java.lang.Class.getDeclaredMethod(Class.java:2476)
              at org.apache.maven.plugins.dependency.utils.DependencyStatusSets.getModuleDescriptor(DependencyStatusSets.java:272)
              at org.apache.maven.plugins.dependency.utils.DependencyStatusSets.buildArtifactListOutput(DependencyStatusSets.java:227)
              at org.apache.maven.plugins.dependency.utils.DependencyStatusSets.getOutput(DependencyStatusSets.java:165)
              at org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo.doExecute(ResolveDependenciesMojo.java:90)
              at org.apache.maven.plugins.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:143)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      

      Let's upgrade the plugin version to fix the build failure in Java 11.

      Attachments

        1. HADOOP-16270-001.patch
          2 kB
          Xieming Li

        Issue Links

          Activity

            People

              risyomei Xieming Li
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: