Just putting my two cents - I am using the xdoclet plugin now, and I think it's great. My projects are all built using maven, no ant scripts. Just need to look for the appropiate use of ejbdoclet and webdoclet tags within maven; which is for the most part the same property-value pairs as in ant.
As for struts-config, try this within webdoclet: ---code--- <strutsconfigxml destdir="generated/webapp/WEB-INF" mergedir="src/merge" version="1.1"/> ---end code--- Of course, need to adjust for your environment, but this works for me. -D -----Original Message----- From: Colin Sampaleanu [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 12:19 PM To: Maven Users List Subject: Re: maven xdoclet The maven xdoclet plugin is huge because it is actually generated (as part of the xdoclet build). I personally find it generally useless. For anything more than the simpler cases, it is easier and cleaner to have 'ant-style' xdoclet definitions in maven.xml exactly as you would have used in an ant build project. Having to use flat properties in build.properties can get a lot more verbose and error prone than a clean hierarchical xml definition in maven.xml. On top of that, there were some bugs (upper vs. lowercase property names, which don't matter in xml files but do matter for properties), and some properties which were wrong. I believe most of them are fixed by now in xdoclet CVS but at a minimum you would have to rebuild xdoclet 1.2post-beta3. You can search the archives for this mailing list for some messages from me showing how you would use xdoclet in maven.xml. khote wrote: >I'm insufficiently familiar with xdoclet, I'm looking for a "hook" to get >myself into it. > >in fact I know maven better than I know ant ... have become somewhat >familiar with the jelly scripting from looking at the plugin.jelly in the >plugins. The xdoclet plugin is huge compared to all the others, approx >11,000 lines of code. > >I was hoping that a good way to do it would be to use webdoclet to help me >generate a struts-config, this would show me how to set things up in >maven.xml and build/project.properties, which preGoal and/or postGoal events >I should program to, when and where, that kind of thing. > >I'm using ant copy-filters comfortably in building a war subproject whose >artifact is a dependency in an ear subproject, it appears to me that xdoclet >in this frame of mind is a similar thing, only a great deal smarter. I have >jmx working for me comfortably, getting this WAR deployed, scm, scp, cvs .. >all that stuff. > >What should I put in an Action I'm writing, for example, to have webdoclet >write information to the struts-config? How do I set this up in maven.xml? >Are there any webdoclet or other *doclet processes which can help me with >struts tiles? > >I'm convinced that I want to use xdoclet when I start implementing the "uber >project" with ejbs and jboss and jmx and all that ... deployment xmls up the >wazoo so to speak. > >----- Original Message ----- >From: "tek1" <[EMAIL PROTECTED]> >To: "Maven Users List" <[EMAIL PROTECTED]> >Sent: Sunday, September 21, 2003 1:28 AM >Subject: Re: maven xdoclet > > > > >>Did you look at this yet? >> >>http://xdoclet.sourceforge.net/maven-plugin.html >> >>If you're familiar with the basics of XDoclet and Maven, the above offers >> >> >a > > >>good explanation of integrating the two. >> >>After reading and trying the above, let us know if you have any questions. >> >> >> >> >>At 22:44 03/09/20 -0700, you wrote: >> >> >>>Looking for online tutorials covering maven and xdoclet, webdoclet, that >>>kind of thing. >>> >>>Anybody know of any? >>> >>>K >>> >>> >>> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]