aboutsummaryrefslogtreecommitdiffstats
path: root/test/servlet-containers/payara-micro/pom.xml
blob: 2231a1e6202836f3d64b9c82c5ff7de6fbb24c28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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.5-SNAPSHOT</version>
    </parent>
    <artifactId>vaadin-test-payara-micro-server</artifactId>
    <name>Vaadin Payara Micro Test</name>
    <packaging>war</packaging>
    <properties>
        <jetty.skip>true</jetty.skip>
        <payara.version>4.1.2.173</payara.version>
        <server.name>payara-micro</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>fish.payara.maven.plugins</groupId>
                <artifactId>payara-micro-maven-plugin</artifactId>
            </plugin>

            <!-- Payara Micro starting time is a bit over a minute. Need to wait. -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <id>wait-for-server-start</id>
                        <phase>pre-integration-test</phase>
                        <configuration>
                            <target>
                                <echo message="Waiting for Payara Micro server to start" />
                                <!-- Starting time from a couple of local test runs -->
                                <sleep seconds="65" />
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>