Filtering Maven files into WEB-INF

后端 未结 4 1358
抹茶落季
抹茶落季 2021-01-31 02:18

I am trying to add some filtering to the application context file, which resides in the WEB-INF directory.

I have the file which is to be filtered (xmlgateway-context.

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 02:45

    With filteringDeploymentDescriptors set to true

         
            web-project-name
            
                src/main/resources/app.properties
            
            
                
                    src/main/resources
                    true
                
            
            
                
                    org.apache.maven.plugins
                    maven-compiler-plugin
                    3.1
                    
                        1.8
                        1.8
                        
                            ${endorsed.dir}
                        
                    
                
                
                    org.apache.maven.plugins
                    maven-war-plugin
                    2.4
                    
                        false
                        true
                    
                           
            
        
    

提交回复
热议问题