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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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.001.patch
          1.0 kB
          Akira Ajisaka
        2. HADOOP-16299.002.patch
          6 kB
          Akira Ajisaka

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: