Tagged: javadoc

how to exclude generated jpa metamodels from being javadoc-ed


<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <configuration>
      <sourceFileExcludes>
        <exclude>**/**_.java</exclude>
      </sourceFileExcludes>
    </configuration>
  </plugin>
</plugins>
Advertisements

adding umlgraph in javadoc


<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-javadoc-plugin</artifactId>
  <configuration>
    <additionalparam>-all -constructors -collapsible -visibility</additionalparam>
    <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
    <docletArtifact>
      <groupId>org.umlgraph</groupId>
      <artifactId>umlgraph</artifactId>
      <version>5.6</version>
    </docletArtifact>
    <show>private</show>
    <useStandardDocletOptions>false</useStandardDocletOptions>
  </configuration>
</plugin>

google-code-prettify in javadoc


<link rel="stylesheet" type="text/css"
      href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css"> 
<script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"
        type="text/javascript"></script>
<script language="JavaScript">window.onload=function(){windowTitle();prettyPrint();}</script>
<pre class="prettyprint"><code class="language-java">
public static void main(String[] args) {}
</code></pre>

You can hold your own copies of those linked sources for faster loading.
Some browsers won’t render as expected.