<artifactId>docs</artifactId>
<profiles>
+ <profile>
+ <id>create-docs-new</id>
+ <activation>
+ <property>
+ <name>createDocs__NEW</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.asciidoctor</groupId>
+ <artifactId>asciidoctor-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-asciidoc</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>process-asciidoc</goal>
+ </goals>
+ <configuration>
+ <sourceDirectory>${project.basedir}</sourceDirectory>
+ <outputDirectory>${project.build.directory}/html</outputDirectory>
+ <preserveDirectories>true</preserveDirectories>
+ <relativeBaseDir>true</relativeBaseDir>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>create-docs</id>
<activation>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
</plugin>
+ <plugin>
+ <groupId>org.asciidoctor</groupId>
+ <artifactId>asciidoctor-maven-plugin</artifactId>
+ <version>2.2.1</version>
+ <configuration>
+ <attributes>
+ <source-highlighter>coderay</source-highlighter>
+ <imagesdir>./images</imagesdir>
+ <toc>left</toc>
+ <icons>font</icons>
+ </attributes>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>