Reputation: 13
I added JavaDoc content for my method. After the maven build, the JavaDoc contents are removed from the jar file. How to prevent removing the JavaDoc content from the class file during maven build?
Upvotes: 0
Views: 576
Reputation: 308031
That is by design. Class files do not contain JavaDoc. Therefore the normal jar
files distributed of a library don't contain JavaDoc either.
If you want to download the JavaDoc, either get the source jar file or download the JavaDoc manually.
In IDEs the common approach is to download source jars.
You can even make Maven produce a JavaDoc artifact in addition of your normal jar.
Upvotes: 2