I'm new to maven and xdoclet and I have a confusion in organizing my project. I need to run ejbdoclet and hibernatedoclet on my source, then compile. After this, I need to create 2 jar files, each of them containing some files from the previous steps' output.
By default, one jar is created as the artifact. This one contains ALL the class files, but this isnt what I want (I need only some of them to be present in the jar). The rest of the class files (with some overlap) should go into another jar.
I'm not sure how to exclude .class files from the artifact coz they seem to be happening by default. Also, I tried creating a new project for the 2nd jar, extending the previous. Now, I need some way to copy the class files I need from the parent and jar them up. I used "jar:jar" as the default goal for this new project, extended the previous project, added the parent's classes as resources. But this new one seems to be running ejbdoclet, trying to create xml files (all this is being done only in the previous proj), throwing a lot of errors.
Please help me by giving a proper way to accomplish this task.