Thank you, I think this is where I'm getting confused.

I was confusing my actual MDB code + deployment artifact as the same unit, 
therefore in the same project.

What I need to do is generate my MDB code in one project, which outputs a jar, 
then create 4 ear projects which depend on the .jar file which has been created 
from the MDB project.

I had a feeling I was making it more complicated than it was,

Thanks very much for your help.
Pete

-----Original Message-----
From: Salgar, Mehmet (external) [mailto:mehmet.sal...@external.t-mobile.de] 
Sent: 27 January 2009 16:47
To: Maven Users List
Subject: AW: Single MDB in multiple EAR files but different deployment 
descriptors

Hi,

Why are you not building 4 different maven-projects that is containing 4 
different maven-ear-plugins configuration...

I guess this would be the easieszt way... 

Or may be you can write 4 different ear configurations in maven-ear-plugin




T-Mobile Deutschland GmbH
Aufsichtsrat: Hamid Akhavan (Vorsitzender)
Geschäftsführung: Dr. Georg Pölzl (Sprecher), Thomas Berlemann, Jiri 
Dvorjancansky, Philipp Humm,
Dr. Peter Körner, Dr. Raphael Kübler, Günther Ottendorfer, Dr. Steffen Roehn 
Handelsregister: Amtsgericht Bonn, HRB 59 19
Sitz der Gesellschaft: Bonn
WEEE-Reg.-Nr.: DE60800328



-----Ursprüngliche Nachricht----- 
Von: Inman, Peter [mailto:peterin...@mcpplc.com] 
Gesendet: Dienstag, 27. Januar 2009 16:54
An: users@maven.apache.org
Betreff: RE: Single MDB in multiple EAR files but different deployment 
descriptors

I'm not sure if I'm making this far more complex than it actually is, but if 
anyone does know what I'm missing with this, I really would appreciate some 
pointers.

 

Thanks,Pete

 

From: Inman, Peter
Sent: 23 January 2009 16:20
To: users@maven.apache.org
Subject: Single MDB in multiple EAR files but different deployment descriptors

 

Hi,

 

I'm reasonably new to using Maven and am in the process of re-structuring and 
migrating my project to the Maven way of doing things.  So far it's going well, 
but I have a question which I wonder if someone could help with.

 

I have a single message driven bean, which I need to be deployed in 4 different 
EAR files, each with different deployment descriptors. These deployment 
descriptors instruct the MDB to attach to different queues, depending on which 
EAR it's in and where that EAR is deployed.

 

So, for deployment I have 

 

EAR01.ear

----MyMDB.jar

 

EAR02.ear

----MyMDB.jar

 

EAR03.ear

----MyMDB.jar

 

EAR04.ear

----MyMDB.jar

 

 

The only difference between these EAR files, is the deployment descriptors.

 

Can someone please give me some advice on how to build this using maven2?

 

Thanks, Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to