Solved

Using Maven 2 EJB standard project layout in Eclipse

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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: …
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 implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

688 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