You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alex Sebastiao Constancio (JIRA)" <ji...@apache.org> on 2015/07/24 17:16:05 UTC
[jira] [Created] (MWAR-352) web.xml not being replaced but plugin
configuration
Alex Sebastiao Constancio created MWAR-352:
----------------------------------------------
Summary: web.xml not being replaced but plugin configuration
Key: MWAR-352
URL: https://issues.apache.org/jira/browse/MWAR-352
Project: Maven WAR Plugin
Issue Type: Bug
Affects Versions: 2.6
Environment: Windows 7 x64, Eclipse Luna, JSF 2 project
Reporter: Alex Sebastiao Constancio
My pom.xml file has the following in it:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version><!--$NO-MVN-MAN-VER$-->
<configuration>
<webXml>src/main/webconfig/release/web.xml</webXml>
</configuration>
</plugin>
</plugins>
</build>
As you can see, the web.xml to be used by war plugin when running Maven install is located outside of the webapp folder. This work perfectly if there ins't a web.xml in webapp/WEB-INF folder, but the pluging refuses to use the web.xml from webconfig/release if there is already a file with the same name in webapp/WEB-INF.
The issue is that I have to keep one web.xml in webapp/WEB-INF in order to be able publish the application to my local application server for debug. This file has particular settings for a local environment.
However, when I want to produce a war to publish in the production server, it has to be another web.xml, the one located in webconfig/release folder. Problem is that the war plugin does not replaces one file by the other when generating the war file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)