Here's a patch to optionally add the output directory to the compileSourceRoot. It looks in thams for the plugin for a "destdir" param, else uses the default output directory.
To use:
.....
<configs>
<config>
<plugin>org.xdoclet.plugin.qtags.impl
.QTagImplPlugin</plugin>
<params>
<destdir>${basedir}/target/src/main/java</destdir>
</params>
<includes><include>**/*.java</include></includes>
<addSourceRoot>true</addSourceRoot>
</config>
<config>
<plugin>org.xdoclet.plugin.qtags.impl.QTagLibraryPlugin</plugin>
<params>
<destdir>${basedir}/target/src/main/java</destdir>
<packagereplace>org.xdoclet.plugin.keel.qtags</packagereplace>
</params>
<includes><include>**/*.java</include></includes>
<addSourceRoot>true</addSourceRoot>
</config>
....
I had to change the version of the jelly tags JAR in the POM. Also, in the xdoclet2 POM, the qtags JAR version is not dwnloadable (POM does not exist), so I had to change that to qdox-1.6-SNAPSHOT.
I am also attaching a parent POM to go in the xdoclet-plugins base directory. I still have no clue why the xdoclet-plugin-plugin will not run from maven2-xdoclet2-plugin, but works fine from maven-antrun-plugin. Also, the "namespace" property needs to be provided as a property, doesn't seem to work, I have posted a message on the Maven list (for now hardcoded "yournamespace"). Finally, the plugin dependencies seem to need to be duplicated in the parent POM as well as the module POM. Anyway, a starting point...but needs more work.
<params>
<destdir>${basedir}/target/src/main/java</destdir>
</params>
<includes><include>**/*.java</include></includes>
<addSourceRoot>true</addSourceRoot>
</config>
<config>
<plugin>org.xdoclet.plugin.qtags.impl.QTagLibraryPlugin</plugin>
<params>
<destdir>${basedir}/target/src/main/java</destdir>
<packagereplace>org.xdoclet.plugin.keel.qtags</packagereplace>
</params>
<includes><include>**/*.java</include></includes>
<addSourceRoot>true</addSourceRoot>
</config>
....
I had to change the version of the jelly tags JAR in the POM. Also, in the xdoclet2 POM, the qtags JAR version is not dwnloadable (POM does not exist), so I had to change that to qdox-1.6-SNAPSHOT.
I am also attaching a parent POM to go in the xdoclet-plugins base directory. I still have no clue why the xdoclet-plugin-plugin will not run from maven2-xdoclet2-plugin, but works fine from maven-antrun-plugin. Also, the "namespace" property needs to be provided as a property, doesn't seem to work, I have posted a message on the Maven list (for now hardcoded "yournamespace"). Finally, the plugin dependencies seem to need to be duplicated in the parent POM as well as the module POM. Anyway, a starting point...but needs more work.
Shash
(I'll attach the files separately, my first attempt failed because the post size was > 30K)
