You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tim Wu T <ti...@ericsson.com> on 2012/03/13 03:26:15 UTC
Maven 2 can not use Alternate Doclets
Hi there,
I am trying to use maven javadoc plugin generate customized java-doc, I found Maven 3 works well, it can identify our defined doclet, however, maven 2 do not recognized it.
The related plugin info can be found as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<doclet>xx.MyDoclet</doclet>
<docletArtifacts>
<docletArtifact>
<groupId>xx.mydoc.generator</groupId>
<artifactId>generator</artifactId>
<version>0.1-SNAPSHOT</version>
</docletArtifact>
</docletArtifacts>
<destDir>${project.basedir}/docgen</destDir>
<additionalparam>-outputfile "my.html"</additionalparam>
<useStandardDocletOptions>true</useStandardDocletOptions>
<subpackages>aa.bb.cc.test</subpackages>
</configuration>
</plugin>
Do you know why? Great thanks for your help.
Br,
Tim
RE: Maven 2 can not use Alternate Doclets
Posted by Tim Wu T <ti...@ericsson.com>.
I had found the reason why it not runs. I add the following info in the pom, it generate the docs:
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
I just curious, if I do not add this, what will happen?
Br,
Tim
-----Original Message-----
From: Tim Wu T [mailto:tim.t.wu@ericsson.com]
Sent: Tuesday, March 13, 2012 10:26 AM
To: Maven Users List
Subject: Maven 2 can not use Alternate Doclets
Hi there,
I am trying to use maven javadoc plugin generate customized java-doc, I found Maven 3 works well, it can identify our defined doclet, however, maven 2 do not recognized it.
The related plugin info can be found as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<doclet>xx.MyDoclet</doclet>
<docletArtifacts>
<docletArtifact>
<groupId>xx.mydoc.generator</groupId>
<artifactId>generator</artifactId>
<version>0.1-SNAPSHOT</version>
</docletArtifact>
</docletArtifacts>
<destDir>${project.basedir}/docgen</destDir>
<additionalparam>-outputfile "my.html"</additionalparam>
<useStandardDocletOptions>true</useStandardDocletOptions>
<subpackages>aa.bb.cc.test</subpackages>
</configuration>
</plugin>
Do you know why? Great thanks for your help.
Br,
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org