1 <plugin> 2 <groupId>org.mortbay.jetty</groupId> 3 <artifactId>jetty-maven-plugin</artifactId> 4 <version>8.1.7.v20120910</version> 5 <configuration> 6 <scanIntervalSeconds>5</scanIntervalSeconds> 7 <webApp> 8 <contextPath>/bfc-loms</contextPath> 9 </webApp> 10 <connectors> 11 <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> 12 <port>8080</port> 13 <maxIdleTime>500000</maxIdleTime> 14 </connector> 15 <!-- <connector implementation="org.eclipse.jetty.server.ssl.SslSelectChannelConnector" 16 <port>8443</port> 17 <maxIdleTime>500000</maxIdleTime> 18 <keystore>C:\Users\Administrator\bfc.keystore</keystore> 19 <password>123456</password> 20 </connector> --> 21 </connectors> 22 </configuration> 23 </plugin>
主要在maven的pom.xml里增加如上配置