To let the IDE automatically generate UML diagrams into your NetBeans module's Javadoc, do this:
<target name="netbeans-extra" description="Generates UML-Javadoc">
<property file="nbproject/project.properties"/>
<mkdir dir="${dist.javadoc.dir}"/>
<javadoc source="${javac.source}" packagenames="org.\*"
destdir="${dist.javadoc.dir}"
private="true">
<classpath>
<path path="${javac.classpath}"/>
<path path="${module.classpath}"/>
</classpath>
<fileset dir="${src.dir}" excludes="${excludes}"
includes="${includes}">
<filename name="\*\*/\*.java"/>
</fileset>
<doclet name="org.umlgraph.doclet.UmlGraphDoc"
path="${file.reference.UmlGraph.jar}">
<param name="-attributes" />
<param name="-operations" />
<param name="-qualify" />
<param name="-types" />
<param name="-visibility" />
</doclet>
</javadoc>
</target>
Now build the module and then look in the Files window, within dist/javadoc and you should find your HTML files have UML diagrams.
It works great if the module is stand alone. If not it complains about classes not found (from the other modules). Any idea how to fix this?