Maven Jetty Run Goals

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Maven Jetty Run Goals

Lorenzo Dee
I use jetty:run for my integration tests. But it forks a parallel lifecycle to ensure that the "compile" phase has been completed before invoking Jetty. So, when I run mvn verify, I get compilation, unit tests, and war creation done twice. How can I prevent the fork and start at run goal?

            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.17</version>
                <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>

Thanks :)