<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.free</groupId>
<artifactId>com.free.webservice</artifactId>
<version>0.0.1-SNAPSHOT</version>
<!--加載本身的jetty jar包文件-->
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>9.2.10.v20150310</version>
</dependency>
</dependencies>
<build>
<finalName>rop-sample</finalName>
<plugins>
<!-- jetty插件 -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.21</version>
<configuration>
<!-- 添加這行<webDefaultXml>src/main/resources/jetty/webdefault.xml</webDefaultXml> -->
<!--能夠邊修改邊訪問-->
<!-- <webAppSourceDirectory>src/main/webapp</webAppSourceDirectory> -->
<scanIntervalSeconds>3</scanIntervalSeconds>
<contextPath>/</contextPath>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8088</port>
</connector>
</connectors>
</configuration>
</plugin>
</plugins>
</build>
</project>