Hey Mike,

I would create a module for each war (and probably one for the war
with no context.xml) and then make use of the "overlays" as described
here: http://maven.apache.org/plugins/maven-war-plugin/overlays.html

With this a war can depend on another war and you can overwrite / add
/ remove things at will. Adding the context.xml should be really easy.

HTH,
SaM

On Mon, Aug 30, 2010 at 09:34,  <sg...@gmx.net> wrote:
> Hi folks,
>
> I am facing a config problem with deploying two classified WAR files at once. 
> My setup is this, I have a WAR project which is developed and tested locally 
> with Tomcat and Eclipse. Deploying this WAR file to host1 and host2 requires 
> a different context.xml. So I tried to solve this with a profile with copies 
> a different context.xml with filtering for the hostname. Invoke would be like 
> this:
> mvn package -Pdeployment -Dhostname=host1
>
> Package is created. I rerun the same process a second time for host2. Now the 
> real problem arises when I do a release:perform to Nexus. I cannot produce 
> two files at the same time during this process. Of course only one file is 
> deployed. A second deployment does not work because Nexus blocks. I have to 
> manually upload the second war file.
>
> Is there any remedy to this? I want to avoid tampering with the assembly 
> plugin since this would be just tedious work which the WAR plugin already 
> does perfectly.
>
> Thanks,
>
> Mike
> --
> Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!
> Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
>
> ---------------------------------------------------------------------
> 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