Maven之jetty插件配置

来源:互联网 发布:淘宝盗版软件举报 编辑:程序博客网 时间:2024/06/08 04:36
关键代码: 

 1 <plugin> 2     <groupId>org.mortbay.jetty</groupId> 3     <artifactId>jetty-maven-plugin</artifactId> 4     <version>8.1.5.v20120716</version> 5     <configuration> 6         <connectors> 7             <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> 8                 <port>80</port> <!-- 访问端口,默认8080 --> 9             </connector>10         </connectors>11         <stopPort>9966</stopPort>12         <stopKey>foo</stopKey>13         <scanIntervalSeconds>10</scanIntervalSeconds>14         <webApp>15             <!-- web项目根路径 -->16             <contextPath>/</contextPath>17         </webApp>18     </configuration>19 </plugin>

 mvn jetty:run -Djetty.port=10086 -pl app-loupan

0 0