今天编译maven项目之后运行,总是提示找不到资源文件,后来查了maven项目编译注意事项,发现要在pom.xml文件中配置
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>rc</directory>
</resource>
<resource>
<directory>src</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.dll</include>
<include>**/*.gif</include>
<include>**/*.png</include>
<include>**/*.h</include>
</includes>
</resource>
</resources>
<build>