JSeqUnit provides a taglet to include sequence diagrams in JavaDoc documentation. As it depends on tools.jar of the JDK, it is necessary to set the JAVA_HOME variable to your JDK directory to run this taglet.
To use the taglet it is necessary to pass the JavaDoc executable the following parameters:
Other parameters of JavaDoc or the standard doclet can be used together with JSeqUnit (see JavaDoc documentation) - e.g.
When the following command is executed
javadoc -taglet net.sf.jsequnit.javadoc.SequenceTaglet -tagletpath target/classes;target/test-classes;target/jsequnit-2.0.jar;target/lib/junit-4.10.jar;target/lib/jseq-0.6.jar;target/lib/sdedit-light-3.1.jar -sourcepath src/site/example/main -d target/test-dir -subpackages net.sf.jsequnit.example
the JavaDoc command runs successfully.
Add the maven-javadoc-plugin together with the taglet configuration to run JSeqUnit with maven.
Please note that you must compile your project (the classes and the test classes) first, before running the maven-javadoc-plugin
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>generate-javadoc</id> <phase>site</phase> <goals> <goal>javadoc</goal> </goals> <configuration> <taglet>net.sf.jsequnit.javadoc.SequenceTaglet</taglet> <tagletArtifact> <groupId>net.sf.jsequnit</groupId> <artifactId>jsequnit</artifactId> <version>2.0</version> </tagletArtifact> <tagletPath>${project.build.outputDirectory};${project.build.testOutputDirectory}</docletPath> </configuration> </execution> </executions> </plugin>