?
Solved

Using Maven 2 EJB standard project layout in Eclipse

Posted on 2008-10-24
3
Medium Priority
?
2,116 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
Phasmid earned 780 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
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 perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

801 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