Search code examples
javaeclipsejavadoc

How do I get Eclipse to show the javadoc from my classes without including sources in the jar


I'm building jars where I want to package them without sources but I would like the javadoc to come up for developers in eclipse.


Solution

  • What is your build process? The Maven release process actually generates 3 jars, one containing the compiled classes, one with sources and one with javadocs. You should be able to customize the POM to prevent distribution of the source jar, and anyone using Maven to manage dependencies will automatically get the javadoc if they declare a dependency on your jar (and have javadoc downloading turned on in the eclipse maven plugin).