Solved

Using Maven 2 EJB standard project layout in Eclipse

Posted on 2008-10-24
3
2,102 Views
Last Modified: 2013-12-15
Is it possible to use the Maven 2 standard EJB project layout in Eclipse?

The standard project layout for EJB projects in Maven 2 is as follows:

src/main/java - for EJB / java files
src/main/resources - for META-INF, ejb-jar.xml, etc.

When I generate an EJB project in Eclipse I get a folder named ejbModule. This folder contains both ejb-java files and the META-INF folder. When I rename the folders to use the maven 2 standard, the "prepare for deployment function" stops working.
0
Comment
Question by:eivindO
3 Comments
 
LVL 1

Accepted Solution

by:
Phasmid earned 195 total points
ID: 22808463
You should EITHER use the Maven way of doing things OR the Eclipse way.  Either will work, but you can't really mix and match.  I recommend that you use the Maven EJB plugin (maven-ejb-plugin) approach (while still within Eclipse - you will need the "M2" plugin which you can get from http://maven.apache.org/eclipse-plugin.html).  Note that you may have to have a hierarchical project structure with a pom file at the top level and also another one at the EJB level.  The maven plugin will take care of everything - it's definitely the way to go!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unable to open debugger port in Intellij idea 6 330
pairs challenge 5 87
login form jsp example 2 37
going to wrong jsp page 2 33
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question