asciidoctor / asciidoctor-maven-plugin

A Maven plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
http://asciidoctor.org
Apache License 2.0
317 stars 122 forks source link

Optimizer fails to run on Windows #527

Open Cattlesquat opened 3 years ago

Cattlesquat commented 3 years ago

Description Please see: https://github.com/asciidoctor/asciidoctor-pdf/issues/1790

They fixed this in October, but that was right after your last release.

All of our maven builds are failing for all of our devs on Windows, when they get to the asciidoctor step. No amount of wrestling with paths & environment variables, etc, has been any help.

Environment information

abelsromero commented 3 years ago

Have you tried overriding with the latest Asciidoctorj & jruby versions like here https://github.com/asciidoctor/asciidoctor-maven-examples/blob/70d6a34c6d2df2c94ea3206f8495c7239eb738b2/asciidoctor-pdf-example/pom.xml#L35-L45.

Not that it requires much effort, but alognside the Asciidoctorj team we try to keep things compatible so the maven-plugin can use newer versions. If the problem persists I see in the docs https://github.com/asciidoctor/asciidoctor-pdf#rghost that the path to the command can be set in an environment variable.

If none of this works, I can try to build a test, but if you can provide some reproducable with minimla instructions would help a lot.

abelsromero commented 3 years ago

If none of this works, I can try to build a test, but if you can provide some reproducable with minimla instructions would help a lot.

Of course if the repos are public, just feel free to point me to them too.

uckelman commented 3 years ago

The repo in question is here: https://github.com/vassalengine/vassal

Cattlesquat commented 3 years ago

mvnw install -pl vassal-doc

In the repo quoted above, that's an example command that would just attempt the asciidoc part of the build.

Cattlesquat commented 3 years ago

I have tried various environment variable attempts such as: set GS="C:\Program Files\gs\gs9.54.0\bin\gswin64c.exe" With no luck, although typing %GS% at the command line with that set does launch GS

mojavelinux commented 3 years ago

You won't be able to access this fix yet as it's scheduled for the upcoming Asciidoctor PDF 2 release. There's nothing AsciidoctorJ can do until that's released.

Cattlesquat commented 3 years ago

Okay thanks. I guess probably asciidoc builds by our linux devs until then :D

uckelman commented 3 years ago

Thanks for your help. Any idea when we could expect that release?

mojavelinux commented 3 years ago

As soon as I can get around to wrapping up the issues. I'm likely going to push out on alpha in the new few weeks so at least there is something to start testing.