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
Attachments
Issue Links
- is broken by
-
HADOOP-15941 [JDK 11] Compilation failure: package com.sun.jndi.ldap is not visible
- Resolved