RE: M2 EJB plugin

2006-09-27 Thread Daryl.Dwyer
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: 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:

 

  ERS Platform - Model Layer

  

  ersplatform-model

  com.social_labs.ers.platform

  

  ejb

 

.

 







  maven-ejb-plugin

  org.apache.maven.plugins

  

3.0

  





  

 

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]



Re: M2 EJB plugin

2006-09-27 Thread Marco Mistroni

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