[ https://issues.apache.org/jira/browse/HADOOP-13915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15825737#comment-15825737 ]
Akira Ajisaka commented on HADOOP-13915: ---------------------------------------- There is a workaround from https://issues.apache.org/jira/browse/MWAR-397?focusedCommentId=15818678&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15818678 : {code} $ MAVEN_OPTS="--add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED" mvn install -DskipTests {code} > [JDK9] Compilation failure in hadoop-auth-examples module > --------------------------------------------------------- > > Key: HADOOP-13915 > URL: https://issues.apache.org/jira/browse/HADOOP-13915 > Project: Hadoop Common > Issue Type: Sub-task > Components: build > Environment: OpenJDK 9-ea+149 > Reporter: Akira Ajisaka > > {{mvn install -DskipTests}} fails. > {noformat} > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-war-plugin:2.4:war (default-war) on project > hadoop-auth-examples: Execution default-war of goal > org.apache.maven.plugins:maven-war-plugin:2.4:war failed: Unable to load the > mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.4' due > to an API incompatibility: > org.codehaus.plexus.component.repository.exception.ComponentLookupException: > null > [ERROR] ----------------------------------------------------- > [ERROR] realm = plugin>org.apache.maven.plugins:maven-war-plugin:2.4 > [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > [ERROR] urls[0] = > file:/home/centos/.m2/repository/org/apache/maven/plugins/maven-war-plugin/2.4/maven-war-plugin-2.4.jar > [ERROR] urls[1] = > file:/home/centos/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar > [ERROR] urls[2] = > file:/home/centos/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar > [ERROR] urls[3] = > file:/home/centos/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar > [ERROR] urls[4] = > file:/home/centos/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar > [ERROR] urls[5] = > file:/home/centos/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar > [ERROR] urls[6] = > file:/home/centos/.m2/repository/org/codehaus/plexus/plexus-io/2.0.7/plexus-io-2.0.7.jar > [ERROR] urls[7] = > file:/home/centos/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar > [ERROR] urls[8] = > file:/home/centos/.m2/repository/org/codehaus/plexus/plexus-archiver/2.4.1/plexus-archiver-2.4.1.jar > [ERROR] urls[9] = > file:/home/centos/.m2/repository/org/apache/commons/commons-compress/1.5/commons-compress-1.5.jar > [ERROR] urls[10] = > file:/home/centos/.m2/repository/org/tukaani/xz/1.2/xz-1.2.jar > [ERROR] urls[11] = > file:/home/centos/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.15/plexus-interpolation-1.15.jar > [ERROR] urls[12] = > file:/home/centos/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar > [ERROR] urls[13] = > file:/home/centos/.m2/repository/com/thoughtworks/xstream/xstream/1.4.2/xstream-1.4.2.jar > [ERROR] urls[14] = > file:/home/centos/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar > [ERROR] urls[15] = > file:/home/centos/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar > [ERROR] urls[16] = > file:/home/centos/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar > [ERROR] urls[17] = > file:/home/centos/.m2/repository/org/apache/maven/shared/maven-filtering/1.1/maven-filtering-1.1.jar > [ERROR] urls[18] = > file:/home/centos/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar > [ERROR] Number of foreign imports: 1 > [ERROR] import: Entry[import from realm > ClassRealm[project>org.apache.hadoop:hadoop-main:3.0.0-alpha2-SNAPSHOT, > parent: ClassRealm[maven.api, parent: null]]] > [ERROR] > [ERROR] -----------------------------------------------------: > ExceptionInInitializerError: Unable to make field private final > java.util.Comparator java.util.TreeMap.comparator accessible: module > java.base does not "opens java.util" to unnamed module @8ad2460 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org