SLING-7353 Update to Sling Parent 33
[sling-org-apache-sling-installer-it.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or
4 more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information regarding
6 copyright ownership. The ASF licenses this file to you under the
7 Apache License, Version 2.0 (the "License"); you may not use
8 this file except in compliance with the License. You may obtain
9 a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0 Unless required by
12 applicable law or agreed to in writing, software distributed
13 under the License is distributed on an "AS IS" BASIS, WITHOUT
14 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17 -->
18 <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">
19
20 <modelVersion>4.0.0</modelVersion>
21 <parent>
22 <groupId>org.apache.sling</groupId>
23 <artifactId>sling</artifactId>
24 <version>33-SNAPSHOT</version>
25 <relativePath/>
26 </parent>
27
28 <artifactId>org.apache.sling.installer.it</artifactId>
29 <version>3.8.11-SNAPSHOT</version>
30 <packaging>jar</packaging>
31
32 <name>Apache Sling Installer Integration Tests</name>
33 <description>Integration tests of the Sling installer bundle</description>
34
35 <properties>
36 <exam.version>3.0.3</exam.version>
37 <url.version>2.5.2</url.version>
38 <pax.exam.log.level>INFO</pax.exam.log.level>
39 <pax.vm.options>-Xmx256M -XX:MaxPermSize=256m</pax.vm.options>
40 <installer.configuration.version>1.1.3-SNAPSHOT</installer.configuration.version>
41
42 <argLine>${pax.vm.options}</argLine>
43
44 <!-- BundleInstallStressTest parameters -->
45 <BundleInstallStressTest.default.bundles.folder>${project.build.directory}/bundle-install-stress-test-bundles</BundleInstallStressTest.default.bundles.folder>
46 <osgi.installer.BundleInstallStressTest.bundles.folder>${BundleInstallStressTest.default.bundles.folder}</osgi.installer.BundleInstallStressTest.bundles.folder>
47 <osgi.installer.BundleInstallStressTest.cycle.count>10</osgi.installer.BundleInstallStressTest.cycle.count>
48 <osgi.installer.BundleInstallStressTest.expect.timeout.seconds>30</osgi.installer.BundleInstallStressTest.expect.timeout.seconds>
49 </properties>
50
51 <scm>
52 <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-it.git</connection>
53 <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-it.git</developerConnection>
54 <url>https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-installer-it.git</url>
55 </scm>
56
57 <build>
58 <plugins>
59 <plugin>
60 <groupId>org.apache.rat</groupId>
61 <artifactId>apache-rat-plugin</artifactId>
62 <configuration>
63 <excludes>
64 <exclude>src/test/resources/blacklisttest/sling_bootstrap.txt</exclude>
65 <exclude>src/test/resources/blacklisttestempty/sling_bootstrap.txt</exclude>
66 <exclude>src/test/resources/sling_bootstrap.txt</exclude>
67 </excludes>
68 </configuration>
69 </plugin>
70 <plugin>
71 <groupId>org.apache.maven.plugins</groupId>
72 <artifactId>maven-surefire-plugin</artifactId>
73 <configuration>
74 <systemProperties>
75 <property>
76 <name>pax.exam.log.level</name>
77 <value>${pax.exam.log.level}</value>
78 </property>
79 <property>
80 <name>pax.exam.debug.port</name>
81 <value>${pax.exam.debug.port}</value>
82 </property>
83 <property>
84 <name>osgi.installer.pom.version</name>
85 <value>${project.version}</value>
86 </property>
87 <property>
88 <name>installer.configuration.version</name>
89 <value>${installer.configuration.version}</value>
90 </property>
91 <property>
92 <name>osgi.installer.base.dir</name>
93 <value>${project.build.directory}</value>
94 </property>
95 <property>
96 <name>osgi.installer.BundleInstallStressTest.bundles.folder</name>
97 <value>${osgi.installer.BundleInstallStressTest.bundles.folder}</value>
98 </property>
99 <property>
100 <name>osgi.installer.BundleInstallStressTest.cycle.count</name>
101 <value>${osgi.installer.BundleInstallStressTest.cycle.count}</value>
102 </property>
103 <property>
104 <name>osgi.installer.BundleInstallStressTest.expect.timeout.seconds</name>
105 <value>${osgi.installer.BundleInstallStressTest.expect.timeout.seconds}</value>
106 </property>
107 </systemProperties>
108 </configuration>
109 </plugin>
110 <plugin>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-dependency-plugin</artifactId>
113 <executions>
114 <execution>
115 <id>copy-test-bundles</id>
116 <goals>
117 <goal>copy-dependencies</goal>
118 </goals>
119 <configuration>
120 <outputDirectory>${project.build.directory}/testbundles</outputDirectory>
121 <excludeTransitive>true</excludeTransitive>
122 <includeArtifactIds>org.apache.felix.webconsole</includeArtifactIds>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
127 <plugin>
128 <!--
129 Create several simple test bundles with different version
130 numbers, to test install/upgrade operations.
131 -->
132 <artifactId>maven-antrun-plugin</artifactId>
133 <executions>
134 <execution>
135 <id>testbundle-1.0</id>
136 <phase>compile</phase>
137 <goals>
138 <goal>run</goal>
139 </goals>
140 <configuration>
141 <tasks name="Create testbundle 1.0">
142 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testbundle-1.0.jar">
143 <fileset dir="${project.build.directory}/classes">
144 <include name="META-INF/**" />
145 </fileset>
146 <manifest>
147 <attribute name="Bundle-ManifestVersion" value="2" />
148 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
149 <attribute name="Bundle-SymbolicName" value="osgi-installer-testbundle" />
150 <attribute name="Bundle-Version" value="1.0" />
151 </manifest>
152 </jar>
153 </tasks>
154 </configuration>
155 </execution>
156 <execution>
157 <id>testbundle-1.1</id>
158 <phase>compile</phase>
159 <goals>
160 <goal>run</goal>
161 </goals>
162 <configuration>
163 <tasks name="Create testbundle 1.1">
164 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testbundle-1.1.jar">
165 <fileset dir="${project.build.directory}/classes">
166 <include name="META-INF/**" />
167 </fileset>
168 <manifest>
169 <attribute name="Bundle-ManifestVersion" value="2" />
170 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
171 <attribute name="Bundle-SymbolicName" value="osgi-installer-testbundle" />
172 <attribute name="Bundle-Version" value="1.1" />
173 </manifest>
174 </jar>
175 </tasks>
176 </configuration>
177 </execution>
178 <execution>
179 <id>testbundle-1.2</id>
180 <phase>compile</phase>
181 <goals>
182 <goal>run</goal>
183 </goals>
184 <configuration>
185 <tasks name="Create testbundle 1.2">
186 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testbundle-1.2.jar">
187 <fileset dir="${project.build.directory}/classes">
188 <include name="META-INF/**" />
189 </fileset>
190 <manifest>
191 <attribute name="Bundle-ManifestVersion" value="2" />
192 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
193 <attribute name="Bundle-SymbolicName" value="osgi-installer-testbundle" />
194 <attribute name="Bundle-Version" value="1.2" />
195 <attribute name="Export-Package" value="com.example.testbundle.somepackage" />
196 </manifest>
197 </jar>
198 </tasks>
199 </configuration>
200 </execution>
201 <execution>
202 <id>testA-1.0</id>
203 <phase>compile</phase>
204 <goals>
205 <goal>run</goal>
206 </goals>
207 <configuration>
208 <tasks name="Create testA bundle 1.0">
209 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testA-1.0.jar">
210 <fileset dir="${project.build.directory}/classes">
211 <include name="META-INF/**" />
212 </fileset>
213 <manifest>
214 <attribute name="Bundle-ManifestVersion" value="2" />
215 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
216 <attribute name="Bundle-SymbolicName" value="osgi-installer-testA" />
217 <attribute name="Bundle-Version" value="1.0" />
218 </manifest>
219 </jar>
220 </tasks>
221 </configuration>
222 </execution>
223 <execution>
224 <id>testB-1.0</id>
225 <phase>compile</phase>
226 <goals>
227 <goal>run</goal>
228 </goals>
229 <configuration>
230 <tasks name="Create testB bundle 1.0">
231 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testB-1.0.jar">
232 <fileset dir="${project.build.directory}/classes">
233 <include name="**/a/**" />
234 <include name="META-INF/**" />
235 </fileset>
236 <manifest>
237 <attribute name="Bundle-ManifestVersion" value="2" />
238 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
239 <attribute name="Bundle-SymbolicName" value="osgi-installer-testB" />
240 <attribute name="Export-Package" value="org.apache.sling.installer.it.a;version=&quot;1.0&quot;" />
241 <attribute name="Bundle-Version" value="1.0" />
242 </manifest>
243 </jar>
244 </tasks>
245 </configuration>
246 </execution>
247 <execution>
248 <id>needsB-1.0</id>
249 <phase>compile</phase>
250 <goals>
251 <goal>run</goal>
252 </goals>
253 <configuration>
254 <tasks name="Create needsB bundle">
255 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-needsB.jar">
256 <fileset dir="${project.build.directory}/classes">
257 <include name="**/b/**" />
258 <include name="META-INF/**" />
259 </fileset>
260 <manifest>
261 <attribute name="Bundle-ManifestVersion" value="2" />
262 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
263 <attribute name="Bundle-SymbolicName" value="osgi-installer-needsB" />
264 <attribute name="Bundle-Version" value="1.0" />
265 <attribute name="Import-Package" value="org.apache.sling.installer.it.a;version=&quot;1.0&quot;" />
266 </manifest>
267 </jar>
268 </tasks>
269 </configuration>
270 </execution>
271 <execution>
272 <id>snapshota-1.0</id>
273 <phase>compile</phase>
274 <goals>
275 <goal>run</goal>
276 </goals>
277 <configuration>
278 <tasks name="Create snap bundle">
279 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-snap.jar">
280 <fileset dir="${project.build.directory}/classes">
281 <include name="**/b/**" />
282 <include name="META-INF/**" />
283 </fileset>
284 <manifest>
285 <attribute name="Bundle-ManifestVersion" value="2" />
286 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
287 <attribute name="Bundle-SymbolicName" value="osgi-installer-snapshot-test" />
288 <!--
289 Need to use OSGi-compliant version, so .SNAPSHOT not -SNAPSHOT.
290 In real bundles, bnd and similar tools to the conversion.
291 -->
292 <attribute name="Bundle-Version" value="1.0.0.SNAPSHOT" />
293 <attribute name="SNAPSHOT" value="A" />
294 </manifest>
295 </jar>
296 </tasks>
297 </configuration>
298 </execution>
299 <execution>
300 <id>snapshotb-1.0</id>
301 <phase>compile</phase>
302 <goals>
303 <goal>run</goal>
304 </goals>
305 <configuration>
306 <tasks name="Create snapb bundle">
307 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-snapb.jar">
308 <fileset dir="${project.build.directory}/classes">
309 <include name="**/b/**" />
310 <include name="META-INF/**" />
311 </fileset>
312 <manifest>
313 <attribute name="Bundle-ManifestVersion" value="2" />
314 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
315 <attribute name="Bundle-SymbolicName" value="osgi-installer-snapshot-test" />
316 <!--
317 Need to use OSGi-compliant version, so .SNAPSHOT not -SNAPSHOT.
318 In real bundles, bnd and similar tools to the conversion.
319 -->
320 <attribute name="Bundle-Version" value="1.0.0.SNAPSHOT" />
321 <attribute name="SNAPSHOT" value="B" />
322 </manifest>
323 </jar>
324 </tasks>
325 </configuration>
326 </execution>
327 <execution>
328 <id>snapshotc-1.0</id>
329 <phase>compile</phase>
330 <goals>
331 <goal>run</goal>
332 </goals>
333 <configuration>
334 <tasks name="Create snapc bundle">
335 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-snapc.jar">
336 <fileset dir="${project.build.directory}/classes">
337 <include name="**/b/**" />
338 <include name="META-INF/**" />
339 </fileset>
340 <manifest>
341 <attribute name="Bundle-ManifestVersion" value="2" />
342 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
343 <attribute name="Bundle-SymbolicName" value="osgi-installer-snapshot-test" />
344 <!--
345 Need to use OSGi-compliant version, so .SNAPSHOT not -SNAPSHOT.
346 In real bundles, bnd and similar tools to the conversion.
347 -->
348 <attribute name="Bundle-Version" value="1.0.0.SNAPSHOT" />
349 <attribute name="SNAPSHOT" value="C" />
350 </manifest>
351 </jar>
352 </tasks>
353 </configuration>
354 </execution>
355 <execution>
356 <id>missing-headers</id>
357 <phase>compile</phase>
358 <goals>
359 <goal>run</goal>
360 </goals>
361 <configuration>
362 <tasks name="Create snapc bundle">
363 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-notabundle.jar">
364 <fileset dir="${project.build.directory}/classes">
365 <include name="META-INF/**" />
366 </fileset>
367 <manifest>
368 <attribute name="Bundle-ManifestVersion" value="2" />
369 </manifest>
370 </jar>
371 </tasks>
372 </configuration>
373 </execution>
374 <execution>
375 <id>fragmentA-1.0</id>
376 <phase>compile</phase>
377 <goals>
378 <goal>run</goal>
379 </goals>
380 <configuration>
381 <tasks name="Create fragment bundle 1.0">
382 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testfragment-1.0.jar">
383 <fileset dir="${project.build.directory}/classes">
384 <include name="META-INF/**" />
385 </fileset>
386 <manifest>
387 <attribute name="Bundle-ManifestVersion" value="2" />
388 <attribute name="Bundle-Name" value="OSGi controller test fragment bundle" />
389 <attribute name="Fragment-Host" value="osgi-installer-testbundle" />
390 <attribute name="Bundle-Version" value="1.0" />
391 <attribute name="Bundle-SymbolicName" value="osgi-installer-testfragment" />
392 <attribute name="Export-Package" value="com.example.testfragment.fragmentpackage" />
393 </manifest>
394 </jar>
395 </tasks>
396 </configuration>
397 </execution>
398 <execution>
399 <id>invalid-version</id>
400 <phase>compile</phase>
401 <goals>
402 <goal>run</goal>
403 </goals>
404 <configuration>
405 <tasks name="Create invalid-version bundle">
406 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-invalid-version.jar">
407 <fileset dir="${project.build.directory}/classes">
408 <include name="META-INF/**" />
409 </fileset>
410 <manifest>
411 <attribute name="Bundle-ManifestVersion" value="2" />
412 <attribute name="Bundle-Name" value="OSGi controller test bundle, invalid version number" />
413 <attribute name="Bundle-SymbolicName" value="osgi-installer-invalid-version-test" />
414 <!--
415 Use -SNAPSHOT to make bundle version number invalid.
416 In real bundles, bnd and similar tools do the conversion to
417 valid version strings.
418 -->
419 <attribute name="Bundle-Version" value="1.0.0-SNAPSHOT" />
420 </manifest>
421 </jar>
422 </tasks>
423 </configuration>
424 </execution>
425 <execution>
426 <id>create-test-bundles</id>
427 <phase>test-compile</phase>
428 <configuration>
429 <tasks>
430 <!-- Copy a set of distinct valid bundles for the BundleInstallStressTest -->
431 <mkdir dir="${BundleInstallStressTest.default.bundles.folder}" />
432 <copy todir="${BundleInstallStressTest.default.bundles.folder}">
433 <fileset dir="${project.build.directory}">
434 <include name="*testbundle-1.2.jar" />
435 <include name="*testB-1.0.jar" />
436 <include name="*testA-1.0.jar" />
437 <include name="*needsB.jar" />
438 <include name="*testfragment-1.0.jar" />
439 </fileset>
440 </copy>
441 </tasks>
442 </configuration>
443 <goals>
444 <goal>run</goal>
445 </goals>
446 </execution>
447 </executions>
448 </plugin>
449 </plugins>
450 </build>
451
452 <dependencies>
453 <dependency>
454 <groupId>org.apache.sling</groupId>
455 <artifactId>org.apache.sling.installer.factory.configuration</artifactId>
456 <version>${installer.configuration.version}</version>
457 <scope>provided</scope>
458 </dependency>
459 <dependency>
460 <groupId>org.apache.sling</groupId>
461 <artifactId>org.apache.sling.installer.core</artifactId>
462 <version>${project.version}</version>
463 <scope>provided</scope>
464 </dependency>
465 <dependency>
466 <groupId>org.osgi</groupId>
467 <artifactId>org.osgi.service.cm</artifactId>
468 <version>1.5.0</version>
469 <scope>provided</scope>
470 </dependency>
471 <dependency>
472 <groupId>org.apache.sling</groupId>
473 <artifactId>org.apache.sling.commons.log</artifactId>
474 <version>2.1.2</version>
475 <scope>provided</scope>
476 </dependency>
477 <dependency>
478 <groupId>org.ops4j.pax.exam</groupId>
479 <artifactId>pax-exam-container-native</artifactId>
480 <version>${exam.version}</version>
481 <scope>test</scope>
482 </dependency>
483 <dependency>
484 <groupId>org.ops4j.pax.exam</groupId>
485 <artifactId>pax-exam-junit4</artifactId>
486 <version>${exam.version}</version>
487 <scope>test</scope>
488 </dependency>
489 <dependency>
490 <groupId>org.ops4j.pax.exam</groupId>
491 <artifactId>pax-exam-link-mvn</artifactId>
492 <version>${exam.version}</version>
493 <scope>test</scope>
494 </dependency>
495 <dependency>
496 <groupId>org.ops4j.pax.url</groupId>
497 <artifactId>pax-url-aether</artifactId>
498 <version>${url.version}</version>
499 <scope>test</scope>
500 </dependency>
501 <dependency>
502 <groupId>javax.inject</groupId>
503 <artifactId>javax.inject</artifactId>
504 <scope>test</scope>
505 </dependency>
506 <dependency>
507 <groupId>org.apache.felix</groupId>
508 <artifactId>org.apache.felix.framework</artifactId>
509 <version>5.6.1</version>
510 <scope>test</scope>
511 </dependency>
512 <dependency>
513 <groupId>junit</groupId>
514 <artifactId>junit</artifactId>
515 </dependency>
516 </dependencies>
517 </project>