blob: c22c719501b8f113c6ee527ad971a978144fa40e [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 Escoffierab397832013-05-15 15:43:05 +000019<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/xsd/maven-4.0.0.xsd">
Clement Escoffier1c47f282013-02-13 16:26:18 +000020 <parent>
21 <groupId>org.apache.felix</groupId>
22 <artifactId>felix-parent</artifactId>
Clement Escoffiered4ca022013-03-13 15:27:20 +000023 <version>2.1</version>
Clement Escoffier1c47f282013-02-13 16:26:18 +000024 <relativePath>../../../pom/pom.xml</relativePath>
25 </parent>
26 <modelVersion>4.0.0</modelVersion>
27 <artifactId>org.apache.felix.ipojo.runtime.core-it</artifactId>
Clement Escoffier73842a12013-06-16 07:11:54 +000028 <version>1.10.2-SNAPSHOT</version>
Clement Escoffier1c47f282013-02-13 16:26:18 +000029 <name>Apache Felix iPOJO Runtime Project ~ Core Integration Tests</name>
30 <packaging>pom</packaging>
31
32 <build>
Clement Escoffiera0030f52013-02-18 20:43:25 +000033 <plugins>
34 <plugin>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-compiler-plugin</artifactId>
37 <version>2.5.1</version>
38 <configuration>
39 <source>1.6</source>
40 <target>1.6</target>
41 </configuration>
42 </plugin>
43
44 <plugin>
45 <groupId>org.apache.servicemix.tooling</groupId>
46 <artifactId>depends-maven-plugin</artifactId>
47 <version>1.2</version>
48 <executions>
49 <execution>
50 <id>generate-config</id>
51 <goals>
52 <goal>generate-depends-file</goal>
53 </goals>
54 </execution>
55 </executions>
56 </plugin>
Clement Escoffiered4ca022013-03-13 15:27:20 +000057
58 <plugin>
59 <groupId>org.apache.rat</groupId>
60 <artifactId>apache-rat-plugin</artifactId>
61 <executions>
62 <execution>
63 <phase>verify</phase>
64 <goals>
65 <goal>check</goal>
66 </goals>
67 </execution>
68 </executions>
69 <configuration>
70 <!-- check src only (except remote resources additions) -->
71 <includes>
72 <include>src/**</include>
73 </includes>
74 <excludes>
75 <exclude>src/main/appended-resources/**</exclude>
Clement Escoffierdc197b32013-05-07 07:39:24 +000076 <exclude>**/*.iml</exclude>
77 <!-- Exclude iml files -->
78 <exclude>src/it/*/target/**/*</exclude>
79 <!-- Exclude sub target folders -->
Clement Escoffiered4ca022013-03-13 15:27:20 +000080 </excludes>
81 </configuration>
82 </plugin>
Clement Escoffier2c47f5f2013-06-04 19:46:29 +000083
84 <plugin>
85 <artifactId>maven-deploy-plugin</artifactId>
86 <version>2.4</version>
87 <configuration>
88 <skip>true</skip>
89 </configuration>
90 </plugin>
Clement Escoffiera0030f52013-02-18 20:43:25 +000091 </plugins>
92
Clement Escoffier1c47f282013-02-13 16:26:18 +000093 </build>
94
Clement Escoffiera0030f52013-02-18 20:43:25 +000095 <properties>
Clement Escoffierd18900c2013-03-18 18:29:08 +000096 <exam.version>3.0.1</exam.version>
Clement Escoffiera0030f52013-02-18 20:43:25 +000097 <url.version>1.5.1</url.version>
Clement Escoffier6dc8de12013-06-21 16:39:45 +000098 <manipulator.version>1.10.0</manipulator.version>
Clement Escoffiera0030f52013-02-18 20:43:25 +000099 </properties>
100
101 <dependencies>
102
103 <dependency>
104 <groupId>org.ops4j.pax.exam</groupId>
105 <artifactId>pax-exam-container-native</artifactId>
106 <version>${exam.version}</version>
107 <scope>test</scope>
108 </dependency>
109
110 <dependency>
111 <groupId>org.ops4j.pax.exam</groupId>
112 <artifactId>pax-exam-junit4</artifactId>
113 <version>${exam.version}</version>
114 <scope>test</scope>
115 </dependency>
116
117 <dependency>
118 <groupId>org.ops4j.pax.exam</groupId>
119 <artifactId>pax-exam-link-mvn</artifactId>
120 <version>${exam.version}</version>
121 <scope>test</scope>
122 </dependency>
123
124 <dependency>
125 <groupId>org.ops4j.pax.url</groupId>
126 <artifactId>pax-url-aether</artifactId>
127 <version>${url.version}</version>
128 <scope>test</scope>
129 </dependency>
130
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000131 <!--<dependency>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000132 <groupId>org.apache.felix</groupId>
133 <artifactId>org.apache.felix.framework</artifactId>
134 <version>4.2.0</version>
135 <scope>test</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000136 </dependency>-->
Clement Escoffiera0030f52013-02-18 20:43:25 +0000137
138 <dependency>
139 <groupId>ch.qos.logback</groupId>
140 <artifactId>logback-core</artifactId>
141 <version>0.9.6</version>
142 <scope>test</scope>
143 </dependency>
144
145 <dependency>
146 <groupId>ch.qos.logback</groupId>
147 <artifactId>logback-classic</artifactId>
148 <version>0.9.6</version>
149 <scope>test</scope>
150 </dependency>
151
Clement Escoffiera0030f52013-02-18 20:43:25 +0000152 <dependency>
153 <groupId>junit</groupId>
154 <artifactId>junit</artifactId>
155 <version>4.9</version>
156 <scope>test</scope>
157 </dependency>
158
159 <dependency>
160 <groupId>org.mockito</groupId>
Clement Escoffiered4ca022013-03-13 15:27:20 +0000161 <artifactId>mockito-all</artifactId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000162 <version>1.9.5</version>
163 </dependency>
164
165 <dependency>
166 <groupId>org.ops4j.pax.tinybundles</groupId>
167 <artifactId>tinybundles</artifactId>
168 <version>1.0.0</version>
169 </dependency>
170
171 <dependency>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000172 <groupId>org.ow2.chameleon.testing</groupId>
173 <artifactId>tinybundles-ipojo</artifactId>
174 <version>0.3.0</version>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000175 <scope>test</scope>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000176 </dependency>
177
178 <dependency>
179 <groupId>org.apache.felix</groupId>
180 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
Clement Escoffier6dc8de12013-06-21 16:39:45 +0000181 <version>${manipulator.version}</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000182 </dependency>
183
184 <dependency>
185 <groupId>org.apache.felix</groupId>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000186 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffier73842a12013-06-16 07:11:54 +0000187 <version>1.10.2-SNAPSHOT</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000188 <exclusions>
189 <exclusion>
190 <groupId>org.osgi</groupId>
191 <artifactId>org.osgi.core</artifactId>
192 </exclusion>
193 </exclusions>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000194 </dependency>
195
196 <dependency>
197 <groupId>org.apache.felix</groupId>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000198 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
Clement Escoffierd15b1442013-06-21 16:47:56 +0000199 <version>1.10.0</version>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000200 </dependency>
201
202 <dependency>
203 <groupId>org.apache.felix</groupId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000204 <artifactId>org.apache.felix.configadmin</artifactId>
205 <version>1.6.0</version>
206 <scope>test</scope>
207 </dependency>
208
209 <dependency>
210 <groupId>commons-io</groupId>
211 <artifactId>commons-io</artifactId>
212 <version>2.4</version>
213 </dependency>
214
215 <dependency>
216 <groupId>org.ow2.chameleon.testing</groupId>
217 <artifactId>osgi-helpers</artifactId>
Clement Escoffierab397832013-05-15 15:43:05 +0000218 <version>0.6.1</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000219 <scope>test</scope>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000220 <exclusions>
221 <exclusion>
222 <groupId>org.osgi</groupId>
223 <artifactId>org.osgi.core</artifactId>
224 </exclusion>
225 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000226 </dependency>
227
Clement Escoffiera0030f52013-02-18 20:43:25 +0000228
229 <dependency>
230 <groupId>org.apache.felix</groupId>
231 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
232 <!--
233 We use the released version as we don't really have to do any behavioral test on the handler in the core
234 test.
235 -->
236 <version>1.8.0</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.apache.felix</groupId>
247 <artifactId>org.apache.felix.log</artifactId>
248 <version>1.0.1</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000249 <exclusions>
250 <exclusion>
251 <groupId>org.osgi</groupId>
252 <artifactId>org.osgi.core</artifactId>
253 </exclusion>
254 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000255 </dependency>
256
257 <dependency>
258 <groupId>org.ops4j.pax.url</groupId>
259 <artifactId>pax-url-wrap</artifactId>
260 <version>1.5.2</version>
261 </dependency>
Clement Escoffiere050be02013-06-12 11:38:27 +0000262
263 <dependency>
264 <groupId>org.easytesting</groupId>
265 <artifactId>fest-assert</artifactId>
266 <version>1.4</version>
267 </dependency>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000268 </dependencies>
269
Clement Escoffier1c47f282013-02-13 16:26:18 +0000270 <profiles>
271 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000272 <id>knopflerfish</id>
273 <activation>
274 <activeByDefault>false</activeByDefault>
275 <property>
276 <name>pax.exam.framework</name>
277 <value>knopflerfish</value>
278 </property>
279 </activation>
280 <properties>
281 <pax.exam.framework>knopflerfish</pax.exam.framework>
282 </properties>
283 <repositories>
284 <repository>
285 <id>knopflerfish-releases</id>
286 <url>http://www.knopflerfish.org/maven2</url>
287 </repository>
288 </repositories>
289 <dependencies>
290 <dependency>
291 <groupId>org.knopflerfish</groupId>
292 <artifactId>framework</artifactId>
293 <version>5.2.0</version>
294 <scope>test</scope>
295 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000296 <dependency>
297 <groupId>org.osgi</groupId>
298 <artifactId>org.osgi.core</artifactId>
299 <version>4.3.1</version>
300 <scope>provided</scope>
301 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000302 </dependencies>
303 </profile>
304
305 <profile>
306 <id>equinox</id>
307 <activation>
308 <activeByDefault>false</activeByDefault>
309 <property>
310 <name>pax.exam.framework</name>
311 <value>equinox</value>
312 </property>
313 </activation>
314 <properties>
315 <pax.exam.framework>equinox</pax.exam.framework>
316 </properties>
317 <dependencies>
318 <dependency>
319 <groupId>org.eclipse.tycho</groupId>
320 <artifactId>org.eclipse.osgi</artifactId>
321 <version>3.8.1.v20120830-144521</version>
322 <scope>test</scope>
323 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000324 <dependency>
325 <groupId>org.osgi</groupId>
326 <artifactId>org.osgi.core</artifactId>
327 <version>4.3.1</version>
328 <scope>provided</scope>
329 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000330 </dependencies>
331 </profile>
332
333 <profile>
334 <id>felix</id>
335 <activation>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000336 <activeByDefault>true</activeByDefault>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000337 <property>
338 <name>pax.exam.framework</name>
339 <value>felix</value>
340 </property>
341 </activation>
342 <properties>
343 <pax.exam.framework>felix</pax.exam.framework>
344 </properties>
345 <dependencies>
346 <dependency>
347 <groupId>org.apache.felix</groupId>
348 <artifactId>org.apache.felix.framework</artifactId>
349 <version>4.2.0</version>
350 <scope>test</scope>
351 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000352 <dependency>
353 <groupId>org.osgi</groupId>
354 <artifactId>org.osgi.core</artifactId>
355 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000356 <scope>compile</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000357 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000358 </dependencies>
359 </profile>
360
361 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000362 <!--
363 avoid using the invoker and use a regular reactor instead.
364 it must be coupled with another profile to select the right OSGi framework implementation
Clement Escoffierdc197b32013-05-07 07:39:24 +0000365
366 * mvn clean install -Preactor,felix
367 * mvn clean install -Preactor,equinox
368 * mvn clean install -Preactor,knopflerfish
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000369 -->
370 <id>reactor</id>
371
372 <modules>
373 <module>src/it/ipojo-core-annotations-test</module>
374 <module>src/it/ipojo-core-bad-configuration-test</module>
375 <module>src/it/ipojo-core-configuration-admin-test</module>
376 <module>src/it/ipojo-core-configuration-processor-test</module>
377 <module>src/it/ipojo-core-configuration-test</module>
378 <module>src/it/ipojo-core-external-handlers-test</module>
379 <module>src/it/ipojo-core-factory-test</module>
380 <module>src/it/ipojo-core-factory-version-test</module>
381 <module>src/it/ipojo-core-handler-test</module>
382 <module>src/it/ipojo-core-lifecycle-callback-test</module>
383 <module>src/it/ipojo-core-lifecycle-controller-test</module>
384 <module>src/it/ipojo-core-logger-test</module>
385 <module>src/it/ipojo-core-service-dependency-optional-test</module>
386 <module>src/it/ipojo-core-service-dependency-policies</module>
387 <module>src/it/ipojo-core-service-dependency-proxies</module>
388 <module>src/it/ipojo-core-service-dependency-test</module>
Clement Escoffiere050be02013-06-12 11:38:27 +0000389 <module>src/it/ipojo-core-service-dependency-interceptor-test</module>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000390 <module>src/it/ipojo-core-service-providing-test</module>
391 </modules>
392
Clement Escoffierdc197b32013-05-07 07:39:24 +0000393 <build>
394 <pluginManagement>
395 <plugins>
396 <plugin>
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-surefire-plugin</artifactId>
399 <version>2.14.1</version>
400 <configuration>
401 <systemPropertyVariables>
402 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
403 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
404 </systemPropertyVariables>
405 </configuration>
406 </plugin>
407 </plugins>
408 </pluginManagement>
409 </build>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000410 </profile>
411
412 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000413 <id>test</id>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000414 <build>
415 <plugins>
416 <plugin>
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-invoker-plugin</artifactId>
419 <version>1.8</version>
420 <configuration>
421 <streamLogs>true</streamLogs>
422 <goals>
423 <goal>clean</goal>
424 <goal>test</goal>
425 </goals>
426 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000427 <environmentVariables>
428 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
429 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
430 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000431 </configuration>
432 <executions>
433 <execution>
434 <id>regular</id>
435 <goals>
436 <goal>run</goal>
437 </goals>
438 <configuration>
439 <profiles>
440 <profile>felix</profile>
441 </profiles>
442 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
443 </configuration>
444 </execution>
445 </executions>
446 </plugin>
447 </plugins>
448 </build>
449 </profile>
450
451 <profile>
452 <id>test-all</id>
453 <activation>
454 <activeByDefault>false</activeByDefault>
455 </activation>
456 <build>
457 <plugins>
458 <plugin>
459 <groupId>org.apache.maven.plugins</groupId>
460 <artifactId>maven-invoker-plugin</artifactId>
461 <version>1.8</version>
462 <configuration>
463 <streamLogs>true</streamLogs>
464 <goals>
465 <goal>clean</goal>
466 <goal>test</goal>
467 </goals>
468 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000469 <environmentVariables>
470 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
471 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
472 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000473 </configuration>
474 <executions>
475 <execution>
476 <id>equinox-native</id>
477 <goals>
478 <goal>run</goal>
479 </goals>
480 <configuration>
481 <profiles>
482 <profile>equinox</profile>
483 </profiles>
484 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
485
486 </configuration>
487 </execution>
488 <execution>
489 <id>felix-native</id>
490 <goals>
491 <goal>run</goal>
492 </goals>
493 <configuration>
494 <profiles>
495 <profile>felix</profile>
496 </profiles>
497 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
498 </configuration>
499 </execution>
500 <execution>
501 <id>knopflerfish-native</id>
502 <goals>
503 <goal>run</goal>
504 </goals>
505 <configuration>
506 <profiles>
507 <profile>knopflerfish</profile>
508 </profiles>
509 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
510 </configuration>
511 </execution>
512 </executions>
513 </plugin>
514 </plugins>
515 </build>
516 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000517
518 <profile>
519 <id>apache-release</id>
520 <build>
521 <plugins>
522 <plugin>
523 <artifactId>maven-assembly-plugin</artifactId>
524 <dependencies>
525 <dependency>
526 <groupId>org.apache.apache.resources</groupId>
527 <artifactId>apache-source-release-assembly-descriptor</artifactId>
528 <version>1.0.3</version>
529 </dependency>
530 </dependencies>
531 <executions>
532 <execution>
533 <id>source-release-assembly</id>
534 <phase>package</phase>
535 <goals>
536 <goal>single</goal>
537 </goals>
538 <configuration>
539 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
540 <descriptorRefs>
541 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
542 </descriptorRefs>
543 <tarLongFileMode>gnu</tarLongFileMode>
544 </configuration>
545 </execution>
546 </executions>
547 </plugin>
548 </plugins>
549 </build>
550 </profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000551 </profiles>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000552</project>