The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: Creating javadoc for JAXB generated classes

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0
craigmcc

Posts: 1
Creating javadoc for JAXB generated classes
Posted: Aug 7, 2008 8:34 PM
 
  Click to reply to this thread Reply

I'm using the maven-jaxb-plugin in my Maven2 based project to generate a bunch of Java classes corresponding to my XMLSchema that is shared between client and server applications. The codegen part works great ... as per the instructions for the plugin, the JAXB source generator is indeed invoked at the right time, and the generated classes are compiled along with the manually created sources in the usual place (src/main/java). However, the javadoc plugin only wants to look at the classes in the default location. That's bad for me, because I'm decorating the schema with appropriate javadoc comments (the generated model classes are part of the public API for my service).

How can I use this plugin, but also convince the javadoc plugin to generate javadocs for both the default-located classes and the generated classes. I've tried lots of things (such as the <sourcepath> configuration directive for the javadoc plugin), but nothing has worked.

Craig




 XML java.net RSS