Dita Maven Plugin
This plugin downloads a dita distribution under the hood and executes some processors (see Dita-OT) on your project.
Sources are assumed being in src/main/dita
and by default it includes all ditamap
files. This is indeed configurable.
Goals
There are two goal - if we exclude the help - provided by this plugin:
-
dita:render
to render the directory -
dita:http
to start a small HTTP server and expose the rendered folder through HTTP. In this mode you can enterreload
(orr
) + ENTER to force a new rendering roundtrip.
Configuration:
<plugin>
<groupId>com.github.rmannibucau</groupId>
<artifactId>dita-maven-plugin</artifactId>
<version>${plugin.version}</version>
<executions>
<execution>
<id>dita-rendering</id>
<phase>process-resources</phase>
<goals>
<goal>render</goal>
</goals>
</execution>
</executions>
</plugin>
Name |
Description |
Default |
extensions |
list of extensions of files to include in the rendering |
|
includes |
list of filenames to include in the rendering. If set, |
- |
outputDir |
where to render files |
|
ditaTempDir |
where to render files |
|
transtype |
rendering type |
|
cleanOnFailure, createDebugLog |
|
true, false |
parallelism |
Number of threads to process the files to render, a thread is used by file (map). |
|
mode |
rendering mode ( |
|
ditaVersion |
distribution version |
|
ditaDownloadUrl |
where to download the distriution from if not found locally |
github releases |
cacheDistribution |
if the distribution is downloaded, should it be cached locally in your m2 repository |
|