Maven WebApp META-INF context.xml

后端 未结 2 1566
抹茶落季
抹茶落季 2021-02-01 07:33

I am using Maven 3 and I am trying to add META-INF folder under webapp folder. So I am trying to do the following:

src
 main
  webapp
   META-INF
    context.xml         


        
2条回答
  •  北海茫月
    2021-02-01 08:16

    Put your META-INF folder within src/main/resources.

    Put this on your pom.xml... sorry i missed it before;

    
    
        
                org.apache.maven.plugins
                maven-war-plugin
                3.0.0
                
    
    
                    
                        
                            true
                            lib/
                        
                    
    
                    
                        
                            
                            ${project.basedir}/src/main/resources
                            
    
                        
                    
    
    
    
                    mywar
                
            
    
    
    

    the web resources tag is what is important... Hope this helps

提交回复
热议问题