The maven project in eclipse uses the jetty plugin to start the jetty server debugging

http://blog.csdn.net/yangkai_hudong/article/details/49583335

quote


<plugins> 
    <plugin> 
        <groupId>org.mortbay.jetty</groupId> 
        <artifactId>maven-jetty-plugin</artifactId> 
        <version>6.1.26</version> 
        <configuration> 
            <webAppSourceDirectory>src/main/webapp</webAppSourceDirectory> 
            <scanIntervalSeconds>6</scanIntervalSeconds> 
            <contextPath>/prospect</contextPath> 
            <webDefaultXml>jetty.xml</webDefaultXml> 
            <jettyEnvXml>jetty-env.xml</jettyEnvXml> 
            <connectors> 
                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> 
                    <port>8080</port> 
                    <headerBufferSize>80000</headerBufferSize> 
                </connector> 
            </connectors> 
            <stopKey>stop</stopKey> 
            <stopPort>8089</stopPort> 
        </configuration> 
    </plugin> 
</plugins> 



maven run Goal set to jetty :run

workind directory means it can

run , see the pictures in the link for details

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326347783&siteId=291194637