maven-jetty

1.pom.xml
<build>
    <finalName>user-web</finalName>
    <plugins>
        <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.26</version>
        <configuration>  
             <scanIntervalSeconds>5</scanIntervalSeconds>  
             <connectors>  
                 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">  
                     <port>8080</port>  
                     <maxIdleTime>60000</maxIdleTime>  
                 </connector>  
             </connectors>  
         </configuration>  
      </plugin>
    </plugins>
</build>

2.命令
jetty:run
clean jetty:run


你可能感兴趣的:(maven-jetty)