Skip to content

Maven build fails with Java 9 #26

Description

@prog893

Building master with JDK 9.0.1, Maven 3.5.2 results in following output:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] CSPARQL-engine/csparql-core/src/main/java/eu/larkc/csparql/core/old_parser/TreeBox.java:[53,16] cannot find symbol
  symbol:   class Regexp
  location: package sun.misc
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Multi Module CSPARQL Parent Project ................ SUCCESS [  0.002 s]
[INFO] csparql-common ..................................... SUCCESS [  0.565 s]
[INFO] csparql-cep-api .................................... SUCCESS [  0.014 s]
[INFO] csparql-cep-esper .................................. SUCCESS [  0.021 s]
[INFO] csparql-sparql-api ................................. SUCCESS [  0.015 s]
[INFO] csparql-sparql-jena ................................ SUCCESS [  0.021 s]
[INFO] csparql-sesame ..................................... SUCCESS [  0.084 s]
[INFO] csparql-core ....................................... FAILURE [  1.802 s]
[INFO] csparql-ui ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.659 s
[INFO] Finished at: 2018-02-11T16:15:28+09:00
[INFO] Final Memory: 18M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project csparql-core: Compilation failure
[ERROR] CSPARQL-engine/csparql-core/src/main/java/eu/larkc/csparql/core/old_parser/TreeBox.java:[53,16] cannot find symbol
[ERROR]   symbol:   class Regexp
[ERROR]   location: package sun.misc
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :csparql-core

This seems to be caused by JDK-8137056: a lot of things have been moved from sun.misc to jdk.internal.misc.

It seems that it is possible to use private modules by fixing pom.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions