Ive just set up a pom using the maven-javadoc-plugin and want to include the configuration option "showPrivate".

If I simply add the tag like this,

          <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-javadoc-plugin</artifactId>
               <configuration>
                   <showPrivate>true</showPrivate>
               </configuration>
           </plugin>

the build fails with an error, "Embedded error: Exit code: 1 - javadoc: More than one of -public, -private, -package, or -protected specified". So I checked the doco and it says that the default is showPackage is true. So If I now use:

           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-javadoc-plugin</artifactId>
               <configuration>
                   <showPackage>false</showPackage>
                   <showPrivate>true</showPrivate>
               </configuration>
           </plugin>

It works fine.

So this isnt a particularly tricky workaround but not very elegant. Just thought Id ask around before I submit it as a bug.



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

Reply via email to