Web resources filtering with Maven war plugin does not work in Eclipse with m2e

后端 未结 6 1779
感情败类
感情败类 2021-01-30 14:37

I\'m trying to filter a Spring configuration file using Maven filtering. My POM is configured like this:

        ...
        
          

        
6条回答
  •  情话喂你
    2021-01-30 15:12

    I had a similar problem with filtering the web.xml. I solved the problem by reimporting the whole project in eclipse.

    The reason was a corrupt /.settings/org.eclipse.wst.common.component file. In this file the order of the files copied to the local web servers deploy directory is defined. For example:

    
      
        
        
        
        
        
        
      
    
    

    If the web.xml or application.xml exists in several directories it will be taken from the first directory found. Therefore its important that

        
    

    is the first entry.

    You will find more informations at http://wiki.eclipse.org/M2E-WTP_FAQ in the section "What is this web resources folder?"

提交回复
热议问题