[SSM] idea maven项目无法打包编辑mapper下的xml文件
在jenkins使用maven进行打包发布时,由于maven无法对xml文件进行编译打包,须在pom.xml文件中添加如下配置:<build>finalName>APIfinalName>resources>······resource>directory>src/main/javadirectory>includes>include>**/*.xmlinclude>includ
·
在jenkins使用maven进行打包发布时,由于maven无法对xml文件进行编译打包,须在pom.xml文件中添加如下配置:
<build>
<finalName>API</finalName>
<resources>
······
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
······
</resources>
</build>
或者
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources>
更多推荐
已为社区贡献1条内容
所有评论(0)