Creates Ardoq documentation from a custom Javadoc Doclet - ArdoqDoclet
Latest commit e9419ab Oct 9, 2014 @magnulf magnulf Merge branch 'master' of
Failed to load latest commit information.
src/main/java/com/ardoq Added the option to ignore methods, and fixed a lot of minor bugs. Oct 9, 2014
.gitignore Cleaned up imports, removed use of java.nio.file.Path Oct 2, 2014
pom.xml Added the option to ignore methods, and fixed a lot of minor bugs. Oct 9, 2014


The doclet that let's you automatically add all your JavaDoc and the structure of your Java Application to Ardoq. If you specify where we can find your classes, with -targetClasses ./target/classes - we will execute a JDepend analysis as well.

Use it by executing it as a standalone java-application or part of your maven build process.

If you provide a in your projects root (projectDir-argument), it will use that to describe your Workspace in ardoq.

It also supports markdown in /* javadoc comments... :-) */

This doclet will try to as many links and references as it can between methods, classes, interfaces etc, and create corresponding relationships for it as well. It will try to synchronize existing workspace based on name, and only add or remove packages/components/methods/references that has changed.

NB! This is an example plugin, that you can fork. It has been used successfully in-house.

Example result in Ardoq

Relationship view in Ardoq

The picture shows how all the relationships between methods, classes, interfaces and so forth are. Package-references are generated based on the JDepend analysis, and can be filtered in Ardoq. Relationships in ardoq-java-client

Process view

This picture shows all the found (publicly declared), references for the class SyncUtil. Relationships in ardoq-java-client



Parameter           | Description
-ardoqToken         | Your token for authenticating with Ardoq (or -ardoqUsername yourUserName / -ardoqPassword yourPass)
-ardoqHost          | Ardoq Server (default
-ardoqOrganization  | Your organization ID if you have one (default is ardoq = Personal)
-workspaceName      | The name of the workspace you wish to document in
-projectDir         | The project's root directory where we can find your
-targetClasses      | If you specify this folder where your compiled classes are, we will run JDepend analysis on your packages.
-sourceControl      | An URL to the location of your Java Source files, e.g.
-subpackages        | Which packages to include
-ignoreMethods      | For large projects, ignore the methods and just add them as documentation to the page
-cacheDirectory     | Which directory to use for caching of information, default is
-cleanCache         | Whether to clean the cache so one does not use old references. Useful in a maven build processes where the first module that everyone uses can clean the cache.
-d                  | The location of your libs e.g. (./target)
-sourcepath         | Java source path (e.g. ./src/main/java)
-exclude            | Which packages to ignore; e.g:
-connectionTimeout  | Number of seconds before connection times out (default 15s)
-readTimeout        | Number of seconds before read times out (default 300s)! Some have large workspaces.

Java command line

export docletLibs="$JAVA_HOME/lib/javafx-doclet.jar:$JAVA_HOME/lib/tools.jar:$M2_HOME/repository/com/ardoq/api/client/0.8.1/client-0.8.1.jar:$M2_HOME/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:$M2_HOMErepository/com/squareup/retrofit/retrofit/1.5.0/retrofit-1.5.0.jar:$M2_HOME/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:$M2_HOME/repository/jdepend/jdepend/2.9.1/jdepend-2.9.1.jar"
java -Dfile.encoding=UTF-8 -classpath $docletLibs com.ardoq.javadoc.ArdoqDoclet -ardoqToken 19a563c2083a48aa87e6928d269b8ab1 -ardoqHost http://localhost:8080 -workspaceName javadoc client -d ./target -targetClasses ./target/classes -sourcepath ./src/main/java -exclude -sourceControl -subpackages com.ardoq

Tags used

  • Import pacakages and classes are now also references, and can be filtered via the tags #ImportedClass and #ImportedPackage.
  • References to external java-projects are now tagged as #ExternalDependecy.
  • Objects that are return values from methods are now tagged as #ReturnValue.
  • #Uses just means that a method or a class uses something
  • #jdepend Reveals the packages and depencies found from JDepend
  • #parameter Means that the object is used as a parameter in a constructor or method

In your Maven pom.xml

Add the following to your Pom.


Add the following to your reporting section, which will generate new workspace per and project.version. It will look for the environment variable YOUR_ARDOQ_TOKEN to authenticate you.

        <!-- Excludes standard reports -->
                            <additionalparam>-ardoqToken ${env.YOUR_ARDOQ_TOKEN} -projectDir "${}/../" -targetClasses ${} -workspaceName "${}-${project.version}"</additionalparam>

Run mvn site to add your javadoc into ardoq, with JDepend analysis as well. :-)


Copyright © 2014 Ardoq AS

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.