blob: 1712f899470671dfdf770bf233dff6ab76b08bf2 [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>
Clement Escoffierdc197b32013-05-07 07:39:24 +000078 <exclude>**/*.iml</exclude>
79 <!-- Exclude iml files -->
80 <exclude>src/it/*/target/**/*</exclude>
81 <!-- Exclude sub target folders -->
Clement Escoffiered4ca022013-03-13 15:27:20 +000082 </excludes>
83 </configuration>
84 </plugin>
Clement Escoffiera0030f52013-02-18 20:43:25 +000085 </plugins>
86
Clement Escoffier1c47f282013-02-13 16:26:18 +000087 </build>
88
Clement Escoffiera0030f52013-02-18 20:43:25 +000089 <properties>
Clement Escoffierd18900c2013-03-18 18:29:08 +000090 <exam.version>3.0.1</exam.version>
Clement Escoffiera0030f52013-02-18 20:43:25 +000091 <url.version>1.5.1</url.version>
Clement Escoffier2545db72013-05-05 13:55:09 +000092
93
Clement Escoffiera0030f52013-02-18 20:43:25 +000094 </properties>
95
96 <dependencies>
97
98 <dependency>
99 <groupId>org.ops4j.pax.exam</groupId>
100 <artifactId>pax-exam-container-native</artifactId>
101 <version>${exam.version}</version>
102 <scope>test</scope>
103 </dependency>
104
105 <dependency>
106 <groupId>org.ops4j.pax.exam</groupId>
107 <artifactId>pax-exam-junit4</artifactId>
108 <version>${exam.version}</version>
109 <scope>test</scope>
110 </dependency>
111
112 <dependency>
113 <groupId>org.ops4j.pax.exam</groupId>
114 <artifactId>pax-exam-link-mvn</artifactId>
115 <version>${exam.version}</version>
116 <scope>test</scope>
117 </dependency>
118
119 <dependency>
120 <groupId>org.ops4j.pax.url</groupId>
121 <artifactId>pax-url-aether</artifactId>
122 <version>${url.version}</version>
123 <scope>test</scope>
124 </dependency>
125
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000126 <!--<dependency>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000127 <groupId>org.apache.felix</groupId>
128 <artifactId>org.apache.felix.framework</artifactId>
129 <version>4.2.0</version>
130 <scope>test</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000131 </dependency>-->
Clement Escoffiera0030f52013-02-18 20:43:25 +0000132
133 <dependency>
134 <groupId>ch.qos.logback</groupId>
135 <artifactId>logback-core</artifactId>
136 <version>0.9.6</version>
137 <scope>test</scope>
138 </dependency>
139
140 <dependency>
141 <groupId>ch.qos.logback</groupId>
142 <artifactId>logback-classic</artifactId>
143 <version>0.9.6</version>
144 <scope>test</scope>
145 </dependency>
146
Clement Escoffiera0030f52013-02-18 20:43:25 +0000147 <dependency>
148 <groupId>junit</groupId>
149 <artifactId>junit</artifactId>
150 <version>4.9</version>
151 <scope>test</scope>
152 </dependency>
153
154 <dependency>
155 <groupId>org.mockito</groupId>
Clement Escoffiered4ca022013-03-13 15:27:20 +0000156 <artifactId>mockito-all</artifactId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000157 <version>1.9.5</version>
158 </dependency>
159
160 <dependency>
161 <groupId>org.ops4j.pax.tinybundles</groupId>
162 <artifactId>tinybundles</artifactId>
163 <version>1.0.0</version>
164 </dependency>
165
166 <dependency>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000167 <groupId>org.ow2.chameleon.testing</groupId>
168 <artifactId>tinybundles-ipojo</artifactId>
169 <version>0.3.0</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000170 </dependency>
171
172 <dependency>
173 <groupId>org.apache.felix</groupId>
174 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
175 <version>1.9.0-SNAPSHOT</version>
176 </dependency>
177
178 <dependency>
179 <groupId>org.apache.felix</groupId>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000180 <artifactId>org.apache.felix.ipojo</artifactId>
181 <version>1.9.0-SNAPSHOT</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000182 <exclusions>
183 <exclusion>
184 <groupId>org.osgi</groupId>
185 <artifactId>org.osgi.core</artifactId>
186 </exclusion>
187 </exclusions>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000188 </dependency>
189
190 <dependency>
191 <groupId>org.apache.felix</groupId>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000192 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
193 <version>1.9.0-SNAPSHOT</version>
194 </dependency>
195
196 <dependency>
197 <groupId>org.apache.felix</groupId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000198 <artifactId>org.apache.felix.configadmin</artifactId>
199 <version>1.6.0</version>
200 <scope>test</scope>
201 </dependency>
202
203 <dependency>
204 <groupId>commons-io</groupId>
205 <artifactId>commons-io</artifactId>
206 <version>2.4</version>
207 </dependency>
208
209 <dependency>
210 <groupId>org.ow2.chameleon.testing</groupId>
211 <artifactId>osgi-helpers</artifactId>
Clement Escoffier2545db72013-05-05 13:55:09 +0000212 <version>0.6.1-SNAPSHOT</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000213 <scope>test</scope>
214 </dependency>
215
Clement Escoffiera0030f52013-02-18 20:43:25 +0000216
217 <dependency>
218 <groupId>org.apache.felix</groupId>
219 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
220 <!--
221 We use the released version as we don't really have to do any behavioral test on the handler in the core
222 test.
223 -->
224 <version>1.8.0</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000225 <exclusions>
226 <exclusion>
227 <groupId>org.osgi</groupId>
228 <artifactId>org.osgi.core</artifactId>
229 </exclusion>
230 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000231 </dependency>
232
233 <dependency>
234 <groupId>org.apache.felix</groupId>
235 <artifactId>org.apache.felix.log</artifactId>
236 <version>1.0.1</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000237 <exclusions>
238 <exclusion>
239 <groupId>org.osgi</groupId>
240 <artifactId>org.osgi.core</artifactId>
241 </exclusion>
242 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000243 </dependency>
244
245 <dependency>
246 <groupId>org.ops4j.pax.url</groupId>
247 <artifactId>pax-url-wrap</artifactId>
248 <version>1.5.2</version>
249 </dependency>
250 </dependencies>
251
Clement Escoffier1c47f282013-02-13 16:26:18 +0000252 <profiles>
253 <profile>
254 <id>release</id>
255 <build>
256 <plugins>
257 <plugin>
258 <groupId>org.apache.maven.plugins</groupId>
259 <artifactId>maven-assembly-plugin</artifactId>
260 <executions>
261 <execution>
262 <id>make-assembly</id>
263 <phase>package</phase>
264 <goals>
265 <goal>single</goal>
266 </goals>
267 <configuration>
268 <descriptorRefs>
269 <descriptorRef>project</descriptorRef>
270 </descriptorRefs>
271 <!-- we don't want to attach all the assemblies, such as bz2 -->
272 <attach>false</attach>
273 </configuration>
274 </execution>
275 </executions>
276 </plugin>
277 <plugin>
278 <!-- only attach the project and bin assemblies, in tar.gz and zip flavors -->
279 <groupId>org.codehaus.mojo</groupId>
280 <artifactId>build-helper-maven-plugin</artifactId>
281 <executions>
282 <execution>
283 <id>attach-assemblies</id>
284 <phase>package</phase>
285 <goals>
286 <goal>attach-artifact</goal>
287 </goals>
288 <configuration>
289 <artifacts>
290 <artifact>
291 <file>
292 ${project.build.directory}/${project.artifactId}-${project.version}-project.tar.gz
293 </file>
294 <classifier>project</classifier>
295 <type>tar.gz</type>
296 </artifact>
297 <artifact>
298 <file>
299 ${project.build.directory}/${project.artifactId}-${project.version}-project.zip
300 </file>
301 <classifier>project</classifier>
302 <type>zip</type>
303 </artifact>
304 </artifacts>
305 </configuration>
306 </execution>
307 </executions>
308 </plugin>
309 </plugins>
310 </build>
311 </profile>
312
313 <profile>
314 <id>knopflerfish</id>
315 <activation>
316 <activeByDefault>false</activeByDefault>
317 <property>
318 <name>pax.exam.framework</name>
319 <value>knopflerfish</value>
320 </property>
321 </activation>
322 <properties>
323 <pax.exam.framework>knopflerfish</pax.exam.framework>
324 </properties>
325 <repositories>
326 <repository>
327 <id>knopflerfish-releases</id>
328 <url>http://www.knopflerfish.org/maven2</url>
329 </repository>
330 </repositories>
331 <dependencies>
332 <dependency>
333 <groupId>org.knopflerfish</groupId>
334 <artifactId>framework</artifactId>
335 <version>5.2.0</version>
336 <scope>test</scope>
337 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000338 <dependency>
339 <groupId>org.osgi</groupId>
340 <artifactId>org.osgi.core</artifactId>
341 <version>4.3.1</version>
342 <scope>provided</scope>
343 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000344 </dependencies>
345 </profile>
346
347 <profile>
348 <id>equinox</id>
349 <activation>
350 <activeByDefault>false</activeByDefault>
351 <property>
352 <name>pax.exam.framework</name>
353 <value>equinox</value>
354 </property>
355 </activation>
356 <properties>
357 <pax.exam.framework>equinox</pax.exam.framework>
358 </properties>
359 <dependencies>
360 <dependency>
361 <groupId>org.eclipse.tycho</groupId>
362 <artifactId>org.eclipse.osgi</artifactId>
363 <version>3.8.1.v20120830-144521</version>
364 <scope>test</scope>
365 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000366 <dependency>
367 <groupId>org.osgi</groupId>
368 <artifactId>org.osgi.core</artifactId>
369 <version>4.3.1</version>
370 <scope>provided</scope>
371 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000372 </dependencies>
373 </profile>
374
375 <profile>
376 <id>felix</id>
377 <activation>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000378 <activeByDefault>true</activeByDefault>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000379 <property>
380 <name>pax.exam.framework</name>
381 <value>felix</value>
382 </property>
383 </activation>
384 <properties>
385 <pax.exam.framework>felix</pax.exam.framework>
386 </properties>
387 <dependencies>
388 <dependency>
389 <groupId>org.apache.felix</groupId>
390 <artifactId>org.apache.felix.framework</artifactId>
391 <version>4.2.0</version>
392 <scope>test</scope>
393 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000394 <dependency>
395 <groupId>org.osgi</groupId>
396 <artifactId>org.osgi.core</artifactId>
397 <version>4.3.1</version>
398 <scope>provided</scope>
399 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000400 </dependencies>
401 </profile>
402
403 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000404 <!--
405 avoid using the invoker and use a regular reactor instead.
406 it must be coupled with another profile to select the right OSGi framework implementation
Clement Escoffierdc197b32013-05-07 07:39:24 +0000407
408 * mvn clean install -Preactor,felix
409 * mvn clean install -Preactor,equinox
410 * mvn clean install -Preactor,knopflerfish
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000411 -->
412 <id>reactor</id>
413
414 <modules>
415 <module>src/it/ipojo-core-annotations-test</module>
416 <module>src/it/ipojo-core-bad-configuration-test</module>
417 <module>src/it/ipojo-core-configuration-admin-test</module>
418 <module>src/it/ipojo-core-configuration-processor-test</module>
419 <module>src/it/ipojo-core-configuration-test</module>
420 <module>src/it/ipojo-core-external-handlers-test</module>
421 <module>src/it/ipojo-core-factory-test</module>
422 <module>src/it/ipojo-core-factory-version-test</module>
423 <module>src/it/ipojo-core-handler-test</module>
424 <module>src/it/ipojo-core-lifecycle-callback-test</module>
425 <module>src/it/ipojo-core-lifecycle-controller-test</module>
426 <module>src/it/ipojo-core-logger-test</module>
427 <module>src/it/ipojo-core-service-dependency-optional-test</module>
428 <module>src/it/ipojo-core-service-dependency-policies</module>
429 <module>src/it/ipojo-core-service-dependency-proxies</module>
430 <module>src/it/ipojo-core-service-dependency-test</module>
431 <module>src/it/ipojo-core-service-providing-test</module>
432 </modules>
433
Clement Escoffierdc197b32013-05-07 07:39:24 +0000434 <build>
435 <pluginManagement>
436 <plugins>
437 <plugin>
438 <groupId>org.apache.maven.plugins</groupId>
439 <artifactId>maven-surefire-plugin</artifactId>
440 <version>2.14.1</version>
441 <configuration>
442 <systemPropertyVariables>
443 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
444 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
445 </systemPropertyVariables>
446 </configuration>
447 </plugin>
448 </plugins>
449 </pluginManagement>
450 </build>
451
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000452 </profile>
453
Clement Escoffierdc197b32013-05-07 07:39:24 +0000454
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000455 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000456 <id>test</id>
457 <activation>
458 <activeByDefault>true</activeByDefault>
459 </activation>
460 <build>
461 <plugins>
462 <plugin>
463 <groupId>org.apache.maven.plugins</groupId>
464 <artifactId>maven-invoker-plugin</artifactId>
465 <version>1.8</version>
466 <configuration>
467 <streamLogs>true</streamLogs>
468 <goals>
469 <goal>clean</goal>
470 <goal>test</goal>
471 </goals>
472 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000473 <environmentVariables>
474 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
475 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
476 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000477 </configuration>
478 <executions>
479 <execution>
480 <id>regular</id>
481 <goals>
482 <goal>run</goal>
483 </goals>
484 <configuration>
485 <profiles>
486 <profile>felix</profile>
487 </profiles>
488 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
489 </configuration>
490 </execution>
491 </executions>
492 </plugin>
493 </plugins>
494 </build>
495 </profile>
496
497 <profile>
498 <id>test-all</id>
499 <activation>
500 <activeByDefault>false</activeByDefault>
501 </activation>
502 <build>
503 <plugins>
504 <plugin>
505 <groupId>org.apache.maven.plugins</groupId>
506 <artifactId>maven-invoker-plugin</artifactId>
507 <version>1.8</version>
508 <configuration>
509 <streamLogs>true</streamLogs>
510 <goals>
511 <goal>clean</goal>
512 <goal>test</goal>
513 </goals>
514 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000515 <environmentVariables>
516 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
517 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
518 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000519 </configuration>
520 <executions>
521 <execution>
522 <id>equinox-native</id>
523 <goals>
524 <goal>run</goal>
525 </goals>
526 <configuration>
527 <profiles>
528 <profile>equinox</profile>
529 </profiles>
530 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
531
532 </configuration>
533 </execution>
534 <execution>
535 <id>felix-native</id>
536 <goals>
537 <goal>run</goal>
538 </goals>
539 <configuration>
540 <profiles>
541 <profile>felix</profile>
542 </profiles>
543 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
544 </configuration>
545 </execution>
546 <execution>
547 <id>knopflerfish-native</id>
548 <goals>
549 <goal>run</goal>
550 </goals>
551 <configuration>
552 <profiles>
553 <profile>knopflerfish</profile>
554 </profiles>
555 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
556 </configuration>
557 </execution>
558 </executions>
559 </plugin>
560 </plugins>
561 </build>
562 </profile>
563 </profiles>
Clement Escoffierc93b8672013-05-05 13:59:13 +0000564
565 <repositories>
566 <!-- Temporal addition of this repository until the osgi-helper are released -->
567 <!-- TODO remove this before the release -->
568 <repository>
569 <id>ow2.snapshots</id>
570 <url>http://repository.ow2.org/nexus/content/repositories/snapshots/</url>
571 </repository>
572 </repositories>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000573</project>