Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven build fails with Java 9 #26

Open
prog893 opened this issue Feb 11, 2018 · 1 comment
Open

Maven build fails with Java 9 #26

prog893 opened this issue Feb 11, 2018 · 1 comment

Comments

@prog893
Copy link

prog893 commented Feb 11, 2018

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.

@prog893
Copy link
Author

prog893 commented Feb 11, 2018

Actually, sun.misc.Regexp was removed as a part of cleanup in 2014: https://bugs.java.com/view_bug.do?bug_id=8037781

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

No branches or pull requests

1 participant