You need to specify the "destdir" attribute of the "deploymentDescriptor" subtask to point it to the correct location.
-----Original Message----- From: Stefan Rademacher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 08:12 To: [email protected] Subject: Antw: RE: How can I create ejb-jar and ejb-client-jarwithmaven-ejb-plugin in Maven 2? 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]
