<build>
<finalName>dc-exam</finalName>
<!-- 包含xml文件 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性 -->
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>*.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.10.v20150310</version>
<configuration>
<httpConnector>
<port>8090</port>
</httpConnector>
<stopPort>9966</stopPort>
<stopKey>foo</stopKey>
<scanIntervalSeconds>2</scanIntervalSeconds>
<webApp>
<!-- web项目根路径 -->
<contextPath>/</contextPath>
</webApp>
</configuration>
</plugin>
</plugins>
</build>