maven resource copy binary files

2018-03-01 11:19:23来源:oschina作者:谢雨齐人点击

分享

今日引入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.

Maven Resources Filtering

Binary filtering

最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台