I am trying to find a way how to use the following three things together:
1) Eclipse - I want to use Eclipse WTP for development; 2) EJB 3 - I need EJB 3 in my project; 3) Manven 2 - I want to use Maven 2 as a build tool.
My question: is it possible to adjust an EJB project in Eclipse so that it would use maven layout and the project was a "real" EJB project (in Eclipse sense). The last requirement is important because I find hot replace very useful (I don't want to build my application manually every time I change it).
I want to have three projects in my Eclipse workspace: WAR, EJB and EAR. I use "mvn eclipse:eclipse" tool to generate metadata for WAR and EAR. It seems to work fine. However, this approach doesn't work for EJB.
If you know the solution, please, describe it or provide a link.
Denis, Are you using an Eclipse plugin? As far as I know Eclipse doesn't have an "EJB project" type out of the box.
I think this is more of an Eclipse question than an EJB question so I'll move it to our IDES forum for you.
Note that you may get more answers if you could provide the directory structure Maven requires for EJB 3 (or a link to it.) Right now your question requires EJB 3, Maven and Eclipse experience. Providing that one link would get it down to just needing Eclipse knowledge - which is a lot more common than the combination of all three.
I use Eclipse Europa and it does have support for EJB projects. However, by default it uses the following structure:
This structure is different from the default maven layout which looks like this:
The question is, how to setup Eclipse project properties so that Eclipse would understand maven layout. For a WAR project I use "mvn eclipse:eclipse -Dwtpversion=1.5" and it works fine, Eclipse perfectly understands maven layout. But, unfortunately, this does not work for an EJB project.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com