Is it possible to supply Tomcat6's context.xml file via the Maven Cargo plugin?

前端 未结 3 1566
野的像风
野的像风 2020-12-10 05:44

I\'d like to keep Tomcat\'s context.xml file out of my WAR file\'s META-INF directory if possible. Can this be done with Maven\'s cargo plugin? I can\'t seem to find the c

3条回答
  •  感动是毒
    2020-12-10 06:18

    According https://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Defining_a_context and https://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Naming Tomcat 9 allows making individual application context.xml (checked).

            
                org.codehaus.cargo
                cargo-maven2-plugin
                1.7.10
                
                    
                        tomcat9x
                        
                            UTF-8
                            tomcat,datajpa
                        
                        
                            
                                org.postgresql
                                postgresql
                            
                        
                    
                    
                        
                            
                                src/main/resources/tomcat/context.xml
                                conf/Catalina/localhost/
                                ${project.build.finalName}.xml
                            
                        
                    
                    
                        
                            ru.javawebinar
                            topjava
                            war
                            
                                ${project.build.finalName}
                            
                        
                    
                
            
        
    

提交回复
热议问题