1

I cannot find any example of maven pom where the javadoc plugin is used to generate documentation for private fields and methods too. I tried this without results:

<plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
                <execution>
                    <phase>install</phase>
                    <goals>
                        <goal>copy-dependencies</goal>
                    </goals>
                    <configuration>
                        <outputDirectory>${basedir}/target/lib</outputDirectory>
                        <show>private</show>
                        <noHelp>true</noHelp>                           
                    </configuration>
                </execution>
            </executions>
        </plugin>

Anyone could help me?

Thanks.

Gijs Overvliet
  • 2,643
  • 3
  • 28
  • 35
Michele Bortolato
  • 707
  • 2
  • 11
  • 27

1 Answers1

4

You are not using the correct plugin. You are using maven-dependency-plugin while you should use maven-javadoc-plugin

Guillaume Polet
  • 47,259
  • 4
  • 83
  • 117