Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-2946

Upgrade maven plugin to make Hudi be compatible with higher Java versions

    XMLWordPrintableJSON

Details

    Description

      I saw several issues while building Hudi w/ Java 11:

       

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:test-jar (default) on project hudi-common: Execution default of goal org.apache.maven.plugins:maven-jar-plugin:2.6:test-jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-jar-plugin:2.6:test-jar: java.lang.ExceptionInInitializerError: null[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.1.1:shade (default) on project hudi-hadoop-mr-bundle: Error creating shaded jar: Problem shading JAR /workspace/workspace/rchertar.bigtop.hudi-rpm-mainline-6.x-0.9.0/build/hudi/rpm/BUILD/hudi-0.9.0-amzn-1-SNAPSHOT/packaging/hudi-hadoop-mr-bundle/target/hudi-hadoop-mr-bundle-0.9.0-amzn-1-SNAPSHOT.jar entry org/apache/hudi/hadoop/bundle/Main.class: java.lang.IllegalArgumentException -> [Help 1]

       

      We need to upgrade maven plugin versions to make it be compatible with Java 11.

      Also upgrade dockerfile-maven-plugin to latest versions to support Java 11 https://github.com/spotify/dockerfile-maven/pull/230

      Attachments

        Issue Links

          Activity

            People

              wenningd Wenning Ding
              wenningd Wenning Ding
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: