You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bruce Albrecht <br...@maven.zuhause.org> on 2011/12/08 07:55:45 UTC

Using maven to modify a vendor supplied war/ear

Our company has several projects where we have received a war or ear 
from a vendor, and we need to insert jars or configuration files into 
the vendor artifact before deploying them.  Is there an existing maven 
plugin that can handle this?  If there is such a plugin, can it manage 
inserting/updating files in embedded jars/wars also?

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


Re: Using maven to modify a vendor supplied war/ear

Posted by Manfred Moser <ma...@mosabuam.com>.
On 11-12-08 12:09 AM, Jörg Schaible wrote:
> Bruce Albrecht wrote:
>
>> Our company has several projects where we have received a war or ear
>> from a vendor, and we need to insert jars or configuration files into
>> the vendor artifact before deploying them.  Is there an existing maven
>> plugin that can handle this?  If there is such a plugin, can it manage
>> inserting/updating files in embedded jars/wars also?
> You may simply use the war plugin to create a new war and use your vendor
> war as overlay.
>

I have used that quite successfully in the past in exactly your 
scenario. In my case it was the JasperServer Pro war that I overlaid 
with different configuration for security, layout/styles and database 
connections adding in different jdbc drivers.

I am not sure if the ear plugin has a similar feature.

manfred

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


Re: Using maven to modify a vendor supplied war/ear

Posted by Jörg Schaible <jo...@scalaris.com>.
Bruce Albrecht wrote:

> Our company has several projects where we have received a war or ear
> from a vendor, and we need to insert jars or configuration files into
> the vendor artifact before deploying them.  Is there an existing maven
> plugin that can handle this?  If there is such a plugin, can it manage
> inserting/updating files in embedded jars/wars also?

You may simply use the war plugin to create a new war and use your vendor 
war as overlay.

- Jörg



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


SV: Using maven to modify a vendor supplied war/ear

Posted by Johan Erlands <jo...@idainfront.se>.
Hello,

I don't know of a plugin that does what you want, but I have used several plugins to repack an ear.
I used the dependency plugin to unpack the ear. The maven-config-processor-plugin to change application.xml and the assembly-plugin to pack the ear again.

Regards,
Johan

-----Ursprungligt meddelande-----
Från: Bruce Albrecht [mailto:bruce@maven.zuhause.org] 
Skickat: den 8 december 2011 07:56
Till: Maven Users List
Ämne: Using maven to modify a vendor supplied war/ear

Our company has several projects where we have received a war or ear 
from a vendor, and we need to insert jars or configuration files into 
the vendor artifact before deploying them.  Is there an existing maven 
plugin that can handle this?  If there is such a plugin, can it manage 
inserting/updating files in embedded jars/wars also?

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


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