[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-dev
Subject:    [jira] [Updated] (MWAR-352) web.xml not being replaced by plugin configuration
From:       "Alex Sebastiao Constancio (JIRA)" <jira () apache ! org>
Date:       2015-07-30 14:43:04
Message-ID: JIRA.12848917.1437750931000.330844.1438267384586 () Atlassian ! JIRA
[Download RAW message or body]


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

Alex Sebastiao Constancio updated MWAR-352:
-------------------------------------------
    Fix Version/s: 2.6
          Summary: web.xml not being replaced by plugin configuration  (was: web.xml \
not being replaced but plugin configuration)

> 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
> Labels: build
> Fix For: 2.6
> 
> 
> 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic