asciidoctor-maven-examples icon indicating copy to clipboard operation
asciidoctor-maven-examples copied to clipboard

Example asciidoc-to-html-multipage-example does not work on JDK 11

Open eallais opened this issue 3 years ago • 4 comments

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

eallais avatar Jul 28 '22 15:07 eallais

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.

eallais avatar Jul 28 '22 16:07 eallais

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?

abelsromero avatar Jul 28 '22 19:07 abelsromero

Did you use a module-info.java file in order to enforce modularity ?

eallais avatar Aug 13 '22 12:08 eallais

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?

abelsromero avatar Aug 13 '22 19:08 abelsromero

Closing unless reproducer is provided.

abelsromero avatar Oct 09 '24 20:10 abelsromero