Maven: how to get a war package with resources copied in WEB-INF?

前端 未结 3 973
春和景丽
春和景丽 2020-12-08 20:44

when I create a war package with maven, files and directories under the directory \"src/main/resources\" are copied in /WEB-INF/classes instead of /WEB-INF. How can I get th

3条回答
  •  情书的邮戳
    2020-12-08 21:26

    This configuration is working add plugin pom.xml

    
        org.apache.maven.plugins
        maven-compiler-plugin
        2.3.2
        
            ${jdk.version}
            ${jdk.version}
        
    
    
    
        org.apache.maven.plugins
        maven-war-plugin
        2.3
    
        
    
            
                  
                
                    ${project.build.directory}/classes
                
            
            
            ${project.build.directory}/${project.build.finalName}
        
    
    

提交回复
热议问题