Hello everybody,

I configured maven to run my selenium tests in a jetty-container managed by 
maven. Since then a successfully build does not generate a report at the end of 
the lifecycle. I found out, that is has to do with the startup and shutdown of 
the jetty-container defined in my pom.

Logging on the console ends like this for successfully running "mvn install" 
instead of writing the standard report to the console:

2008-06-25 11:20:12.049:/toys-view:INFO:  Closing Spring root 
WebApplicationContext
2008-06-25 11:20:12.065::INFO:  Shutdown hook complete

My questions are: Did you make similar experiences? How would you deal with 
this problem?

Thanks for any hints,
Stefan

For better traceability I enclose my configuration of the build-section in my 
pom:

    <build>
        <finalName>toys-view</finalName>

        <plugins>
            <!-- Jetty Plugin -->
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <configuration>
                    <scanIntervalSeconds>10</scanIntervalSeconds>
                    <stopKey>STOPJETTY</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>

            <!-- Selenium Server -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>selenium-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>start-server</goal>
                        </goals>
                        <configuration>
                            <logOutput>true</logOutput>
                            <background>true</background>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <!-- Surefire Tests -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <!-- Skip the normal tests, we'll run them in the 
integration-test phase -->
                    <skip>true</skip>
                </configuration>
                <executions>
                    <execution>
                        <phase>integration-test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <skip>false</skip>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

Reply via email to