简体   繁体   中英

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 (ie 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM