I am trying to use the tomcat7-maven-plugin:run with a custom server.xml, which contains a Realm I need to enable. As described in the docs I have used
If all you need is change the Realm then instead of using server.xml use context.xml with your realm:
server.xml
context.xml
Point your tomcat maven plugin to that context.xml:
org.apache.tomcat.maven tomcat6-maven-plugin 2.0 ... ... tomcat/context.xml ...