[ 
https://issues.apache.org/jira/browse/MWAR-352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MWAR-352.
-------------------------------
      Assignee: Robert Scholte
    Resolution: Cannot Reproduce

Added an integration test at 
[ce5d96eecc5bd41015a0401b1cefc8a5ce261bf7|https://gitbox.apache.org/repos/asf?p=maven-war-plugin.git;a=commit;h=ce5d96eecc5bd41015a0401b1cefc8a5ce261bf7]
 to show that it does replace the web.xml

> web.xml not being replaced by 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
>            Assignee: Robert Scholte
>            Priority: Major
>              Labels: build
>
> My pom.xml file has the following in it:
> {code:xml}
>       <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>
> {code}
> 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
(v8.3.4#803005)

Reply via email to