I got it halfway working. I changed my plugin settings to look like
this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<configuration>
<!--
<outputDirectory>${basedir}/target/apidocs/internal/</outputDirectory>--
>
<reportOutputDirectory>${basedir}/target/docs/internal/</reportOutputDir
ectory>
<show>private</show>
<nohelp>true</nohelp>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<configuration>
<!--
<outputDirectory>${basedir}/target/apidocs/external/</outputDirectory>--
>
<reportOutputDirectory>${basedir}/target/docs/external/</reportOutputDir
ectory>
<show>public</show>
<nohelp>false</nohelp>
</configuration>
</plugin>
Now it is generating 1 set of javadoc for the second instance of my
plugin, but nothing for the first instance. This leads me to the
question, can you have multiple instances of a plugin in the same
pom.xml?
Thanks,
Chris
-----Original Message-----
From: users-return-112178-meeusen.christopher=mayo....@maven.apache.org
[mailto:[email protected]
g] On Behalf Of Meeusen, Christopher W.
Sent: Monday, June 21, 2010 1:24 PM
To: Maven Users List
Subject: maven-javadoc-plugin
I'm trying to modify my pom.xml so that it creates two different
versions of javadoc for my 1 project. I want an internal version (has
everything in it ) and an external version for the same project (only
public modifier visible).
I've spent some time reading through the instructions here:
http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
but whenever I run a javadoc:javadoc it generates 1 version of the
javadoc in the default location ../apidocs.
Here is how this plugin is configured in my pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<configuration>
<outputDirectory>${basedir}/target/apidocs/internal/</outputDirectory>
<show>private</show>
<nohelp>true</nohelp>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<configuration>
<outputDirectory>${basedir}/target/apidocs/external/</outputDirectory>
<show>public</show>
<nohelp>false</nohelp>
</configuration>
</plugin>
I'm not getting an error in the javadoc:javadoc run, and it generates
the javadoc in the default location instead of where I specify in the
outputDirectory tag. Am I missing something?
Thanks,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]