blob: b6248113609b87b1eb209623a881bdc504bc62b2 [file] [log] [blame]
Clement Escoffier1c47f282013-02-13 16:26:18 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
19<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xmlns="http://maven.apache.org/POM/4.0.0"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <parent>
23 <groupId>org.apache.felix</groupId>
24 <artifactId>felix-parent</artifactId>
Clement Escoffiered4ca022013-03-13 15:27:20 +000025 <version>2.1</version>
Clement Escoffier1c47f282013-02-13 16:26:18 +000026 <relativePath>../../../pom/pom.xml</relativePath>
27 </parent>
28 <modelVersion>4.0.0</modelVersion>
29 <artifactId>org.apache.felix.ipojo.runtime.core-it</artifactId>
30 <version>1.9.0-SNAPSHOT</version>
31 <name>Apache Felix iPOJO Runtime Project ~ Core Integration Tests</name>
32 <packaging>pom</packaging>
33
34 <build>
Clement Escoffiera0030f52013-02-18 20:43:25 +000035 <plugins>
36 <plugin>
37 <groupId>org.apache.maven.plugins</groupId>
38 <artifactId>maven-compiler-plugin</artifactId>
39 <version>2.5.1</version>
40 <configuration>
41 <source>1.6</source>
42 <target>1.6</target>
43 </configuration>
44 </plugin>
45
46 <plugin>
47 <groupId>org.apache.servicemix.tooling</groupId>
48 <artifactId>depends-maven-plugin</artifactId>
49 <version>1.2</version>
50 <executions>
51 <execution>
52 <id>generate-config</id>
53 <goals>
54 <goal>generate-depends-file</goal>
55 </goals>
56 </execution>
57 </executions>
58 </plugin>
Clement Escoffiered4ca022013-03-13 15:27:20 +000059
60 <plugin>
61 <groupId>org.apache.rat</groupId>
62 <artifactId>apache-rat-plugin</artifactId>
63 <executions>
64 <execution>
65 <phase>verify</phase>
66 <goals>
67 <goal>check</goal>
68 </goals>
69 </execution>
70 </executions>
71 <configuration>
72 <!-- check src only (except remote resources additions) -->
73 <includes>
74 <include>src/**</include>
75 </includes>
76 <excludes>
77 <exclude>src/main/appended-resources/**</exclude>
78 <exclude>**/*.iml</exclude> <!-- Exclude iml files -->
Clement Escoffier48877b22013-04-09 15:31:02 +000079 <exclude>src/it/*/target/**/*</exclude> <!-- Exclude sub target folders -->
Clement Escoffiered4ca022013-03-13 15:27:20 +000080 </excludes>
81 </configuration>
82 </plugin>
Clement Escoffiera0030f52013-02-18 20:43:25 +000083 </plugins>
84
Clement Escoffier1c47f282013-02-13 16:26:18 +000085 </build>
86
Clement Escoffiera0030f52013-02-18 20:43:25 +000087 <properties>
Clement Escoffierd18900c2013-03-18 18:29:08 +000088 <exam.version>3.0.1</exam.version>
Clement Escoffiera0030f52013-02-18 20:43:25 +000089 <url.version>1.5.1</url.version>
Clement Escoffier2545db72013-05-05 13:55:09 +000090
91
92
Clement Escoffiera0030f52013-02-18 20:43:25 +000093 </properties>
94
95 <dependencies>
96
97 <dependency>
98 <groupId>org.ops4j.pax.exam</groupId>
99 <artifactId>pax-exam-container-native</artifactId>
100 <version>${exam.version}</version>
101 <scope>test</scope>
102 </dependency>
103
104 <dependency>
105 <groupId>org.ops4j.pax.exam</groupId>
106 <artifactId>pax-exam-junit4</artifactId>
107 <version>${exam.version}</version>
108 <scope>test</scope>
109 </dependency>
110
111 <dependency>
112 <groupId>org.ops4j.pax.exam</groupId>
113 <artifactId>pax-exam-link-mvn</artifactId>
114 <version>${exam.version}</version>
115 <scope>test</scope>
116 </dependency>
117
118 <dependency>
119 <groupId>org.ops4j.pax.url</groupId>
120 <artifactId>pax-url-aether</artifactId>
121 <version>${url.version}</version>
122 <scope>test</scope>
123 </dependency>
124
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000125 <!--<dependency>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000126 <groupId>org.apache.felix</groupId>
127 <artifactId>org.apache.felix.framework</artifactId>
128 <version>4.2.0</version>
129 <scope>test</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000130 </dependency>-->
Clement Escoffiera0030f52013-02-18 20:43:25 +0000131
132 <dependency>
133 <groupId>ch.qos.logback</groupId>
134 <artifactId>logback-core</artifactId>
135 <version>0.9.6</version>
136 <scope>test</scope>
137 </dependency>
138
139 <dependency>
140 <groupId>ch.qos.logback</groupId>
141 <artifactId>logback-classic</artifactId>
142 <version>0.9.6</version>
143 <scope>test</scope>
144 </dependency>
145
Clement Escoffiera0030f52013-02-18 20:43:25 +0000146 <dependency>
147 <groupId>junit</groupId>
148 <artifactId>junit</artifactId>
149 <version>4.9</version>
150 <scope>test</scope>
151 </dependency>
152
153 <dependency>
154 <groupId>org.mockito</groupId>
Clement Escoffiered4ca022013-03-13 15:27:20 +0000155 <artifactId>mockito-all</artifactId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000156 <version>1.9.5</version>
157 </dependency>
158
159 <dependency>
160 <groupId>org.ops4j.pax.tinybundles</groupId>
161 <artifactId>tinybundles</artifactId>
162 <version>1.0.0</version>
163 </dependency>
164
165 <dependency>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000166 <groupId>org.ow2.chameleon.testing</groupId>
167 <artifactId>tinybundles-ipojo</artifactId>
168 <version>0.3.0</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000169 </dependency>
170
171 <dependency>
172 <groupId>org.apache.felix</groupId>
173 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
174 <version>1.9.0-SNAPSHOT</version>
175 </dependency>
176
177 <dependency>
178 <groupId>org.apache.felix</groupId>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000179 <artifactId>org.apache.felix.ipojo</artifactId>
180 <version>1.9.0-SNAPSHOT</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000181 <exclusions>
182 <exclusion>
183 <groupId>org.osgi</groupId>
184 <artifactId>org.osgi.core</artifactId>
185 </exclusion>
186 </exclusions>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000187 </dependency>
188
189 <dependency>
190 <groupId>org.apache.felix</groupId>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000191 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
192 <version>1.9.0-SNAPSHOT</version>
193 </dependency>
194
195 <dependency>
196 <groupId>org.apache.felix</groupId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000197 <artifactId>org.apache.felix.configadmin</artifactId>
198 <version>1.6.0</version>
199 <scope>test</scope>
200 </dependency>
201
202 <dependency>
203 <groupId>commons-io</groupId>
204 <artifactId>commons-io</artifactId>
205 <version>2.4</version>
206 </dependency>
207
208 <dependency>
209 <groupId>org.ow2.chameleon.testing</groupId>
210 <artifactId>osgi-helpers</artifactId>
Clement Escoffier2545db72013-05-05 13:55:09 +0000211 <version>0.6.1-SNAPSHOT</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000212 <scope>test</scope>
213 </dependency>
214
Clement Escoffiera0030f52013-02-18 20:43:25 +0000215
216 <dependency>
217 <groupId>org.apache.felix</groupId>
218 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
219 <!--
220 We use the released version as we don't really have to do any behavioral test on the handler in the core
221 test.
222 -->
223 <version>1.8.0</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000224 <exclusions>
225 <exclusion>
226 <groupId>org.osgi</groupId>
227 <artifactId>org.osgi.core</artifactId>
228 </exclusion>
229 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000230 </dependency>
231
232 <dependency>
233 <groupId>org.apache.felix</groupId>
234 <artifactId>org.apache.felix.log</artifactId>
235 <version>1.0.1</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000236 <exclusions>
237 <exclusion>
238 <groupId>org.osgi</groupId>
239 <artifactId>org.osgi.core</artifactId>
240 </exclusion>
241 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000242 </dependency>
243
244 <dependency>
245 <groupId>org.ops4j.pax.url</groupId>
246 <artifactId>pax-url-wrap</artifactId>
247 <version>1.5.2</version>
248 </dependency>
249 </dependencies>
250
Clement Escoffier1c47f282013-02-13 16:26:18 +0000251 <profiles>
252 <profile>
253 <id>release</id>
254 <build>
255 <plugins>
256 <plugin>
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-assembly-plugin</artifactId>
259 <executions>
260 <execution>
261 <id>make-assembly</id>
262 <phase>package</phase>
263 <goals>
264 <goal>single</goal>
265 </goals>
266 <configuration>
267 <descriptorRefs>
268 <descriptorRef>project</descriptorRef>
269 </descriptorRefs>
270 <!-- we don't want to attach all the assemblies, such as bz2 -->
271 <attach>false</attach>
272 </configuration>
273 </execution>
274 </executions>
275 </plugin>
276 <plugin>
277 <!-- only attach the project and bin assemblies, in tar.gz and zip flavors -->
278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>build-helper-maven-plugin</artifactId>
280 <executions>
281 <execution>
282 <id>attach-assemblies</id>
283 <phase>package</phase>
284 <goals>
285 <goal>attach-artifact</goal>
286 </goals>
287 <configuration>
288 <artifacts>
289 <artifact>
290 <file>
291 ${project.build.directory}/${project.artifactId}-${project.version}-project.tar.gz
292 </file>
293 <classifier>project</classifier>
294 <type>tar.gz</type>
295 </artifact>
296 <artifact>
297 <file>
298 ${project.build.directory}/${project.artifactId}-${project.version}-project.zip
299 </file>
300 <classifier>project</classifier>
301 <type>zip</type>
302 </artifact>
303 </artifacts>
304 </configuration>
305 </execution>
306 </executions>
307 </plugin>
308 </plugins>
309 </build>
310 </profile>
311
312 <profile>
313 <id>knopflerfish</id>
314 <activation>
315 <activeByDefault>false</activeByDefault>
316 <property>
317 <name>pax.exam.framework</name>
318 <value>knopflerfish</value>
319 </property>
320 </activation>
321 <properties>
322 <pax.exam.framework>knopflerfish</pax.exam.framework>
323 </properties>
324 <repositories>
325 <repository>
326 <id>knopflerfish-releases</id>
327 <url>http://www.knopflerfish.org/maven2</url>
328 </repository>
329 </repositories>
330 <dependencies>
331 <dependency>
332 <groupId>org.knopflerfish</groupId>
333 <artifactId>framework</artifactId>
334 <version>5.2.0</version>
335 <scope>test</scope>
336 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000337 <dependency>
338 <groupId>org.osgi</groupId>
339 <artifactId>org.osgi.core</artifactId>
340 <version>4.3.1</version>
341 <scope>provided</scope>
342 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000343 </dependencies>
344 </profile>
345
346 <profile>
347 <id>equinox</id>
348 <activation>
349 <activeByDefault>false</activeByDefault>
350 <property>
351 <name>pax.exam.framework</name>
352 <value>equinox</value>
353 </property>
354 </activation>
355 <properties>
356 <pax.exam.framework>equinox</pax.exam.framework>
357 </properties>
358 <dependencies>
359 <dependency>
360 <groupId>org.eclipse.tycho</groupId>
361 <artifactId>org.eclipse.osgi</artifactId>
362 <version>3.8.1.v20120830-144521</version>
363 <scope>test</scope>
364 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000365 <dependency>
366 <groupId>org.osgi</groupId>
367 <artifactId>org.osgi.core</artifactId>
368 <version>4.3.1</version>
369 <scope>provided</scope>
370 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000371 </dependencies>
372 </profile>
373
374 <profile>
375 <id>felix</id>
376 <activation>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000377 <activeByDefault>true</activeByDefault>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000378 <property>
379 <name>pax.exam.framework</name>
380 <value>felix</value>
381 </property>
382 </activation>
383 <properties>
384 <pax.exam.framework>felix</pax.exam.framework>
385 </properties>
386 <dependencies>
387 <dependency>
388 <groupId>org.apache.felix</groupId>
389 <artifactId>org.apache.felix.framework</artifactId>
390 <version>4.2.0</version>
391 <scope>test</scope>
392 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000393 <dependency>
394 <groupId>org.osgi</groupId>
395 <artifactId>org.osgi.core</artifactId>
396 <version>4.3.1</version>
397 <scope>provided</scope>
398 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000399 </dependencies>
400 </profile>
401
402 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000403 <!--
404 avoid using the invoker and use a regular reactor instead.
405 it must be coupled with another profile to select the right OSGi framework implementation
406 -->
407 <id>reactor</id>
408
409 <modules>
410 <module>src/it/ipojo-core-annotations-test</module>
411 <module>src/it/ipojo-core-bad-configuration-test</module>
412 <module>src/it/ipojo-core-configuration-admin-test</module>
413 <module>src/it/ipojo-core-configuration-processor-test</module>
414 <module>src/it/ipojo-core-configuration-test</module>
415 <module>src/it/ipojo-core-external-handlers-test</module>
416 <module>src/it/ipojo-core-factory-test</module>
417 <module>src/it/ipojo-core-factory-version-test</module>
418 <module>src/it/ipojo-core-handler-test</module>
419 <module>src/it/ipojo-core-lifecycle-callback-test</module>
420 <module>src/it/ipojo-core-lifecycle-controller-test</module>
421 <module>src/it/ipojo-core-logger-test</module>
422 <module>src/it/ipojo-core-service-dependency-optional-test</module>
423 <module>src/it/ipojo-core-service-dependency-policies</module>
424 <module>src/it/ipojo-core-service-dependency-proxies</module>
425 <module>src/it/ipojo-core-service-dependency-test</module>
426 <module>src/it/ipojo-core-service-providing-test</module>
427 </modules>
428
429 </profile>
430
431 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000432 <id>test</id>
433 <activation>
434 <activeByDefault>true</activeByDefault>
435 </activation>
436 <build>
437 <plugins>
438 <plugin>
439 <groupId>org.apache.maven.plugins</groupId>
440 <artifactId>maven-invoker-plugin</artifactId>
441 <version>1.8</version>
442 <configuration>
443 <streamLogs>true</streamLogs>
444 <goals>
445 <goal>clean</goal>
446 <goal>test</goal>
447 </goals>
448 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000449 <environmentVariables>
450 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
451 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
452 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000453 </configuration>
454 <executions>
455 <execution>
456 <id>regular</id>
457 <goals>
458 <goal>run</goal>
459 </goals>
460 <configuration>
461 <profiles>
462 <profile>felix</profile>
463 </profiles>
464 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
465 </configuration>
466 </execution>
467 </executions>
468 </plugin>
469 </plugins>
470 </build>
471 </profile>
472
473 <profile>
474 <id>test-all</id>
475 <activation>
476 <activeByDefault>false</activeByDefault>
477 </activation>
478 <build>
479 <plugins>
480 <plugin>
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-invoker-plugin</artifactId>
483 <version>1.8</version>
484 <configuration>
485 <streamLogs>true</streamLogs>
486 <goals>
487 <goal>clean</goal>
488 <goal>test</goal>
489 </goals>
490 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000491 <environmentVariables>
492 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
493 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
494 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000495 </configuration>
496 <executions>
497 <execution>
498 <id>equinox-native</id>
499 <goals>
500 <goal>run</goal>
501 </goals>
502 <configuration>
503 <profiles>
504 <profile>equinox</profile>
505 </profiles>
506 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
507
508 </configuration>
509 </execution>
510 <execution>
511 <id>felix-native</id>
512 <goals>
513 <goal>run</goal>
514 </goals>
515 <configuration>
516 <profiles>
517 <profile>felix</profile>
518 </profiles>
519 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
520 </configuration>
521 </execution>
522 <execution>
523 <id>knopflerfish-native</id>
524 <goals>
525 <goal>run</goal>
526 </goals>
527 <configuration>
528 <profiles>
529 <profile>knopflerfish</profile>
530 </profiles>
531 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
532 </configuration>
533 </execution>
534 </executions>
535 </plugin>
536 </plugins>
537 </build>
538 </profile>
539 </profiles>
Clement Escoffierc93b8672013-05-05 13:59:13 +0000540
541 <repositories>
542 <!-- Temporal addition of this repository until the osgi-helper are released -->
543 <!-- TODO remove this before the release -->
544 <repository>
545 <id>ow2.snapshots</id>
546 <url>http://repository.ow2.org/nexus/content/repositories/snapshots/</url>
547 </repository>
548 </repositories>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000549</project>