Solved

Using Maven 2 EJB standard project layout in Eclipse

Posted on 2008-10-24
3
2,093 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
pre4 challenge 19 88
count7 challenge 12 69
mapAB Challlenge 35 85
micro services spring boot application error 3 28
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 …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now