环境: OS X EI Capitan 10.11.3 + JDK 1.7.0_80 + Maven 3.3.9 + NetBeans 8.0
默认情况下,maven 不打包src/main/java 下的资源文件,如果想要打包,修改 pom.xml,增加如下设置:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.drl</include>
<include>**/*.xls</include>
</includes>
</resource>
</resources>
</build>
默认情况下,maven 不打包src/main/java 下的资源文件,如果想要打包,修改 pom.xml,增加如下设置:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.drl</include>
<include>**/*.xls</include>
</includes>
</resource>
</resources>
</build>
没有评论:
发表评论