How to make a custom ear file in maven

Posted by Zombies on Stack Overflow See other posts from Stack Overflow or by Zombies
Published on 2010-05-13T16:58:19Z Indexed on 2010/05/13 17:24 UTC
Read the original article Hit count: 184

Filed under:
|

Here is my challenge, I need to make an ear file for a specific container. To be more specific on how this ear will be created:

  1. This is a standard j2ee ear file, with 1 WAR in it.
  2. The container it is deployed to will expect certain xml files (which can easily be found (somewhere) inside the source project).

Here are my obstacles

  1. The source folder contains various container specific xml files. But, these files do not map directly to where the container expects them inside the EAR file. For example, there will be a file that this container expects to be in 'EARFILE.ear/config/connections.xml'. But this file is located (in the source) at /some/obscure/unrelated/directory. This is the case for about 5-7 files.
  2. I cannot change the original source project layout at all.

So, how can I create the compliant EAR file that I need. There is NO plugin at this time for the container that I am using, I have certainly looked.

© Stack Overflow or respective owner

Related posts about maven

Related posts about maven-2