I want to build an EAR file which contains a WAR and
EJB JAR.  Currently I am able to have all of my class
files put into a single JAR, whether I do "maven ejb"
or "maven war", but really what I want is a goal which
will

1.  Create the WAR with all JSPs and Servlet classes.

My project's directory layout as far as web components
goes looks like this:

myproject
 +-- src
       +-- java
             +-- all needed packages including
servlets
       +-- webapp
             +-- WEB-INF
                   +-- web.xml
                   +-- jboss-web.xml
             +-- all JSP and HTML files, img
directories, etc.


2.  Create the EJB JAR with all EJB and dependency
classes

My project's directory layout as far as EJB components
goes looks like this:

myproject
 +-- src
       +-- java
             +-- all needed packages including ejbs
       +-- ejb
             +-- META-INF
                   +-- jboss.xml
                   +-- ejb-jar.xml


3.  Create an EAR file which includes both the WAR and
EJB JAR created above

My project's directory layout as far as EAR components
goes looks like this:

myproject
 +-- src
       +-- application
             +-- META-INF
                   +-- application.xml



In the end I want the EAR to contain the EJB JAR and
WAR files, with an application.xml specifying the
modules.  Is this possible ?  Are the directory
layouts above what I need for this sort of Maven goal
?  Since the Servlet and EJB classes are both under
the src/java directories how will I tell Maven which
classes need to go in the WAR file and which ones go
in the EJB JAR ?

Any suggestions greatly appreciated !


--James


                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to