Reputation: 53
We have created a new artifact to generate javadoc. We have 40 artifacts defined as dependencies. Task is to create javadoc.jar and html pages for the 40 dependency artifacts.
Whats the best approach to achieve this in maven?
Upvotes: 2
Views: 327
Reputation: 18649
A slightly more automated approach than the answer above:
So to make this work you'll have to do all of this:
<classifier>sources</classifier>
to all your dependenciesdependency:unpack-dependencies
Upvotes: 1
Reputation: 298818
This is very unusual. Javadoc works on sources, not compiled classes, whereas maven dependencies reference classes, not sources.
So to make this work you'll have to do all of this:
<classifier>sources</classifier>
to all your dependenciesdependency:unpack-dependencies
On re-reading the question: I'm assuming that you want to create combined docs of all dependencies. If not, you'll need 40 separate executions each of the javadoc, assembly and buildhelper plugins. Good luck with that.
Upvotes: 1