Generate a glossary document from code analysis :
-
the entry is the name of a class marked with a specific annotation
-
the definition is the javadoc of this class
- mojo
-
glossary
- annotation
-
the short name of annotation used to find glossary entries (default is
Glossary
) - format
-
the format of output document :
asciidoc
,html
(default ishtml
) - sources
-
the source folder to scan (default is
src/main/java
) - outputDirectory
-
the outpout directory (default is
target/generated-docs
)
Code
/**
A little pet with a pv and hp
*/
@Glossary
public class Pokemon {
...
}
Maven
<plugin>
<groupId>io.github.livingdocumentation</groupId>
<artifactId>livingdoc-maven-plugin</artifactId>
<version>${plugin.livingdoc-maven-plugin.version}</version>
<executions>
<execution>
<id>glossary</id>
<phase>generate-resources</phase>
<goals>
<goal>glossary</goal>
</goals>
</execution>
</executions>
</plugin>