Ondra Žižka
Ondra Žižka

Reputation: 46806

Java: How to add JDK classes (e.g. javax.*) into custom JavaDoc indexes?

I am creating an aggregated Javadoc for a big project. It's a Maven project and I am using Maven Javadoc plugin 2.8.1.

I'd like to have javax.* classes in the indexes (i.e. left frames and the "all classes" index). But even if I add these to @packages, they are only linked, not included.

Is there a way to include JDK classes in the generaged Javadoc?

Upvotes: 1

Views: 150

Answers (1)

Ryan Stewart
Ryan Stewart

Reputation: 128849

Your best bet is probably to include them in the sourcePath when you run the javadoc plugin. That means you'll have to have the javax.* source files available somewhere that maven can read them.

Note: it will take forever. That's one reason we tend to prefer linking to the existing ones.

Upvotes: 1

Related Questions