<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.vaadin</groupId> <artifactId>vaadin-servlet-containers-test</artifactId> <version>8.15-SNAPSHOT</version> </parent> <artifactId>vaadin-test-glassfish-server</artifactId> <name>Vaadin Glassfish Test</name> <packaging>war</packaging> <properties> <jetty.skip>true</jetty.skip> <glassfish.version>4.1.2.173</glassfish.version> <server.name>glassfish</server.name> </properties> <dependencies> <!-- UI classes and tests from dependencies --> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-test-server-ui</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-test-server-tests</artifactId> <version>${project.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!-- Server configuration --> <plugin> <groupId>org.glassfish.embedded</groupId> <artifactId>maven-embedded-glassfish-plugin</artifactId> <version>4.1.1</version> <executions> <execution> <id>start-glassfish</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> <goal>deploy</goal> </goals> </execution> <execution> <id>stop-glassfish</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> <configuration> <port>8080</port> </configuration> </plugin> </plugins> </build> </project>