how to avoid UTF-8 encoding for binary with maven-resources-plugin?

后端 未结 4 1668
猫巷女王i
猫巷女王i 2020-12-17 18:59

I\'m using the maven-resources-plugin to copy some resources from my project but one of my resources is a binary file. The output says it is Using \'UTF-8\' encoding t

4条回答
  •  余生分开走
    2020-12-17 19:33

    Set up two separate elements, one with false and the other with true. Use the and elements of to exclude your binary files by extension from one of them.

    The resources plugin is however getting smarter about excluding e.g. images by default, so make sure you use the latest version.

提交回复
热议问题