Details
-
Task
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
0.7
-
Don't Know (Unsure) - The default level
Description
The CAS-Product web application has two examples of Tomcat context containers. The first example 'cas-product-tomcat-5.5.9.xml' is in src/main/resources, and the second example 'context.xml' is in src/main/webapp/META-INF.
When building the webapp, both files are copied into the same META-INF directory in the target WAR. The context.xml file is copied by default and the cas-product-tomcat-5.5.9.xml file is copied by the following maven-war-plugin configuration in the POM:
<containerConfigXML> src/main/resources/cas-product-tomcat-5.5.9.xml </containerConfigXML>
So we end up with two almost identical context container files in META-INF:
META-INF - cas-product-tomcat-5.5.9.xml - context.xml
I was thinking that we could remove cas-product-tomcat-5.5.9.xml from src/main/resources and keep src/main/webapp/META-INF/context.xml.