Skip to content

Conversation

@aajisaka
Copy link
Member

@aajisaka aajisaka commented Mar 9, 2018

Change:

  • Created jdk8 profile and moved jdk.tools direct dependency into the profile.

Testing:

  • Compiled the modules successfully on both Java 8 and Java 9 on my local.

@aajisaka
Copy link
Member Author

aajisaka commented Mar 9, 2018

FYI: mvn install failed in Java 10.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce) on project audience-annotations: Execution enforce of goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.3.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/ajisaka/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.3.1/maven-enforcer-plugin-1.3.1.jar
[ERROR] urls[1] = file:/Users/ajisaka/.m2/repository/org/codehaus/mojo/extra-enforcer-rules/1.0-beta-3/extra-enforcer-rules-1.0-beta-3.jar
[ERROR] urls[2] = file:/Users/ajisaka/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
[ERROR] urls[3] = file:/Users/ajisaka/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[4] = file:/Users/ajisaka/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[5] = file:/Users/ajisaka/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar
[ERROR] urls[6] = file:/Users/ajisaka/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar
[ERROR] urls[7] = file:/Users/ajisaka/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.jar
[ERROR] urls[8] = file:/Users/ajisaka/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[9] = file:/Users/ajisaka/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[10] = file:/Users/ajisaka/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
[ERROR] urls[11] = file:/Users/ajisaka/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
[ERROR] urls[12] = file:/Users/ajisaka/.m2/repository/org/apache/maven/enforcer/enforcer-api/1.3.1/enforcer-api-1.3.1.jar
[ERROR] urls[13] = file:/Users/ajisaka/.m2/repository/org/apache/maven/enforcer/enforcer-rules/1.3.1/enforcer-rules-1.3.1.jar
[ERROR] urls[14] = file:/Users/ajisaka/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
[ERROR] urls[15] = file:/Users/ajisaka/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: begin 0, end 3, length 2
[ERROR] -> [Help 1]

@aajisaka
Copy link
Member Author

aajisaka commented Mar 9, 2018

Upgrading maven-enforcer-plugin fixes the above error, but compile error still exists because of the removal of com.sun.tools.doclets.
https://bugs.openjdk.java.net/browse/JDK-8177511

@asfgit asfgit closed this in b9a78c3 Apr 1, 2018
@aajisaka aajisaka deleted the YETUS-619 branch April 1, 2018 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant