-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
273 lines (255 loc) · 11.5 KB
/
pom.xml
File metadata and controls
273 lines (255 loc) · 11.5 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) Madplanet.com Inc. 2017
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
<version>35</version>
</parent>
<groupId>com.madplanet.sling.it</groupId>
<artifactId>testing-client-it</artifactId>
<packaging>jar</packaging>
<name>Sling Testing Client IT</name>
<description>
IT Tests for Sling Testing Client
</description>
<properties>
<IT.expected.bundles.count>125</IT.expected.bundles.count>
<http.port>8080</http.port>
<sling.host>localhost</sling.host>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.clients</artifactId>
<version>1.2.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.junit.core</artifactId>
<version>1.0.26</version>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.rules</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.junit.teleporter</artifactId>
<version>1.0.18</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.5.5</version>
</dependency>
</dependencies>
<build>
<resources>
<!-- define the resources that will go into the package -->
<resource>
<!--
we want to keep some of the META-INF files and not configure
everything in the plugin.
-->
<directory>${basedir}/src/main/content/META-INF</directory>
<targetPath>../vault-work/META-INF</targetPath>
</resource>
<resource>
<!--
we want to keep some of the META-INF files and not configure
everything in the plugin.
-->
<directory>${basedir}/../../docs</directory>
<targetPath>apps/admin/docs</targetPath>
</resource>
<resource>
<directory>${basedir}/src/main/content/jcr_root</directory>
<excludes>
<!-- exclude .vlt control files in the package -->
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>**/.gitignore</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/.settings</exclude>
<exclude>**/.DS_Store</exclude>
<exclude>**/target/**</exclude>
<exclude>**/pom.xml</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<!-- the Sling instance is provisioned from the model in src/main/provisioning/model.txt -->
<groupId>org.apache.sling</groupId>
<artifactId>slingstart-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>prepare-launchpad-package</id>
<goals>
<goal>prepare-package</goal>
</goals>
</execution>
<execution>
<id>build-launchpad-package</id>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<servers>
<server>
<id>singleinstance</id>
<port>${http.port}</port>
<vmOpts>${sling.vm.options}</vmOpts>
<!-- This makes sure that configurations for IT are used -->
<runmode>it</runmode>
</server>
</servers>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<licenseName>peregrine-cms-license</licenseName>
<licenseResolver>${project.baseUri}../../src/license</licenseResolver>
<excludes>
<!-- Need to provide a pattern that deals with folders as well -->
<exclude>**/api/swaggereditor/**/*</exclude>
<exclude>**/*.svg</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>it</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<!-- Find free ports to run our server -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>reserve-server-port</id>
<goals>
<goal>reserve-network-port</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<portNames>
<!-- used port name must be stored in property because it must be used for the base url -->
<portName>http.port</portName>
</portNames>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- the Sling instance is provisioned from the model in src/main/provisioning/model.txt -->
<groupId>org.apache.sling</groupId>
<artifactId>slingstart-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>start-container-before-IT</id>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container-after-IT</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<!-- Let the Test Server run to manually verify the setup. TODO: remove later -->
<shouldBlockUntilKeyIsPressed>${block.sling.at.the.end}</shouldBlockUntilKeyIsPressed>
</configuration>
</execution>
</executions>
<configuration>
<servers>
<server>
<id>singleinstance</id>
<port>${http.port}</port>
<vmOpts>${sling.vm.options}</vmOpts>
<!-- This makes sure that configurations for IT are used -->
<runmode>it</runmode>
</server>
</servers>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<launchpad.http.port>${http.port}</launchpad.http.port>
<IT.expected.bundles.count>${IT.expected.bundles.count}</IT.expected.bundles.count>
<launchpad.http.server.url>http://${sling.host}:${http.port}</launchpad.http.server.url>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<echo>Wait to 20s for Sling to startup</echo>
<sleep seconds="20" />
<echo>Done waiting to 20s for Sling to startup</echo>
</tasks>
</configuration>
<executions>
<execution>
<id>sleep-for-a-while</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>