Which version of the plugin? I think you have to use 2.1 which I believe is still a SNAPSHOT.
-----Original Message----- From: alonso [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 4:23 AM To: [email protected] Subject: M2 EJB plugin Hi there, I'm trying to package an EJB 3.0 module using the maven-ejb-plugin for Maven 2.x. The problem is that when the plugin tries to package the jar archive, it fails because it can't find the META-INF/ejb-jar.xml file. The point is that I'm using EJB 3.0 and I don't need that file. Here is an extract from my pom.xml file: <name>ERS Platform - Model Layer</name> <artifactId>ersplatform-model</artifactId> <groupId>com.social_labs.ers.platform</groupId> <packaging>ejb</packaging> . <build> <plugins> <plugin> <artifactId>maven-ejb-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId> <configuration> <ejbVersion>3.0</ejbVersion> </configuration> </plugin> </plugins> </build> The mvn's output when I run "mvn install" is as follows: [INFO] [ejb:ejb] [INFO] Building ejb ersplatform-model-1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling EJB Embedded error: C:\fuentes\projects\ERS\platform\model\target\classes\META-INF\e jb-jar.xml isn't a file. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9 seconds [INFO] Finished at: Wed Sep 27 10:50:42 CEST 2006 [INFO] Final Memory: 5M/11M [INFO] ------------------------------------------------------------------------ Does anyone know where is the problem? Regards, Alonso --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
