tomcat7-maven-plugin custom server.xml

后端 未结 3 789
闹比i
闹比i 2020-12-22 01:20

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

3条回答
  •  无人及你
    2020-12-22 01:41

    If all you need is change the Realm then instead of using server.xml use context.xml with your realm:

    
      
    
    

    Point your tomcat maven plugin to that context.xml:

    
      org.apache.tomcat.maven
      tomcat6-maven-plugin
      2.0
      ...
      
        ...
        tomcat/context.xml
        ...
      
    
    

提交回复
热议问题