Thank you Dion,

I solved my problem, also because I realized I had the <resources> elements defined 
only for the test, and not for the source. Maven now builds a jar file that contain 
also ejb-jar.xml and jboss.xml and it gets deployed correctly under Jboss. The only 
problem I've got is that the jar contains all the files, not only the ejbs. Because 
I've got two separate modules, war and ejb, I "duplicate" the classes. 

I suppose I could solve the problem by creating a ear, can't I?

Marco

----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: Marco Tedone 
  Sent: Wednesday, March 17, 2004 12:23 AM
  Subject: Re: Problems creating ejb jar




  The only ejb property i have in project.properties for that jar is 

  maven.ejb.excludes=**/*.java 

  which is probably not needed. 
  --
  dIon Gillard, Multitask Consulting



  "Marco Tedone" <[EMAIL PROTECTED]> wrote on 17/03/2004 10:37:29 AM:

  > Dion, could you please send me a code example?
  > 
  > Thanks,
  > 
  > Marco
  > ----- Original Message ----- 
  > From: <[EMAIL PROTECTED]>
  > To: "Maven Users List" <[EMAIL PROTECTED]>
  > Sent: Tuesday, March 16, 2004 11:39 PM
  > Subject: Re: Problems creating ejb jar
  > 
  > 
  > > Webb Morris <[EMAIL PROTECTED]> wrote on 17/03/2004 01:19:34 AM:
  > >
  > > > The maven.ejb.src is actually meant to be pointed at the information
  > > > you have listed for
  > > > maven.ejb.includes.  The documentation is lacking there.  I found
  > > > the ejbjar plugin to be
  > > > sufficiently lacking that I wrote my own using the ejbjar Ant task
  > > > (more specific for what my
  > > > company needs).  However, I also get the bcel dependency problem.
  > > >
  > > > Hope this helps,
  > >
  > > I simply don't use the convoluted property of the ejb jar plugin and
  > > simply use <resources>. This works so much better.
  > >
  > > EAR projects (as of 1.5 of the ear plugin) have support for resources now
  > > too.
  > > --
  > > dIon Gillard, Multitask Consulting
  > >
  > 
  > 
  > 
  > 
  > ---------------------------------------------------------------------
  > To unsubscribe, e-mail: [EMAIL PROTECTED]
  > For additional commands, e-mail: [EMAIL PROTECTED]
  > 

Reply via email to