James
The ejb plugin does not know about XDoclet. So you
need to copy the XDoclet-generated files where it
expects them. I have this in my maven.xml for the ejb
module:
<preGoal name="ejb:ejb">
<ant:echo>ejb:ejb pregoal is
entering</ant:echo>
<ant:copy todir="${maven.ejb.descriptordir}">
<ant:fileset
dir="${maven.xdoclet.ejbdoclet.deploymentdescriptor.0.destDir}"
/>
</ant:copy>
</preGoal>
For the web module I have this:
<preGoal name="war:war">
<!-- maven.build.dest is the location where
resources are put -->
<ant:copy
todir="${maven.war.webapp.dir}/WEB-INF">
<ant:fileset
dir="${maven.xdoclet.webdoclet.destDir}" />
</ant:copy>
</preGoal>
I hope this helps.
But I am unable to generate JBoss descriptors. Do you
know why? CAn you show me some marked up classes?
Janos
Hi,
I'm very new to maven, and an trying to get it to
produce an ejb file.
So far I have been following the howto at
http://wiki.codehaus.org/maven/CreatingEjbApplications
It works (almost) fine. However, it is refusing to
package up any
ejb-jar.xml, and jboss.xml files with the bean
classes.
I'm using maven-ejb-plugin-1.5. Looking through the
jelly code, I can't
see that it even refers to any xml files.... (not that
I really know
much
about these though).
Much appreciate any help!
Thanks
James
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]