blob: 41ef1b7242f99e470864e944cf5856cc8ff63d85 [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-->
Clement Escoffierfc26c542013-05-15 15:40:52 +000019<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">
Clement Escoffier1c47f282013-02-13 16:26:18 +000022 <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>
Clement Escoffierfc26c542013-05-15 15:40:52 +000030 <version>1.9.0-SNAPSHOT</version>
Clement Escoffier1c47f282013-02-13 16:26:18 +000031 <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 Escoffierfe1775d2013-05-13 12:54:07 +0000170 <scope>test</scope>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000171 </dependency>
172
173 <dependency>
174 <groupId>org.apache.felix</groupId>
175 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
Clement Escoffier9888f532013-05-15 13:58:22 +0000176 <version>1.10.0</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000177 </dependency>
178
179 <dependency>
180 <groupId>org.apache.felix</groupId>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000181 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffierfc26c542013-05-15 15:40:52 +0000182 <version>1.9.0-SNAPSHOT</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000183 <exclusions>
184 <exclusion>
185 <groupId>org.osgi</groupId>
186 <artifactId>org.osgi.core</artifactId>
187 </exclusion>
188 </exclusions>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000189 </dependency>
190
191 <dependency>
192 <groupId>org.apache.felix</groupId>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000193 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
Clement Escoffierfc26c542013-05-15 15:40:52 +0000194 <version>1.9.0-SNAPSHOT</version>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000195 </dependency>
196
197 <dependency>
198 <groupId>org.apache.felix</groupId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000199 <artifactId>org.apache.felix.configadmin</artifactId>
200 <version>1.6.0</version>
201 <scope>test</scope>
202 </dependency>
203
204 <dependency>
205 <groupId>commons-io</groupId>
206 <artifactId>commons-io</artifactId>
207 <version>2.4</version>
208 </dependency>
209
210 <dependency>
211 <groupId>org.ow2.chameleon.testing</groupId>
212 <artifactId>osgi-helpers</artifactId>
Clement Escoffierfc26c542013-05-15 15:40:52 +0000213 <version>0.6.1-SNAPSHOT</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000214 <scope>test</scope>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000215 <exclusions>
216 <exclusion>
217 <groupId>org.osgi</groupId>
218 <artifactId>org.osgi.core</artifactId>
219 </exclusion>
220 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000221 </dependency>
222
Clement Escoffiera0030f52013-02-18 20:43:25 +0000223
224 <dependency>
225 <groupId>org.apache.felix</groupId>
226 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
227 <!--
228 We use the released version as we don't really have to do any behavioral test on the handler in the core
229 test.
230 -->
231 <version>1.8.0</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000232 <exclusions>
233 <exclusion>
234 <groupId>org.osgi</groupId>
235 <artifactId>org.osgi.core</artifactId>
236 </exclusion>
237 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000238 </dependency>
239
240 <dependency>
241 <groupId>org.apache.felix</groupId>
242 <artifactId>org.apache.felix.log</artifactId>
243 <version>1.0.1</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000244 <exclusions>
245 <exclusion>
246 <groupId>org.osgi</groupId>
247 <artifactId>org.osgi.core</artifactId>
248 </exclusion>
249 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000250 </dependency>
251
252 <dependency>
253 <groupId>org.ops4j.pax.url</groupId>
254 <artifactId>pax-url-wrap</artifactId>
255 <version>1.5.2</version>
256 </dependency>
257 </dependencies>
258
Clement Escoffier1c47f282013-02-13 16:26:18 +0000259 <profiles>
260 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000261 <id>knopflerfish</id>
262 <activation>
263 <activeByDefault>false</activeByDefault>
264 <property>
265 <name>pax.exam.framework</name>
266 <value>knopflerfish</value>
267 </property>
268 </activation>
269 <properties>
270 <pax.exam.framework>knopflerfish</pax.exam.framework>
271 </properties>
272 <repositories>
273 <repository>
274 <id>knopflerfish-releases</id>
275 <url>http://www.knopflerfish.org/maven2</url>
276 </repository>
277 </repositories>
278 <dependencies>
279 <dependency>
280 <groupId>org.knopflerfish</groupId>
281 <artifactId>framework</artifactId>
282 <version>5.2.0</version>
283 <scope>test</scope>
284 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000285 <dependency>
286 <groupId>org.osgi</groupId>
287 <artifactId>org.osgi.core</artifactId>
288 <version>4.3.1</version>
289 <scope>provided</scope>
290 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000291 </dependencies>
292 </profile>
293
294 <profile>
295 <id>equinox</id>
296 <activation>
297 <activeByDefault>false</activeByDefault>
298 <property>
299 <name>pax.exam.framework</name>
300 <value>equinox</value>
301 </property>
302 </activation>
303 <properties>
304 <pax.exam.framework>equinox</pax.exam.framework>
305 </properties>
306 <dependencies>
307 <dependency>
308 <groupId>org.eclipse.tycho</groupId>
309 <artifactId>org.eclipse.osgi</artifactId>
310 <version>3.8.1.v20120830-144521</version>
311 <scope>test</scope>
312 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000313 <dependency>
314 <groupId>org.osgi</groupId>
315 <artifactId>org.osgi.core</artifactId>
316 <version>4.3.1</version>
317 <scope>provided</scope>
318 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000319 </dependencies>
320 </profile>
321
322 <profile>
323 <id>felix</id>
324 <activation>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000325 <activeByDefault>true</activeByDefault>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000326 <property>
327 <name>pax.exam.framework</name>
328 <value>felix</value>
329 </property>
330 </activation>
331 <properties>
332 <pax.exam.framework>felix</pax.exam.framework>
333 </properties>
334 <dependencies>
335 <dependency>
336 <groupId>org.apache.felix</groupId>
337 <artifactId>org.apache.felix.framework</artifactId>
338 <version>4.2.0</version>
339 <scope>test</scope>
340 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000341 <dependency>
342 <groupId>org.osgi</groupId>
343 <artifactId>org.osgi.core</artifactId>
344 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000345 <scope>compile</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000346 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000347 </dependencies>
348 </profile>
349
350 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000351 <!--
352 avoid using the invoker and use a regular reactor instead.
353 it must be coupled with another profile to select the right OSGi framework implementation
Clement Escoffierdc197b32013-05-07 07:39:24 +0000354
355 * mvn clean install -Preactor,felix
356 * mvn clean install -Preactor,equinox
357 * mvn clean install -Preactor,knopflerfish
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000358 -->
359 <id>reactor</id>
360
361 <modules>
362 <module>src/it/ipojo-core-annotations-test</module>
363 <module>src/it/ipojo-core-bad-configuration-test</module>
364 <module>src/it/ipojo-core-configuration-admin-test</module>
365 <module>src/it/ipojo-core-configuration-processor-test</module>
366 <module>src/it/ipojo-core-configuration-test</module>
367 <module>src/it/ipojo-core-external-handlers-test</module>
368 <module>src/it/ipojo-core-factory-test</module>
369 <module>src/it/ipojo-core-factory-version-test</module>
370 <module>src/it/ipojo-core-handler-test</module>
371 <module>src/it/ipojo-core-lifecycle-callback-test</module>
372 <module>src/it/ipojo-core-lifecycle-controller-test</module>
373 <module>src/it/ipojo-core-logger-test</module>
374 <module>src/it/ipojo-core-service-dependency-optional-test</module>
375 <module>src/it/ipojo-core-service-dependency-policies</module>
376 <module>src/it/ipojo-core-service-dependency-proxies</module>
377 <module>src/it/ipojo-core-service-dependency-test</module>
378 <module>src/it/ipojo-core-service-providing-test</module>
379 </modules>
380
Clement Escoffierdc197b32013-05-07 07:39:24 +0000381 <build>
382 <pluginManagement>
383 <plugins>
384 <plugin>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-surefire-plugin</artifactId>
387 <version>2.14.1</version>
388 <configuration>
389 <systemPropertyVariables>
390 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
391 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
392 </systemPropertyVariables>
393 </configuration>
394 </plugin>
395 </plugins>
396 </pluginManagement>
397 </build>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000398 </profile>
399
400 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000401 <id>test</id>
402 <activation>
403 <activeByDefault>true</activeByDefault>
404 </activation>
405 <build>
406 <plugins>
407 <plugin>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-invoker-plugin</artifactId>
410 <version>1.8</version>
411 <configuration>
412 <streamLogs>true</streamLogs>
413 <goals>
414 <goal>clean</goal>
415 <goal>test</goal>
416 </goals>
417 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000418 <environmentVariables>
419 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
420 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
421 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000422 </configuration>
423 <executions>
424 <execution>
425 <id>regular</id>
426 <goals>
427 <goal>run</goal>
428 </goals>
429 <configuration>
430 <profiles>
431 <profile>felix</profile>
432 </profiles>
433 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
434 </configuration>
435 </execution>
436 </executions>
437 </plugin>
438 </plugins>
439 </build>
440 </profile>
441
442 <profile>
443 <id>test-all</id>
444 <activation>
445 <activeByDefault>false</activeByDefault>
446 </activation>
447 <build>
448 <plugins>
449 <plugin>
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-invoker-plugin</artifactId>
452 <version>1.8</version>
453 <configuration>
454 <streamLogs>true</streamLogs>
455 <goals>
456 <goal>clean</goal>
457 <goal>test</goal>
458 </goals>
459 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000460 <environmentVariables>
461 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
462 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
463 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000464 </configuration>
465 <executions>
466 <execution>
467 <id>equinox-native</id>
468 <goals>
469 <goal>run</goal>
470 </goals>
471 <configuration>
472 <profiles>
473 <profile>equinox</profile>
474 </profiles>
475 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
476
477 </configuration>
478 </execution>
479 <execution>
480 <id>felix-native</id>
481 <goals>
482 <goal>run</goal>
483 </goals>
484 <configuration>
485 <profiles>
486 <profile>felix</profile>
487 </profiles>
488 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
489 </configuration>
490 </execution>
491 <execution>
492 <id>knopflerfish-native</id>
493 <goals>
494 <goal>run</goal>
495 </goals>
496 <configuration>
497 <profiles>
498 <profile>knopflerfish</profile>
499 </profiles>
500 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
501 </configuration>
502 </execution>
503 </executions>
504 </plugin>
505 </plugins>
506 </build>
507 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000508
509 <profile>
510 <id>apache-release</id>
511 <build>
512 <plugins>
513 <plugin>
514 <artifactId>maven-assembly-plugin</artifactId>
515 <dependencies>
516 <dependency>
517 <groupId>org.apache.apache.resources</groupId>
518 <artifactId>apache-source-release-assembly-descriptor</artifactId>
519 <version>1.0.3</version>
520 </dependency>
521 </dependencies>
522 <executions>
523 <execution>
524 <id>source-release-assembly</id>
525 <phase>package</phase>
526 <goals>
527 <goal>single</goal>
528 </goals>
529 <configuration>
530 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
531 <descriptorRefs>
532 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
533 </descriptorRefs>
534 <tarLongFileMode>gnu</tarLongFileMode>
535 </configuration>
536 </execution>
537 </executions>
538 </plugin>
539 </plugins>
540 </build>
541 </profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000542 </profiles>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000543</project>