Hello Aramirez, I already received a reply on my question. The given solution was to specify the "destDir" attribute of "deploymentdescriptor". This works fine, I just thought there might be a better solution (e.g. generating the deployment descriptors to generated-sources/xdoclet and moving them during compile, along with the generation of the class files).
But there doesn't seem to be a need for a jira issue. Thanks, Stefan >>> [EMAIL PROTECTED] 06.01.2006 09:21:10 >>> Hi, Currently, I dont think that we can configure the deployment descriptor path, Please file a jira issue if not yet existing. Thanks, -allan Stefan Rademacher wrote: >Hello, > >thank you. I already had this code in my POM but the packaging was set >to "jar". Now I changed it to "ejb" and it works fine. Now there is one >more problem. The maven-ejb-plugin doesn't find the deployment >descriptors. It searches in "target/classes/META-INF" but the files are >generated by "xdoclet-maven-plugin" to >"target/generated-sources/xdoclet/META-INF". > >What is the right way to make the maven-ejb-plugin find the deployment >descriptors? > >Thanks for your help! >Bye, >Stefan > > > > > >>>>[EMAIL PROTECTED] 05.01.2006 12:24:48 >>> >>>> >>>> >To generate both jars, you need to tell the plugin that you want both >of >them as follows: > ><project> > ... > <build> > ... > <plugins> > ... > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-ejb-plugin</artifactId> > <configuration> > <generateClient>true</generateClient> > </configuration> > </plugin> > ... > <plugins> > ... > </build> > ... ></project> > >-----Original Message----- >From: Stefan Rademacher [mailto:[EMAIL PROTECTED] >Sent: Thursday, January 05, 2006 03:14 >To: <Maven Users List >Subject: How can I create ejb-jar and ejb-client-jar >withmaven-ejb-plugin in Maven 2? > > >Hello, > >Could anyone provide me with a working example of a project, which >uses >the maven-ejb-plugin to generate jar files for the ejb-module and for >the ejb-client? >(I use the xdoclet-maven-plugin to generate the ejb artifacts to the >folder 'targets/generated-sources/xdoclet') > >I'm quite new to maven and don't understand the usage example given on >plugins' webpage >(http://maven.apache.org/plugins/maven-ejb-plugin/howto.html). When I >integrate that XML to my POM, nothing happens. Only calling 'mvn >ejb:ejb' manually works, as long as I copy the META-INF-folder from >'target/generated-sources/xdoclet' to 'target/classes' first. How can >I >integrate this into my build process (mvn package: ejb-jar and >ejb-client-jar are generated. mvn install: ejb-jar and ejb-client-jar >are copied to my local repository...)? > >Thanks a lot in advance! >Regards, >Stefan > >--------------------------------------------------------------------- >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]
