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

后端 未结 4 1658
猫巷女王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:45

    For a compiled binary that had no extension (it gets launched on the RHEL build server for some component tests), added a file extension for the Linux version it was intended to run under and used code-gijoe's answer above to ensure that maven did not "filter" it:

                                
        rhel
    
    

提交回复
热议问题