If you need to specify the context.xml file when deploying the Tomcat WAR file, it must be included in the WAR. The easiest way to achieve this is to add it to your webapp resources:
src |_ main |_ webapp |_ META-INF |_ context.xml
When you create your web application (* .war), maven will join the WAR in a suitable location.
source share