You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by alonso <al...@social-labs.com> on 2006/09/27 11:22:39 UTC
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
Re: M2 EJB plugin
Posted by Marco Mistroni <mm...@gmail.com>.
hELLO,
found same error when i tried..
i m deploying on jboss4.0.4....
i made project as a jar project
that won't create ejb client though... beside that, with EJB3 using POJO i
m not exactly sure why would you need an ejb-client......
hth
marco
RE: M2 EJB plugin
Posted by Da...@tdameritrade.com.
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:alonso.dominguez@social-labs.com]
Sent: Wednesday, September 27, 2006 4:23 AM
To: users@maven.apache.org
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org