Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16299

[JDK 11] Build fails without specifying -Djavac.version=11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None

    Description

      mvn install -DskipTests fails on Java 11 without specifying -Djavac.version=11.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hadoop-annotations: Fatal error compiling: error: option --add-exports not allowed with target 1.8 -> [Help 1]
      

      HADOOP-15941 added --add-exports option when the java version is 11 but the option is not allowed when the javac target version is 1.8.

      Attachments

        1. HADOOP-16299.002.patch
          6 kB
          Akira Ajisaka
        2. HADOOP-16299.001.patch
          1.0 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: