blob: ca4e7dcd96acd7409c68dee3a08f4fcdebe7a8ae (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
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">
<parent>
<artifactId>vaadin-test-karaf</artifactId>
<groupId>com.vaadin</groupId>
<version>8.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>karaf-run</artifactId>
<name>Vaadin Karaf Test Runner</name>
<dependencies>
<!--Vaadin dependencies should not be in a classpath-->
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-server</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>mvn</executable>
<async>true</async>
<asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
<commandlineArgs>-f karaf-run-pom.xml karaf:run</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.8</version>
<executions>
<execution>
<id>karaf-client-ctrl</id>
<phase>pre-integration-test</phase>
<goals>
<goal>client</goal>
</goals>
<configuration>
<delay>5</delay>
<attempts>150</attempts>
<commands>
<!--Scheduled shutdown in 15 minutes-->
<command>shutdown -f +10</command>
<command>feature:install http</command>
<command>feature:install http-whiteboard</command>
<command>bundle:install -s mvn:org.jsoup/jsoup/1.8.3</command>
<command>bundle:install -s mvn:com.vaadin.external/gentyref/1.2.0.vaadin1</command>
<command>bundle:install -s mvn:com.vaadin/vaadin-shared/${vaadin.version}</command>
<command>bundle:install -s mvn:com.vaadin/vaadin-server/${vaadin.version}</command>
<command>bundle:install -s mvn:com.vaadin/vaadin-osgi-integration/${vaadin.version}</command>
<command>bundle:install -s mvn:com.vaadin/vaadin-client-compiled/${vaadin.version}</command>
<command>bundle:install -s mvn:com.vaadin/vaadin-themes/${vaadin.version}</command>
<command>
<![CDATA[bundle:install -s file:./../vaadin-karaf-bundle1/target/vaadin-karaf-bundle1-${project.version}.jar]]></command>
<command>
<![CDATA[bundle:install -s file:./../vaadin-karaf-bundle2/target/vaadin-karaf-bundle2-${project.version}.jar]]></command>
</commands>
</configuration>
</execution>
<execution>
<id>karaf-client-shutdown</id>
<phase>post-integration-test</phase>
<goals>
<goal>client</goal>
</goals>
<configuration>
<delay>5</delay>
<attempts>10</attempts>
<commands>
<command>system:shutdown -f</command>
</commands>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<environmentVariables>
<vaadin.version>${vaadin.version}</vaadin.version>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>
|