My experience has been that in order to get your EJB3 project compiled
and packaged, you need the latest SNAPSHOT of the maven-ejb-plugin, (we
really should get a non-snapshot release out for maven-ejb-plugin, even
if it has to be labeled 'alpha').

There are some controversial filtering of classes based on broken
regex's (that can't be overridden, and breaks many legitimate uses of
EJB3) in the last non-snapshot release of the maven-ejb-plugin.

Then, when you need to inject it into your EAR, only the latest
maven-ear-plugin can do that accurately.  Fortunately, the
maven-ear-plugin 2.3 (that is EJB3 friendly) was released in December 2006.

- Joakim Erdfelt

Stephane Nicoll wrote:
> How did you compile your ejb3 module? with the jar packaging scheme?
> If so add your ejb3 module the same way you would add a library (add a
> dependency in the EAR pom).
>
> HTH,
> Stéphane
>
> On 1/23/07, Jim AtYourService <[EMAIL PROTECTED]> wrote:
>> Hi chaps,
>>
>> Might I ask a question? I have searched the web and
>> formums etc for how to configure maven 2 for EJB3 (on
>> JBoss in this case)
>>
>> I have a project that works under maven 2 fine, with
>> various modules jar and war artefacts and
>> dependencies. I decided to introduce ejb3. I
>> successfully compiled an ejb 3 bean, with ejb3 jar
>> dependences. But trying to build an ejb 3 ear is more
>> confusing.
>>
>> So my question is, could you point me to a very simple
>> hello world example with a ejb3 client module a ejb 3
>> server module and an ear module. I only need to see
>> the pom.xml files. Presumably this has a maven ejb3
>> plug-in. It's just trying to fit the pieces together.
>>
>> Any thoughts, ideas, just a simple pseudo-code pom
>> files example will be fine, so i can see how the parts
>> fit together.
>>
>> Many thanks if you can help me or show me a useful
>> resource that has escaped my googling and
>> book-reading!
>>
>> Regards,
>> James Eadon
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________
>> New Yahoo! Mail is the ultimate force in competitive emailing. Find
>> out more at the Yahoo! Mail Championships. Plus: play games and win
>> prizes.
>> http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
>>
>> ---------------------------------------------------------------------
>> 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]

Reply via email to