Maven build complains about missing DirectoryWalker class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven build complains about missing DirectoryWalker class

Tjalling
This post was updated on .
We use Asciidoctor in the Maven build of our product, to generate HTML and PDF files from Asciidoc. With the version combination listed below, the build fails with a java.lang.NoClassDefFoundError: org/asciidoctor/DirectoryWalker.

- asciidoctor-maven: 1.6.0
- asciidoctorj: 2.2.0
- asciidoctorj-diagram: 2.0.1
- asciidoctorj-pdf: 1.5.3

The actual package for the DirectoryWalker class seems to be org.asciidoctor.jruby, not org.asciidoctor. All usages and references to DirectoryWalker that I've been able to find are correctly using org.asciidoctor.jruby. So I'm stumped as to where the issue comes from / whether it's on my side or not (which is why I haven't filed this as an issue on GitHub). Does anyone have an idea what the cause could be?

- stacktrace
- maven output showing the versions of the jars used
Reply | Threaded
Open this post in threaded view
|

Re: Maven build complains about missing DirectoryWalker class

abelsromero
Use

- asciidoctor-maven: 2.0.0-RC.1
Reply | Threaded
Open this post in threaded view
|

Re: Maven build complains about missing DirectoryWalker class

Tjalling
That solved it, thank you.