今日引入java agent插件进行监控时发现一个问题
处于 /src/main/resources/ 文件夹下的jar包在mvn进行打包的时候 出现了异常,没有进行正确的拷贝。一番搜索后再官网找到了答案,特此记录:
Warning: Do not filter files with binary content like images! This will most likely result in corrupt output.
If you have both text files and binary files as resources it is recommended to have two separated folders. One folder src/main/resources (default) for the resources which are not filtered and another folder src/main/resources-filtered for the resources which are filtered.