summaryrefslogtreecommitdiffstats
path: root/test/servlet-containers/pom.xml
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-10-05 10:09:22 +0300
committerGitHub <noreply@github.com>2017-10-05 10:09:22 +0300
commit3cbd834842319d151d9248706bc14e14a3abca42 (patch)
treea2e918d9632512acecf0fcadc31a2ac1a10de71c /test/servlet-containers/pom.xml
parenteda970f667f5784977b63a158b24bd1c1f28ffc4 (diff)
downloadvaadin-framework-3cbd834842319d151d9248706bc14e14a3abca42.tar.gz
vaadin-framework-3cbd834842319d151d9248706bc14e14a3abca42.zip
Add maven based server tests for Wildfly and Jetty (#10116)
This patch refactors the generic integration test war into two jar dependencies and individual modules for different servers. There is now a common approach for making configurations for the remaining server tests still executed through an Ant build script.
Diffstat (limited to 'test/servlet-containers/pom.xml')
-rw-r--r--test/servlet-containers/pom.xml119
1 files changed, 119 insertions, 0 deletions
diff --git a/test/servlet-containers/pom.xml b/test/servlet-containers/pom.xml
new file mode 100644
index 0000000000..7727c86c4f
--- /dev/null
+++ b/test/servlet-containers/pom.xml
@@ -0,0 +1,119 @@
+<?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-test</artifactId>
+ <version>8.2-SNAPSHOT</version>
+ </parent>
+ <artifactId>vaadin-servlet-containers-test</artifactId>
+ <name>vaadin-servlet-containers-test</name>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>generic-ui</module>
+ <module>generic-tests</module>
+ </modules>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.wildfly.plugins</groupId>
+ <artifactId>wildfly-maven-plugin</artifactId>
+ <version>1.2.0.Final</version>
+ <executions>
+ <execution>
+ <id>start-wildfly</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>start</goal>
+ <goal>deploy</goal>
+ </goals>
+ <configuration>
+ <!-- Context path comes from WAR deployment name -->
+ <name>demo.war</name>
+ </configuration>
+ </execution>
+ <execution>
+ <id>stop-wildfly</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>shutdown</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-maven-plugin</artifactId>
+ <configuration>
+ <webApp>
+ <contextPath>/demo</contextPath>
+ </webApp>
+ </configuration>
+ </plugin>
+
+ <!-- General purpose plugins -->
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <dependenciesToScan>
+ <dependency>${project.groupId}:vaadin-test-server-tests</dependency>
+ </dependenciesToScan>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>all</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>jsp-integration</module>
+ <module>karaf</module>
+ <module>wildfly10</module>
+ <module>wildfly9</module>
+ <module>jetty9</module>
+ </modules>
+ </profile>
+ <!-- TODO Remove this when the ant build is no longer used. -->
+ <profile>
+ <id>ant-test</id>
+ <modules>
+ <module>generic</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>wildfly</id>
+ <modules>
+ <module>wildfly10</module>
+ <module>wildfly9</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>jetty</id>
+ <modules>
+ <module>jetty9</module>
+ </modules>
+ </profile>
+ </profiles>
+
+</project>