Newbie here -- sorry -- having some basic conceptual difficulties with the javadoc plugin.

How do I get the javadoc plugin to run when I execute mvn install? It runs ok when I do mvn javadoc:javadoc, but I want to regenerate everything when I do an install.

Also -- how do I include/exclude individual classes from Javadoc? The excludePackageNames works ok, but it's not specific enough.

One more -- how do I get it to delete previous Javadocs from the output directory first? If I delete a class, the old file is still left there.

I can do all this stuff in Ant just fine. There's got to be the equivalent in Maven.

Here's my current code:

<reporting>
  <outputDirectory>target/site</outputDirectory>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-javadoc-plugin</artifactId>
      <configuration>
        <excludePackageNames>*mypackage*</excludePackageNames>
      </configuration>
    </plugin>
  </plugins>
</reporting>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to