History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XDOCLET-38
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Grégory Joseph
Reporter: Espen Amble Kolstad
Votes: 3
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
XDoclet 2

Create a maven2 plugin

Created: 14/Nov/05 03:50 PM   Updated: 05/Jul/06 07:13 PM
Component/s: Maven2 plugin
Affects Version/s: None
Fix Version/s: 2.0.5

Time Tracking:
Not Specified

File Attachments: 1. Text File maven2-plugin-patch.txt (5 kb)
2. GZip Archive maven2-xdoclet2-plugin.tar.gz (3 kb)
3. XML File pom.xml (6 kb)
4. XML File xdoclet-plugin-example-pom.xml (2 kb)
5. XML File xdoclet-plugins-pom.xml (11 kb)

Environment: Any


 Description  « Hide
The available xdoclet plugin for maven2 uses xdoclet 1.2.3
It would be great to have an xdoclet2 plugin for maven2, to be able to take advantage of the new features of xdoclet2 for maven2 users.

I've attached a sample implementation + a pom-file for xdoclet-2.0.3
I had this working, but I'had to make some adjustments to poms for dependencies.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Grégory Joseph - 08/Dec/05 05:54 PM
Hi,

Could you please provide a sample of how to configure your plugin, I'm pretty much lost


Grégory Joseph - 22/Dec/05 07:54 PM
Started to work on this, and deployed a first draft version.
Draft docs available at: http://docs.codehaus.org/display/XDOCLET/Maven2+plugin
please comment

Shash Chatterjee - 01/Jan/06 08:37 AM
Here's a patch (maven-xdoclet-patch.txt) to optionally add the output directory to the compileSourceRoot. It looks in the configuration for the plugin for a "destdir" param, else uses the default output directory.

The patch also includes a fix to report xdoclet2 plugin exceptions properly, before the patch Maven2/Plexus was wrapping the exceptions in a Plexus-specific exception, which hid the root cause.

I am also attaching a parent POM for xdoclet-plugins, and a example POM that can be used as a template for all the xdoclet2 plugins.

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>
</configs>
....


Espen Amble Kolstad - 24/Feb/06 03:58 AM
The jelly-dependencies should all be set to 1.0

The current versions doesn't work properly for the HibernateConfigPlugin see
http://jira.codehaus.org/browse/XDP-167

I tried with 1.0 for all jelly-deps, and that solved the problem

Espen


Grégory Joseph - 05/Jul/06 07:13 PM
Hmm, this can actually be closed.
The plugin works pretty well for basic stuff.
Improvements needed for
  • being able to build plugins-qtags
  • using merge features