Eclipse: How to connect JavaDoc to multiple JAR files?

I am using Eclipse 3.4.1.

I have an external library consisting of a bunch of JAR files and some HTML JavaDoc. I know that I can attach HTML JavaDoc to separate JARs by going to their Properties page, locating the JavaDoc and setting there.

But it would be painful to do this for each individual JAR. Can all this be done right away? The location of the JavaDoc is the same for everyone.

+4
source share
2 answers

Not a highly recommended solution, but you can install it for one of them, and then manually edit the .classpath project .classpath , copy the corresponding part and paste it into other elements. Not much easier than installing it for each separately.

Also, if you have access to the source files, you can use them instead of the Jar files that Javadocs will provide.

+2
source

I have a question related to how to efficiently attach JavaDocs to dozens of JAR files from our internal projects, which are located in the Maven repository. The solution was to use the Maven JavaDoc Plugin to automatically create and install JavaDoc and Source artifacts for each project. Then in Eclipse, I could import all these resources in one step by right-clicking on the project-> Maven-> Download JavaDoc. Then Shift-F2 does its magic.

This process only works for dependencies that are not in my Eclipse workspace. For each of my Eclipse projects, I still had to manually configure the JavaDoc location, but at least there are fewer.

Here is a related topic: How to bind javadocs to dependencies in eclipse Maven plugin when javadoc is not bound to dependency

0
source

All Articles