当使用maven-assembly-plugin或者maven-shade-plugin打包时,如果涉及到证书文件,一定设置过滤,否则证书文件会被做修改。报异常:
java.io.IOException: DER length more than 4 bytes: 111
<fileSet> <directory>/</directory> <outputDirectory>/</outputDirectory> <includes> <include>**/*.*</include> </includes> <filtered>true</filtered> </fileSet>