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

后端 未结 6 1679
感情败类
感情败类 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:07

    Today I had similar problem when several jars were included into war. I set the filtering on,and compared the original jars with filtered. They seem to be same,but this is not true. I tried to rename jar to zip and I was not able to unpack the content due to corrupted structure inside jar(zip) whereas the original one were ok. It is also mentioned here adding filtering web resources where is said that filtering has to be set false to prevent corrupting your binary files.

提交回复
热议问题