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...@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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to