blob: 19e6bae306782a14a0c97bdeff9e142fe40f47ca [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 Escoffierab397832013-05-15 15:43:05 +000028 <version>1.10.0</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 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
Clement Escoffiera0030f52013-02-18 20:43:25 +000092 </properties>
93
94 <dependencies>
95
96 <dependency>
97 <groupId>org.ops4j.pax.exam</groupId>
98 <artifactId>pax-exam-container-native</artifactId>
99 <version>${exam.version}</version>
100 <scope>test</scope>
101 </dependency>
102
103 <dependency>
104 <groupId>org.ops4j.pax.exam</groupId>
105 <artifactId>pax-exam-junit4</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-link-mvn</artifactId>
113 <version>${exam.version}</version>
114 <scope>test</scope>
115 </dependency>
116
117 <dependency>
118 <groupId>org.ops4j.pax.url</groupId>
119 <artifactId>pax-url-aether</artifactId>
120 <version>${url.version}</version>
121 <scope>test</scope>
122 </dependency>
123
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000124 <!--<dependency>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000125 <groupId>org.apache.felix</groupId>
126 <artifactId>org.apache.felix.framework</artifactId>
127 <version>4.2.0</version>
128 <scope>test</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000129 </dependency>-->
Clement Escoffiera0030f52013-02-18 20:43:25 +0000130
131 <dependency>
132 <groupId>ch.qos.logback</groupId>
133 <artifactId>logback-core</artifactId>
134 <version>0.9.6</version>
135 <scope>test</scope>
136 </dependency>
137
138 <dependency>
139 <groupId>ch.qos.logback</groupId>
140 <artifactId>logback-classic</artifactId>
141 <version>0.9.6</version>
142 <scope>test</scope>
143 </dependency>
144
Clement Escoffiera0030f52013-02-18 20:43:25 +0000145 <dependency>
146 <groupId>junit</groupId>
147 <artifactId>junit</artifactId>
148 <version>4.9</version>
149 <scope>test</scope>
150 </dependency>
151
152 <dependency>
153 <groupId>org.mockito</groupId>
Clement Escoffiered4ca022013-03-13 15:27:20 +0000154 <artifactId>mockito-all</artifactId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000155 <version>1.9.5</version>
156 </dependency>
157
158 <dependency>
159 <groupId>org.ops4j.pax.tinybundles</groupId>
160 <artifactId>tinybundles</artifactId>
161 <version>1.0.0</version>
162 </dependency>
163
164 <dependency>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000165 <groupId>org.ow2.chameleon.testing</groupId>
166 <artifactId>tinybundles-ipojo</artifactId>
167 <version>0.3.0</version>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000168 <scope>test</scope>
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>
Clement Escoffier9888f532013-05-15 13:58:22 +0000174 <version>1.10.0</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000175 </dependency>
176
177 <dependency>
178 <groupId>org.apache.felix</groupId>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000179 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffierab397832013-05-15 15:43:05 +0000180 <version>1.10.0</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>
Clement Escoffierab397832013-05-15 15:43:05 +0000192 <version>1.10.0</version>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000193 </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 Escoffierab397832013-05-15 15:43:05 +0000211 <version>0.6.1</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000212 <scope>test</scope>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000213 <exclusions>
214 <exclusion>
215 <groupId>org.osgi</groupId>
216 <artifactId>org.osgi.core</artifactId>
217 </exclusion>
218 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000219 </dependency>
220
Clement Escoffiera0030f52013-02-18 20:43:25 +0000221
222 <dependency>
223 <groupId>org.apache.felix</groupId>
224 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
225 <!--
226 We use the released version as we don't really have to do any behavioral test on the handler in the core
227 test.
228 -->
229 <version>1.8.0</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000230 <exclusions>
231 <exclusion>
232 <groupId>org.osgi</groupId>
233 <artifactId>org.osgi.core</artifactId>
234 </exclusion>
235 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000236 </dependency>
237
238 <dependency>
239 <groupId>org.apache.felix</groupId>
240 <artifactId>org.apache.felix.log</artifactId>
241 <version>1.0.1</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000242 <exclusions>
243 <exclusion>
244 <groupId>org.osgi</groupId>
245 <artifactId>org.osgi.core</artifactId>
246 </exclusion>
247 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000248 </dependency>
249
250 <dependency>
251 <groupId>org.ops4j.pax.url</groupId>
252 <artifactId>pax-url-wrap</artifactId>
253 <version>1.5.2</version>
254 </dependency>
255 </dependencies>
256
Clement Escoffier1c47f282013-02-13 16:26:18 +0000257 <profiles>
258 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000259 <id>knopflerfish</id>
260 <activation>
261 <activeByDefault>false</activeByDefault>
262 <property>
263 <name>pax.exam.framework</name>
264 <value>knopflerfish</value>
265 </property>
266 </activation>
267 <properties>
268 <pax.exam.framework>knopflerfish</pax.exam.framework>
269 </properties>
270 <repositories>
271 <repository>
272 <id>knopflerfish-releases</id>
273 <url>http://www.knopflerfish.org/maven2</url>
274 </repository>
275 </repositories>
276 <dependencies>
277 <dependency>
278 <groupId>org.knopflerfish</groupId>
279 <artifactId>framework</artifactId>
280 <version>5.2.0</version>
281 <scope>test</scope>
282 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000283 <dependency>
284 <groupId>org.osgi</groupId>
285 <artifactId>org.osgi.core</artifactId>
286 <version>4.3.1</version>
287 <scope>provided</scope>
288 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000289 </dependencies>
290 </profile>
291
292 <profile>
293 <id>equinox</id>
294 <activation>
295 <activeByDefault>false</activeByDefault>
296 <property>
297 <name>pax.exam.framework</name>
298 <value>equinox</value>
299 </property>
300 </activation>
301 <properties>
302 <pax.exam.framework>equinox</pax.exam.framework>
303 </properties>
304 <dependencies>
305 <dependency>
306 <groupId>org.eclipse.tycho</groupId>
307 <artifactId>org.eclipse.osgi</artifactId>
308 <version>3.8.1.v20120830-144521</version>
309 <scope>test</scope>
310 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000311 <dependency>
312 <groupId>org.osgi</groupId>
313 <artifactId>org.osgi.core</artifactId>
314 <version>4.3.1</version>
315 <scope>provided</scope>
316 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000317 </dependencies>
318 </profile>
319
320 <profile>
321 <id>felix</id>
322 <activation>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000323 <activeByDefault>true</activeByDefault>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000324 <property>
325 <name>pax.exam.framework</name>
326 <value>felix</value>
327 </property>
328 </activation>
329 <properties>
330 <pax.exam.framework>felix</pax.exam.framework>
331 </properties>
332 <dependencies>
333 <dependency>
334 <groupId>org.apache.felix</groupId>
335 <artifactId>org.apache.felix.framework</artifactId>
336 <version>4.2.0</version>
337 <scope>test</scope>
338 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000339 <dependency>
340 <groupId>org.osgi</groupId>
341 <artifactId>org.osgi.core</artifactId>
342 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000343 <scope>compile</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000344 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000345 </dependencies>
346 </profile>
347
348 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000349 <!--
350 avoid using the invoker and use a regular reactor instead.
351 it must be coupled with another profile to select the right OSGi framework implementation
Clement Escoffierdc197b32013-05-07 07:39:24 +0000352
353 * mvn clean install -Preactor,felix
354 * mvn clean install -Preactor,equinox
355 * mvn clean install -Preactor,knopflerfish
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000356 -->
357 <id>reactor</id>
358
359 <modules>
360 <module>src/it/ipojo-core-annotations-test</module>
361 <module>src/it/ipojo-core-bad-configuration-test</module>
362 <module>src/it/ipojo-core-configuration-admin-test</module>
363 <module>src/it/ipojo-core-configuration-processor-test</module>
364 <module>src/it/ipojo-core-configuration-test</module>
365 <module>src/it/ipojo-core-external-handlers-test</module>
366 <module>src/it/ipojo-core-factory-test</module>
367 <module>src/it/ipojo-core-factory-version-test</module>
368 <module>src/it/ipojo-core-handler-test</module>
369 <module>src/it/ipojo-core-lifecycle-callback-test</module>
370 <module>src/it/ipojo-core-lifecycle-controller-test</module>
371 <module>src/it/ipojo-core-logger-test</module>
372 <module>src/it/ipojo-core-service-dependency-optional-test</module>
373 <module>src/it/ipojo-core-service-dependency-policies</module>
374 <module>src/it/ipojo-core-service-dependency-proxies</module>
375 <module>src/it/ipojo-core-service-dependency-test</module>
376 <module>src/it/ipojo-core-service-providing-test</module>
377 </modules>
378
Clement Escoffierdc197b32013-05-07 07:39:24 +0000379 <build>
380 <pluginManagement>
381 <plugins>
382 <plugin>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-surefire-plugin</artifactId>
385 <version>2.14.1</version>
386 <configuration>
387 <systemPropertyVariables>
388 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
389 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
390 </systemPropertyVariables>
391 </configuration>
392 </plugin>
393 </plugins>
394 </pluginManagement>
395 </build>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000396 </profile>
397
398 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000399 <id>test</id>
400 <activation>
401 <activeByDefault>true</activeByDefault>
402 </activation>
403 <build>
404 <plugins>
405 <plugin>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-invoker-plugin</artifactId>
408 <version>1.8</version>
409 <configuration>
410 <streamLogs>true</streamLogs>
411 <goals>
412 <goal>clean</goal>
413 <goal>test</goal>
414 </goals>
415 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000416 <environmentVariables>
417 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
418 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
419 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000420 </configuration>
421 <executions>
422 <execution>
423 <id>regular</id>
424 <goals>
425 <goal>run</goal>
426 </goals>
427 <configuration>
428 <profiles>
429 <profile>felix</profile>
430 </profiles>
431 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
432 </configuration>
433 </execution>
434 </executions>
435 </plugin>
436 </plugins>
437 </build>
438 </profile>
439
440 <profile>
441 <id>test-all</id>
442 <activation>
443 <activeByDefault>false</activeByDefault>
444 </activation>
445 <build>
446 <plugins>
447 <plugin>
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-invoker-plugin</artifactId>
450 <version>1.8</version>
451 <configuration>
452 <streamLogs>true</streamLogs>
453 <goals>
454 <goal>clean</goal>
455 <goal>test</goal>
456 </goals>
457 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000458 <environmentVariables>
459 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
460 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
461 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000462 </configuration>
463 <executions>
464 <execution>
465 <id>equinox-native</id>
466 <goals>
467 <goal>run</goal>
468 </goals>
469 <configuration>
470 <profiles>
471 <profile>equinox</profile>
472 </profiles>
473 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
474
475 </configuration>
476 </execution>
477 <execution>
478 <id>felix-native</id>
479 <goals>
480 <goal>run</goal>
481 </goals>
482 <configuration>
483 <profiles>
484 <profile>felix</profile>
485 </profiles>
486 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
487 </configuration>
488 </execution>
489 <execution>
490 <id>knopflerfish-native</id>
491 <goals>
492 <goal>run</goal>
493 </goals>
494 <configuration>
495 <profiles>
496 <profile>knopflerfish</profile>
497 </profiles>
498 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
499 </configuration>
500 </execution>
501 </executions>
502 </plugin>
503 </plugins>
504 </build>
505 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000506
507 <profile>
508 <id>apache-release</id>
509 <build>
510 <plugins>
511 <plugin>
512 <artifactId>maven-assembly-plugin</artifactId>
513 <dependencies>
514 <dependency>
515 <groupId>org.apache.apache.resources</groupId>
516 <artifactId>apache-source-release-assembly-descriptor</artifactId>
517 <version>1.0.3</version>
518 </dependency>
519 </dependencies>
520 <executions>
521 <execution>
522 <id>source-release-assembly</id>
523 <phase>package</phase>
524 <goals>
525 <goal>single</goal>
526 </goals>
527 <configuration>
528 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
529 <descriptorRefs>
530 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
531 </descriptorRefs>
532 <tarLongFileMode>gnu</tarLongFileMode>
533 </configuration>
534 </execution>
535 </executions>
536 </plugin>
537 </plugins>
538 </build>
539 </profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000540 </profiles>
Clement Escoffierab397832013-05-15 15:43:05 +0000541
542 <scm>
543 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/releases/org.apache.felix.ipojo.runtime-project-1.10.0/org.apache.felix.ipojo.runtime.core-it</connection>
544 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.ipojo.runtime-project-1.10.0/org.apache.felix.ipojo.runtime.core-it</developerConnection>
545 <url>http://svn.apache.org/viewvc/felix/releases/?root=Apache-SVN/org.apache.felix.ipojo.runtime-project-1.10.0/org.apache.felix.ipojo.runtime.core-it</url>
546 </scm>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000547</project>