<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.groovy</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.bundle</include>
</includes>
</resource>
</resources>
</build>
要打包成什么样的文件就用相应的后缀替换groovy即可,本人这个项目出来要eclipse打包class文件还要打包groovy文件