            <plugin>
                <groupId>org.glassfish</groupId>
                <artifactId>maven-embedded-glassfish-plugin</artifactId>
                <version>${project.version}</version>
                <configuration>
                    <goalPrefix>glassfish</goalPrefix>
                    <app>target/applicationDispatcher.war</app>
                    <port>8080</port>
                    <name>test</name>
                    <contextRoot>test</contextRoot>
                    <serverID>embedded</serverID>
                </configuration>
                <executions>
                    <execution>
                        <id>start</id>
                        <phase>integration-test</phase>
                        <goals>
                            <goal>start</goal>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>additional_deployments</id>
                        <phase>integration-test</phase>
                        <goals>
                            <goal>admin</goal>
                        </goals>
                        <configuration>
                            <commands>
                                <param>deploy /tmp/hello.war</param>
                            </commands>
                        </configuration>
                    </execution>
                    <execution>
                        <id>stop</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>undeploy</goal>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


