3.解决方案:
设置filter,font文件不需要filter,见下面示例:
<build>
2 <finalName>bootstrap in maven</finalName>
3 <resources>
4 <resource>
5 <directory>src/main/resources</directory>
6 <filtering>true</filtering>
7 <excludes>
8 <exclude>static/fonts/**</exclude>
9 </excludes>
10 </resource>
11 <!-- fonts file cannot use filter as the data structure of byte file will be changed via filter -->
12 <resource>
13 <directory>src/main/resources</directory>
14 <filtering>false</filtering>
15 <includes>
16 <include>static/fonts/**</include>
17 </includes>
18 </resource>
19 <resource>
20 <directory>src/main/java</directory>
21 <includes>
22 <include>**/*.xml</include>
23 </includes>
24 </resource>
25 </resources>
26 ...
27 </build>