asciidoctor-maven-examples
asciidoctor-maven-examples copied to clipboard
Example asciidoc-to-html-multipage-example does not work on JDK 11
The example asciidoc-to-html-multipage-example does not work.
[INFO] Scanning for projects...
[INFO]
[INFO] ------< org.asciidoctor.maven:asciidoc-to-html-multipage-example >------
[INFO] Building AsciiDoc to Multiple HTML Pages Maven Example 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ asciidoc-to-html-multipage-example ---
[INFO]
[INFO] --- gem-maven-plugin:2.0.1:initialize (install-gems) @ asciidoc-to-html-multipage-example ---
[WARNING] ERROR: While executing gem ... (Errno::EACCES)
Permission denied - NUL
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.262 s
[INFO] Finished at: 2022-07-28T17:34:59+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:2.0.1:initialize (install-gems) on project asciidoc-to-html-multipage-example: Execution install-gems of goal de.saumya.mojo:gem-maven-plugin:2.0.1:initialize failed: Java returned: 1 -> [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/PluginExecutionException
It seems that maven plugin de.saumya.mojo:gem-maven-plugin:2.0.1 don't work with JDK 11.
Everything went to normal when running maven command from JDK 8.
I've been able to run it succesfully with Java 11 and Java 17 on Linux at least. Specifically using using 11.0.16-tem and 17.0.4-tem installations from sdkman.
Can you share output of mvn -v and mvn -e process-resources when failing?
Did you use a module-info.java file in order to enforce modularity ?
No, normal execution from terminal without any modification. But the error you showed is related to JRuby. Could you share a reproducer and share the logs when running with -X?
Closing unless reproducer is provided.