Solved

Using Maven 2 EJB standard project layout in Eclipse

Posted on 2008-10-24
3
2,097 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
changeXy challenge 13 82
stringclean challenge 26 74
JAVA part two 5 68
How to only allow authenticated (logged in) users to access Spring restful service 3 62
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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.

810 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