This is a Maven Archetype to create a new maven project or module covering a projects architecture documentation.
The archetype will create a ready to go module containing the arc42 template
documents and the module pom.xml
creating an html
and pdf
output.
mvn archetype:generate \ -DarchetypeGroupId=com.kiwigrid \ -DarchetypeArtifactId=arc42-archetype-en \ -DarchetypeVersion=1.0.0 \ -DgroupId=org.sample \ -DartifactId=documentation
The generated module will look like
./documentation |-- pom.xml '-- src '-- main '-- doc '-- arc42 '-- 01 '-- ...adoc ... '-- 12 '-- ...adoc '-- images '-- logo.png '-- arc42.adoc '-- config.adoc
-
arc42.adoc
the main document to render. -
config.adoc
document settings defaults -
logo.png
the default document logo -
01
…12
the arc42 template chapter from the "Golden Master" (github)-
the chapters are organized as sub folder instead on file name prefixes only
-
-
images
the common document images -
pom.xml
covers the build settings with the major settings
<project ... > ... <name>your project title</name> ... <build> <plugins> ... <!--(1)--> <plugin> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> ... <configuration> ... <attributes> ... <document-name>your documentation title</document-name> <!--(2)--> <document-logo>logo.png</document-logo> <!--(3)--> </attributes> </configuration> <executions> <execution> <id>asciidoc-to-html</id> ... </execution> <execution> <id>asciidoc-to-pdf</id> ... </execution> </executions> </plugin> </plugins> </build> </project>
-
copies the image resources
-
the documentation title is initialized with the project name
-
the documentation header page logo