Update to latest snapshot
[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>22</version>
25 <relativePath>../../parent/pom.xml</relativePath>
26 </parent>
27
28 <artifactId>org.apache.sling.installer.it</artifactId>
29 <version>3.6.5-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>1.5.2</url.version>
38 <pax.exam.log.level>INFO</pax.exam.log.level>
39 <installer.configuration.version>1.1.3-SNAPSHOT</installer.configuration.version>
40
41 <!-- BundleInstallStressTest parameters -->
42 <BundleInstallStressTest.default.bundles.folder>${project.build.directory}/bundle-install-stress-test-bundles</BundleInstallStressTest.default.bundles.folder>
43 <osgi.installer.BundleInstallStressTest.bundles.folder>${BundleInstallStressTest.default.bundles.folder}</osgi.installer.BundleInstallStressTest.bundles.folder>
44 <osgi.installer.BundleInstallStressTest.cycle.count>10</osgi.installer.BundleInstallStressTest.cycle.count>
45 <osgi.installer.BundleInstallStressTest.expect.timeout.seconds>30</osgi.installer.BundleInstallStressTest.expect.timeout.seconds>
46 </properties>
47
48 <scm>
49 <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/installer/it</connection>
50 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/installer/it</developerConnection>
51 <url>http://svn.apache.org/viewvc/sling/installer/it</url>
52 </scm>
53
54 <build>
55 <plugins>
56 <plugin>
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-surefire-plugin</artifactId>
59 <configuration>
60 <systemProperties>
61 <property>
62 <name>pax.exam.log.level</name>
63 <value>${pax.exam.log.level}</value>
64 </property>
65 <property>
66 <name>osgi.installer.pom.version</name>
67 <value>${project.version}</value>
68 </property>
69 <property>
70 <name>installer.configuration.version</name>
71 <value>${installer.configuration.version}</value>
72 </property>
73 <property>
74 <name>osgi.installer.base.dir</name>
75 <value>${project.build.directory}</value>
76 </property>
77 <property>
78 <name>osgi.installer.BundleInstallStressTest.bundles.folder</name>
79 <value>${osgi.installer.BundleInstallStressTest.bundles.folder}</value>
80 </property>
81 <property>
82 <name>osgi.installer.BundleInstallStressTest.cycle.count</name>
83 <value>${osgi.installer.BundleInstallStressTest.cycle.count}</value>
84 </property>
85 <property>
86 <name>osgi.installer.BundleInstallStressTest.expect.timeout.seconds</name>
87 <value>${osgi.installer.BundleInstallStressTest.expect.timeout.seconds}</value>
88 </property>
89 </systemProperties>
90 </configuration>
91 </plugin>
92 <plugin>
93 <groupId>org.apache.maven.plugins</groupId>
94 <artifactId>maven-dependency-plugin</artifactId>
95 <executions>
96 <execution>
97 <id>copy-test-bundles</id>
98 <goals>
99 <goal>copy-dependencies</goal>
100 </goals>
101 <configuration>
102 <outputDirectory>${project.build.directory}/testbundles</outputDirectory>
103 <excludeTransitive>true</excludeTransitive>
104 <includeArtifactIds>org.apache.felix.webconsole</includeArtifactIds>
105 </configuration>
106 </execution>
107 </executions>
108 </plugin>
109 <plugin>
110 <!--
111 Create several simple test bundles with different version
112 numbers, to test install/upgrade operations.
113 -->
114 <artifactId>maven-antrun-plugin</artifactId>
115 <executions>
116 <execution>
117 <id>testbundle-1.0</id>
118 <phase>compile</phase>
119 <goals>
120 <goal>run</goal>
121 </goals>
122 <configuration>
123 <tasks name="Create testbundle 1.0">
124 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testbundle-1.0.jar">
125 <fileset dir="${project.build.directory}/classes">
126 <include name="META-INF/**" />
127 </fileset>
128 <manifest>
129 <attribute name="Bundle-ManifestVersion" value="2" />
130 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
131 <attribute name="Bundle-SymbolicName" value="osgi-installer-testbundle" />
132 <attribute name="Bundle-Version" value="1.0" />
133 </manifest>
134 </jar>
135 </tasks>
136 </configuration>
137 </execution>
138 <execution>
139 <id>testbundle-1.1</id>
140 <phase>compile</phase>
141 <goals>
142 <goal>run</goal>
143 </goals>
144 <configuration>
145 <tasks name="Create testbundle 1.1">
146 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testbundle-1.1.jar">
147 <fileset dir="${project.build.directory}/classes">
148 <include name="META-INF/**" />
149 </fileset>
150 <manifest>
151 <attribute name="Bundle-ManifestVersion" value="2" />
152 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
153 <attribute name="Bundle-SymbolicName" value="osgi-installer-testbundle" />
154 <attribute name="Bundle-Version" value="1.1" />
155 </manifest>
156 </jar>
157 </tasks>
158 </configuration>
159 </execution>
160 <execution>
161 <id>testbundle-1.2</id>
162 <phase>compile</phase>
163 <goals>
164 <goal>run</goal>
165 </goals>
166 <configuration>
167 <tasks name="Create testbundle 1.2">
168 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testbundle-1.2.jar">
169 <fileset dir="${project.build.directory}/classes">
170 <include name="META-INF/**" />
171 </fileset>
172 <manifest>
173 <attribute name="Bundle-ManifestVersion" value="2" />
174 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
175 <attribute name="Bundle-SymbolicName" value="osgi-installer-testbundle" />
176 <attribute name="Bundle-Version" value="1.2" />
177 <attribute name="Export-Package" value="com.example.testbundle.somepackage" />
178 </manifest>
179 </jar>
180 </tasks>
181 </configuration>
182 </execution>
183 <execution>
184 <id>testA-1.0</id>
185 <phase>compile</phase>
186 <goals>
187 <goal>run</goal>
188 </goals>
189 <configuration>
190 <tasks name="Create testA bundle 1.0">
191 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testA-1.0.jar">
192 <fileset dir="${project.build.directory}/classes">
193 <include name="META-INF/**" />
194 </fileset>
195 <manifest>
196 <attribute name="Bundle-ManifestVersion" value="2" />
197 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
198 <attribute name="Bundle-SymbolicName" value="osgi-installer-testA" />
199 <attribute name="Bundle-Version" value="1.0" />
200 </manifest>
201 </jar>
202 </tasks>
203 </configuration>
204 </execution>
205 <execution>
206 <id>testB-1.0</id>
207 <phase>compile</phase>
208 <goals>
209 <goal>run</goal>
210 </goals>
211 <configuration>
212 <tasks name="Create testB bundle 1.0">
213 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testB-1.0.jar">
214 <fileset dir="${project.build.directory}/classes">
215 <include name="**/a/**" />
216 <include name="META-INF/**" />
217 </fileset>
218 <manifest>
219 <attribute name="Bundle-ManifestVersion" value="2" />
220 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
221 <attribute name="Bundle-SymbolicName" value="osgi-installer-testB" />
222 <attribute name="Export-Package" value="org.apache.sling.installer.it.a;version=&quot;1.0&quot;" />
223 <attribute name="Bundle-Version" value="1.0" />
224 </manifest>
225 </jar>
226 </tasks>
227 </configuration>
228 </execution>
229 <execution>
230 <id>needsB-1.0</id>
231 <phase>compile</phase>
232 <goals>
233 <goal>run</goal>
234 </goals>
235 <configuration>
236 <tasks name="Create needsB bundle">
237 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-needsB.jar">
238 <fileset dir="${project.build.directory}/classes">
239 <include name="**/b/**" />
240 <include name="META-INF/**" />
241 </fileset>
242 <manifest>
243 <attribute name="Bundle-ManifestVersion" value="2" />
244 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
245 <attribute name="Bundle-SymbolicName" value="osgi-installer-needsB" />
246 <attribute name="Bundle-Version" value="1.0" />
247 <attribute name="Import-Package" value="org.apache.sling.installer.it.a;version=&quot;1.0&quot;" />
248 </manifest>
249 </jar>
250 </tasks>
251 </configuration>
252 </execution>
253 <execution>
254 <id>snapshota-1.0</id>
255 <phase>compile</phase>
256 <goals>
257 <goal>run</goal>
258 </goals>
259 <configuration>
260 <tasks name="Create snap bundle">
261 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-snap.jar">
262 <fileset dir="${project.build.directory}/classes">
263 <include name="**/b/**" />
264 <include name="META-INF/**" />
265 </fileset>
266 <manifest>
267 <attribute name="Bundle-ManifestVersion" value="2" />
268 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
269 <attribute name="Bundle-SymbolicName" value="osgi-installer-snapshot-test" />
270 <!--
271 Need to use OSGi-compliant version, so .SNAPSHOT not -SNAPSHOT.
272 In real bundles, bnd and similar tools to the conversion.
273 -->
274 <attribute name="Bundle-Version" value="1.0.0.SNAPSHOT" />
275 <attribute name="SNAPSHOT" value="A" />
276 </manifest>
277 </jar>
278 </tasks>
279 </configuration>
280 </execution>
281 <execution>
282 <id>snapshotb-1.0</id>
283 <phase>compile</phase>
284 <goals>
285 <goal>run</goal>
286 </goals>
287 <configuration>
288 <tasks name="Create snapb bundle">
289 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-snapb.jar">
290 <fileset dir="${project.build.directory}/classes">
291 <include name="**/b/**" />
292 <include name="META-INF/**" />
293 </fileset>
294 <manifest>
295 <attribute name="Bundle-ManifestVersion" value="2" />
296 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
297 <attribute name="Bundle-SymbolicName" value="osgi-installer-snapshot-test" />
298 <!--
299 Need to use OSGi-compliant version, so .SNAPSHOT not -SNAPSHOT.
300 In real bundles, bnd and similar tools to the conversion.
301 -->
302 <attribute name="Bundle-Version" value="1.0.0.SNAPSHOT" />
303 <attribute name="SNAPSHOT" value="B" />
304 </manifest>
305 </jar>
306 </tasks>
307 </configuration>
308 </execution>
309 <execution>
310 <id>snapshotc-1.0</id>
311 <phase>compile</phase>
312 <goals>
313 <goal>run</goal>
314 </goals>
315 <configuration>
316 <tasks name="Create snapc bundle">
317 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-snapc.jar">
318 <fileset dir="${project.build.directory}/classes">
319 <include name="**/b/**" />
320 <include name="META-INF/**" />
321 </fileset>
322 <manifest>
323 <attribute name="Bundle-ManifestVersion" value="2" />
324 <attribute name="Bundle-Name" value="OSGi controller test bundle" />
325 <attribute name="Bundle-SymbolicName" value="osgi-installer-snapshot-test" />
326 <!--
327 Need to use OSGi-compliant version, so .SNAPSHOT not -SNAPSHOT.
328 In real bundles, bnd and similar tools to the conversion.
329 -->
330 <attribute name="Bundle-Version" value="1.0.0.SNAPSHOT" />
331 <attribute name="SNAPSHOT" value="C" />
332 </manifest>
333 </jar>
334 </tasks>
335 </configuration>
336 </execution>
337 <execution>
338 <id>missing-headers</id>
339 <phase>compile</phase>
340 <goals>
341 <goal>run</goal>
342 </goals>
343 <configuration>
344 <tasks name="Create snapc bundle">
345 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-notabundle.jar">
346 <fileset dir="${project.build.directory}/classes">
347 <include name="META-INF/**" />
348 </fileset>
349 <manifest>
350 <attribute name="Bundle-ManifestVersion" value="2" />
351 </manifest>
352 </jar>
353 </tasks>
354 </configuration>
355 </execution>
356 <execution>
357 <id>fragmentA-1.0</id>
358 <phase>compile</phase>
359 <goals>
360 <goal>run</goal>
361 </goals>
362 <configuration>
363 <tasks name="Create fragment bundle 1.0">
364 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-testfragment-1.0.jar">
365 <fileset dir="${project.build.directory}/classes">
366 <include name="META-INF/**" />
367 </fileset>
368 <manifest>
369 <attribute name="Bundle-ManifestVersion" value="2" />
370 <attribute name="Bundle-Name" value="OSGi controller test fragment bundle" />
371 <attribute name="Fragment-Host" value="osgi-installer-testbundle" />
372 <attribute name="Bundle-Version" value="1.0" />
373 <attribute name="Bundle-SymbolicName" value="osgi-installer-testfragment" />
374 <attribute name="Export-Package" value="com.example.testfragment.fragmentpackage" />
375 </manifest>
376 </jar>
377 </tasks>
378 </configuration>
379 </execution>
380 <execution>
381 <id>invalid-version</id>
382 <phase>compile</phase>
383 <goals>
384 <goal>run</goal>
385 </goals>
386 <configuration>
387 <tasks name="Create invalid-version bundle">
388 <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-invalid-version.jar">
389 <fileset dir="${project.build.directory}/classes">
390 <include name="META-INF/**" />
391 </fileset>
392 <manifest>
393 <attribute name="Bundle-ManifestVersion" value="2" />
394 <attribute name="Bundle-Name" value="OSGi controller test bundle, invalid version number" />
395 <attribute name="Bundle-SymbolicName" value="osgi-installer-invalid-version-test" />
396 <!--
397 Use -SNAPSHOT to make bundle version number invalid.
398 In real bundles, bnd and similar tools do the conversion to
399 valid version strings.
400 -->
401 <attribute name="Bundle-Version" value="1.0.0-SNAPSHOT" />
402 </manifest>
403 </jar>
404 </tasks>
405 </configuration>
406 </execution>
407 <execution>
408 <id>create-test-bundles</id>
409 <phase>test-compile</phase>
410 <configuration>
411 <tasks>
412 <!-- Copy a set of distinct valid bundles for the BundleInstallStressTest -->
413 <mkdir dir="${BundleInstallStressTest.default.bundles.folder}" />
414 <copy todir="${BundleInstallStressTest.default.bundles.folder}">
415 <fileset dir="${project.build.directory}">
416 <include name="*testbundle-1.2.jar" />
417 <include name="*testB-1.0.jar" />
418 <include name="*testA-1.0.jar" />
419 <include name="*needsB.jar" />
420 <include name="*testfragment-1.0.jar" />
421 </fileset>
422 </copy>
423 </tasks>
424 </configuration>
425 <goals>
426 <goal>run</goal>
427 </goals>
428 </execution>
429 </executions>
430 </plugin>
431 </plugins>
432 </build>
433
434 <dependencies>
435 <dependency>
436 <groupId>org.apache.sling</groupId>
437 <artifactId>org.apache.sling.installer.factory.configuration</artifactId>
438 <version>${installer.configuration.version}</version>
439 <scope>provided</scope>
440 </dependency>
441 <dependency>
442 <groupId>org.apache.sling</groupId>
443 <artifactId>org.apache.sling.installer.core</artifactId>
444 <version>${project.version}</version>
445 <scope>provided</scope>
446 </dependency>
447 <dependency>
448 <groupId>org.apache.sling</groupId>
449 <artifactId>org.apache.sling.commons.log</artifactId>
450 <version>2.1.2</version>
451 <scope>provided</scope>
452 </dependency>
453 <dependency>
454 <groupId>org.osgi</groupId>
455 <artifactId>org.osgi.compendium</artifactId>
456 <version>4.2.0</version>
457 <scope>provided</scope>
458 </dependency>
459 <dependency>
460 <groupId>org.ops4j.pax.exam</groupId>
461 <artifactId>pax-exam-container-native</artifactId>
462 <version>${exam.version}</version>
463 <scope>test</scope>
464 </dependency>
465 <dependency>
466 <groupId>org.ops4j.pax.exam</groupId>
467 <artifactId>pax-exam-junit4</artifactId>
468 <version>${exam.version}</version>
469 <scope>test</scope>
470 </dependency>
471 <dependency>
472 <groupId>org.ops4j.pax.exam</groupId>
473 <artifactId>pax-exam-link-mvn</artifactId>
474 <version>${exam.version}</version>
475 <scope>test</scope>
476 </dependency>
477 <dependency>
478 <groupId>org.ops4j.pax.url</groupId>
479 <artifactId>pax-url-aether</artifactId>
480 <version>${url.version}</version>
481 <scope>test</scope>
482 </dependency>
483 <dependency>
484 <groupId>org.apache.felix</groupId>
485 <artifactId>org.apache.felix.framework</artifactId>
486 <version>4.4.1</version>
487 <scope>test</scope>
488 </dependency>
489 <dependency>
490 <groupId>junit</groupId>
491 <artifactId>junit</artifactId>
492 </dependency>
493 </dependencies>
494 </project>