maven将xml文件一起打包

前端之家收集整理的这篇文章主要介绍了maven将xml文件一起打包前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

pom文件配置

<build>
	<!-- 将mapper.xml一起打包 -->
	<resources>
		<resource>
			<directory>src/main/resources</directory>
			<includes>
				<include>**/*.*</include>
			</includes>
		</resource>
		<resource>
			<directory>src/main/java</directory>
			<includes>
				<include>**/*.xml</include>
			</includes>
		</resource>
	</resources>
</build>

猜你在找的Maven相关文章