1 year ago

#134363

test-img

E.S.

maven-javadoc-plugin not showing private methods

I have a multi-module maven project and I am wanting to aggregate a javadoc that combines all the methods (public and private) into a whole javadoc. It seems simple, I am following the instructions here: https://maven.apache.org/plugins/maven-javadoc-plugin/examples/aggregate.html

And I am combining that with the configuration/show/private set up:

...
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.3.1</version>
                <reportSets>
                    <reportSet>
                        <id>aggregate</id>
                        <reports>
                            <report>aggregate</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <show>private</show>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

And then I run mvn clean javadoc:aggregate javadoc:aggregate-jar

But, the resulting javadoc only contains my public methods.

I am trying to keep things as simple as possible. I have specified <show>private</show> and it isn't working. I highly doubt this is a bug because something like this would have been found long before v3.x however I think the instructions for how to properly show private in multi-module maven set ups may not be full?

I have tried many variations, putting the configuration instructions in different areas or putting the maven-javadoc-plugin declaration in the build section, reporting section, etc. Nothing is producing my private javadoc methods.

java

maven

javadoc

maven-javadoc-plugin

0 Answers

Your Answer

Accepted video resources