Greg is already working on M2 XD2 plugin, his work is
checked into xdoclet2 repository.
regards,
Yes, I've talked to Greg, and his plugin is the first step in achieving
what I'm suggesting here. However archetypes are not a plug-in.
They are the directory/file structure that constitute a project base,
generally based on good practice. So if you guys have a maven2 project
with the starting files that illustrate where should the annotations go,
with the project's pom, that's (almost) all that is needed to make an
archetype.
From that point on, once the archetype is installed all I need to do is
mvn archetype:create ... and maven would generate a xd2 m2 project for you.
http://maven.apache.org/guides/introduction/introduction-to-archetypes.html
http://maven.apache.org/guides/mini/guide-creating-archetypes.html
Greg asked me to raise a jira on the issue so it's there, please upload
your contributions there.
http://jira.codehaus.org/browse/XDOCLET-41