EAR assembly as part of an EJB project

2009-12-23 Thread CS Wong
Hi,

Would just like to find out: is it possibly to have an EAR assembly inside
an EJB Maven project? It's really quite a hassle to create another POM
declaration to package the EJB into an EAR. Creating the EAR project isn't
the hassle, maintaining it is. If I can contain it within one project,
that'll be very nice. I know I can use multi-module projects, in fact, I'm
doing so right now, but I'd like to see if there' an even simpler solution.

Thanks!
Wong


Re: EAR assembly as part of an EJB project

2009-12-23 Thread Anders Hammar
No, there isn't. One Maven project only produces ONE artifact.

/Anders

On Wed, Dec 23, 2009 at 13:29, CS Wong lilw...@gmail.com wrote:

 Hi,

 Would just like to find out: is it possibly to have an EAR assembly inside
 an EJB Maven project? It's really quite a hassle to create another POM
 declaration to package the EJB into an EAR. Creating the EAR project isn't
 the hassle, maintaining it is. If I can contain it within one project,
 that'll be very nice. I know I can use multi-module projects, in fact, I'm
 doing so right now, but I'd like to see if there' an even simpler solution.

 Thanks!
 Wong



Re: ear assembly

2003-09-10 Thread Rafal Krzewski
Nathan Coast wrote:

 1) use reactor to build all of the constituent jars, wars, ejb-jars.
 Copy these files to the ear assembly directory and then use the ear plugin.
 
 2) use reactor to build all of the constituent jars, wars, ejb-jars etc.
 Install these components into the local repo using the multi-project
 plugin.  Declare all of the dependencies for the ear within the ear
 project.xml,  build the ear using the ear plugin.

AFAICT 2) is the official recommended practice.

R.


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



ear assembly

2003-09-09 Thread Nathan Coast
Hi,

I'm trying to understand how best to assemble an ear file from multiple 
components also built using maven.  These are the two approaches I've 
come up with.

1) use reactor to build all of the constituent jars, wars, ejb-jars. 
Copy these files to the ear assembly directory and then use the ear plugin.

2) use reactor to build all of the constituent jars, wars, ejb-jars etc. 
Install these components into the local repo using the multi-project 
plugin.  Declare all of the dependencies for the ear within the ear 
project.xml,  build the ear using the ear plugin.

Is either of these 'better' than the other or is there some other process?

Thanks
Nathan


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