:mavenjetty로 시작

2426 단어 jetty
인용하다
maven jetty로 시작
하나.프로비저닝

<!--          jetty -->  
<build>
<plugins>
<plugin>  
    <groupId>org.mortbay.jetty</groupId>  
    <artifactId>maven-jetty-plugin</artifactId>  
    <version>6.1.10</version>  
    <configuration>  
        <encoding>UTF-8</encoding>  
        <scanIntervalSeconds>10</scanIntervalSeconds>  
        <stopKey>foo</stopKey>  
        <stopPort>9999</stopPort>  
    </configuration>  
    <executions>  
        <execution>  
            <id>start-jetty</id>  
            <phase>pre-integration-test</phase>  
            <goals>  
                <goal>run</goal>  
            </goals>  
            <configuration>  
                <scanIntervalSeconds>0</scanIntervalSeconds>  
                <daemon>true</daemon>  
            </configuration>  
        </execution>  
        <execution>  
            <id>stop-jetty</id>  
            <phase>post-integration-test</phase>  
            <goals>  
                <goal>stop</goal>  
            </goals>  
        </execution>  
    </executions>  
</plugin>  
<plugins>
</build>

Edition 구성:

<build>
<plugins>
<plugin>  
    <groupId>org.mortbay.jetty</groupId>  
    <artifactId>jetty-maven-plugin</artifactId>  
    <version>8.1.5.v20120716</version>  
    <configuration>  
        <stopPort>9966</stopPort>  
        <stopKey>foo</stopKey>  
        <scanIntervalSeconds>10</scanIntervalSeconds>  
        <webApp>  
            <contextPath>/teff</contextPath>  
        </webApp>  
    </configuration>  
</plugin>  
<plugins>
</build>
 

둘.maven 시작 명령
mvn -Djetty.port=9999 jetty:run
포트 충돌 없이 동시에 여러 개 실행 가능

좋은 웹페이지 즐겨찾기