<plugins> <plugin> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> <version>2.0.0-RC.1</version> <dependencies> <dependency> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctorj-pdf</artifactId> <version>1.5.0-alpha.18</version> </dependency><!-- Comment this section to use the default jruby artifact provided by the plugin --> <dependency> <groupId>org.jruby</groupId> <artifactId>jruby-complete</artifactId> <version>9.2.7.0</version> </dependency><!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin --> <dependency> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctorj</artifactId> <version>2.0.0</version> </dependency> </dependencies> <configuration> <sourceDirectory>src/docs/asciidoc</sourceDirectory><!-- Attributes common to all output formats --> <attributes> <sourcedir>target/docs/asciidoc/generated</sourcedir> </attributes> </configuration> <executions> <execution> <id>generate-pdf-doc</id> <phase>generate-resources</phase> <goals> <goal>process-asciidoc</goal> </goals> <configuration> <backend>pdf</backend><!-- Since 1.5.0-alpha.9 PDF back-end can use 'rouge' as well as 'coderay' for source highlighting --> <!-- Due to a known issue on windows, it is recommended to use 'coderay' until an new version of 'rouge' is released.
--> <sourceHighlighter>coderay</sourceHighlighter> <attributes> <icons>font</icons> <pagenums/> <toc/> <idprefix/> <idseparator>-</idseparator> </attributes> </configuration> </execution> </executions> </plugin>