I'm using the latest version of the maven plugin (1.5.5) and can't get the "outputFile" option to work in terms of changing the name of the generated PDF file. Any help would be appreciated.
In the example below I am trying to get the file to be called XXXXXX.pdf, but it refuses to be called anything other than swagger.pdf!
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.5.5</version>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>1.5.0-alpha.16</version>
</dependency>
</dependencies>
<configuration>
<sourceDirectory>../../offline-docs/asciidoc</sourceDirectory>
<sourceDocumentName>swagger.adoc</sourceDocumentName>
<embedAssets>true</embedAssets>
<attributes>
<doctype>book</doctype>
<toc>left</toc>
<toclevels>2</toclevels>
<sectnums>true</sectnums>
<generated>${basedir}/target/swagger-docs/asciidoc</generated>
<imagesdir>../../offline-docs/asciidoc/images</imagesdir>
<title-logo-image>image:MYLOGO_WHITE.png[pdfwidth=5in,align=center]</title-logo-image>
<pdf-stylesdir>../../offline-docs/asciidoc/theme</pdf-stylesdir>
<pdf-style>custom</pdf-style>
</attributes>
</configuration>
<executions>
<execution>
<id>asciidoc-to-html</id>
<phase>package</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<skip>${api.docs.skip}</skip>
<outputDirectory>${basedir}/target/swagger-docs/generated-html</outputDirectory>
</configuration>
</execution>
<execution>
<id>asciidoc-to-pdf</id>
<phase>package</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<skip>${api.docs.skip}</skip>
<outputDirectory>${basedir}/target/swagger-docs/generated-pdf</outputDirectory>
<outputFile>XXXXXX.pdf</outputFile>
</configuration>
</execution>
</executions>
</plugin>