I had a similar requirement. What I did was use Ant script in the maven file, it will find all TLD definition files within the projects that I need, and will loop over each file and do something.
I needed 2 exits. HTML and DITA (technical documentation format, successor to DOCBOOK).
- For each TLD, TLDDoc will be called, and the same will be done in the output directory.
- An additional script executed an XSLT stylesheet that converts the TLD xml domain to DITA. From DITA, I use the "DITA Open Toolkit" to output to PDF and another type of HTML.
With maven, you need to learn a little Ant script and know how to call java classes (TLDDOC) or the XSLT engine.
It was really cool and quite flexible.
source
share