See http://wiki.codehaus.org/maven/CreatingEjbApplications for a complete sample.
> -----Original Message----- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Monday, March 15, 2004 2:34 PM > To: Maven Users List > Subject: Re: What does the XDoclet plugin expects? > > Could you send me an example of how you embedded your ant <ejbdoclet> > target with Maven? > > I've got the following Ant script (the problem here is that I would need > the > classpath that contains XDoclet): > > <!-- ****************************************************** --> > <!-- ********* Compile Test sources ******************** --> > <!-- ****************************************************** --> > <target name="ejbdoclet" > > <delete dir="${xdoclet.build.dir}" > failonerror="false" /> > <mkdir dir="${xdoclet.build.dir}" /> > <delete failonerror="false"> > <fileset dir="${metainf.dir}"> > <include name="ejb-jar.xml" /> > <include name="jboss.xml" /> > <include name="jbosscmp-jdbc.xml" /> > </fileset> > </delete> > <taskdef > name="ejbdoclet" > classname="xdoclet.modules.ejb.EjbDocletTask" > classpathref="run.classpath" > /> > > <tstamp> > <format property="TODAY" pattern="dd-MM-yy"/> > </tstamp> > > > > <!-- ENTITY --> > <ejbdoclet > destdir="${xdoclet.build.dir}" > excludedtags="@version,@author" > addedtags="@xdoclet-generated at ${TODAY}" > ejbspec="2.0" > mergeDir="${metainf.dir}" > > > <fileset dir="${src.prod.dir}"> > <include name="**/*EJB.java"/> > <include name="**/*Bean.java"/> > </fileset> > > <remoteinterface pattern="{0}"> > <packageSubstitution packages="ejbs" > substituteWith="interfaces"/> > > </remoteinterface> > > > <localinterface pattern="{0}Local"> > <packageSubstitution packages="ejbs" > substituteWith="interfaces"/> > > </localinterface> > > > <homeinterface pattern="{0}Home" > > <packageSubstitution packages="ejbs" > substituteWith="interfaces"/> > > </homeinterface> > > > <localhomeinterface> > <packageSubstitution packages="ejbs" > substituteWith="interfaces"/> > > </localhomeinterface> > > > <entitypk pattern="{0}Key" > > <packageSubstitution packages="entities" substituteWith="key"/> > <packageSubstitution packages="sessions" substituteWith="key"/> > </entitypk> > > <valueobject pattern="{0}"> > <packageSubstitution packages="ejbs" > substituteWith="valueobject"/> > > </valueobject> > > <entitycmp/> > > <deploymentdescriptor destdir="${metainf.dir}"/> > <jboss version="3.2" > destdir="${metainf.dir}" > > /> > </ejbdoclet> > > Thanks, > > Marco > ----- Original Message ----- > From: "Kevin Hagel" <[EMAIL PROTECTED]> > To: "Maven Users List" <[EMAIL PROTECTED]> > Sent: Monday, March 15, 2004 7:36 PM > Subject: Re: What does the XDoclet plugin expects? > > > > maven can often be considered an Ant wrapper, I've found it much easier > > to embed "ant" script rather than "maven" script to deal with xdoclet. > > xdoclet's plugin methods for assigning values is awkward and > impenetrable. > > Look in your repository for the expanded xdoclet plugins, look in the > > plugin.properties file, you'll see the defaults being set. Then look in > > the plugin.jelly for how they're being used. be careful, this file is > > some 11,000 lines of code! > > > > Marco Tedone wrote: > > > > >Hi, I'm reading the documentation on the XDoclet website about the > Maven > > >plugin. However, I don't know what the "xdoclet:ejbdoclet" goal expects > in > > >the maven.xml file. I've got a folder /src under which java, webapp, > etc. > > >are stored. When I point my cursor to /src and type "maven > > >xdoclet:ejbdoclet" nothing happens. > > > > > >I had an Ant file with an ejbdoclet element defined in it. I specified > all > > >the patterns in there, and it was working fine. I guess the xdoclet > Maven > > >plugin avoids us from specifying an ejbdoclet target in our maven.xml, > and > > >the use of the properties should drive how the application applies the > > >transformation patterns. > > > > > >Could anyone please initiate me on this? > > > > > >Thanks, > > > > > >Marco > > > > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
