blob: 8fa42e98b9adf8e835cfda0945bf9453a9cf6103 [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 Escoffiera5649bd2013-05-15 15:43:37 +000028 <version>1.10.1-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 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>
Guillaume Sauthier8c8c7c22013-06-01 18:45:03 +000090 <manipulator.version>1.10.1-SNAPSHOT</manipulator.version>
Clement Escoffiera0030f52013-02-18 20:43:25 +000091 </properties>
92
93 <dependencies>
94
95 <dependency>
96 <groupId>org.ops4j.pax.exam</groupId>
97 <artifactId>pax-exam-container-native</artifactId>
98 <version>${exam.version}</version>
99 <scope>test</scope>
100 </dependency>
101
102 <dependency>
103 <groupId>org.ops4j.pax.exam</groupId>
104 <artifactId>pax-exam-junit4</artifactId>
105 <version>${exam.version}</version>
106 <scope>test</scope>
107 </dependency>
108
109 <dependency>
110 <groupId>org.ops4j.pax.exam</groupId>
111 <artifactId>pax-exam-link-mvn</artifactId>
112 <version>${exam.version}</version>
113 <scope>test</scope>
114 </dependency>
115
116 <dependency>
117 <groupId>org.ops4j.pax.url</groupId>
118 <artifactId>pax-url-aether</artifactId>
119 <version>${url.version}</version>
120 <scope>test</scope>
121 </dependency>
122
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000123 <!--<dependency>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000124 <groupId>org.apache.felix</groupId>
125 <artifactId>org.apache.felix.framework</artifactId>
126 <version>4.2.0</version>
127 <scope>test</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000128 </dependency>-->
Clement Escoffiera0030f52013-02-18 20:43:25 +0000129
130 <dependency>
131 <groupId>ch.qos.logback</groupId>
132 <artifactId>logback-core</artifactId>
133 <version>0.9.6</version>
134 <scope>test</scope>
135 </dependency>
136
137 <dependency>
138 <groupId>ch.qos.logback</groupId>
139 <artifactId>logback-classic</artifactId>
140 <version>0.9.6</version>
141 <scope>test</scope>
142 </dependency>
143
Clement Escoffiera0030f52013-02-18 20:43:25 +0000144 <dependency>
145 <groupId>junit</groupId>
146 <artifactId>junit</artifactId>
147 <version>4.9</version>
148 <scope>test</scope>
149 </dependency>
150
151 <dependency>
152 <groupId>org.mockito</groupId>
Clement Escoffiered4ca022013-03-13 15:27:20 +0000153 <artifactId>mockito-all</artifactId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000154 <version>1.9.5</version>
155 </dependency>
156
157 <dependency>
158 <groupId>org.ops4j.pax.tinybundles</groupId>
159 <artifactId>tinybundles</artifactId>
160 <version>1.0.0</version>
161 </dependency>
162
163 <dependency>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000164 <groupId>org.ow2.chameleon.testing</groupId>
165 <artifactId>tinybundles-ipojo</artifactId>
166 <version>0.3.0</version>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000167 <scope>test</scope>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000168 </dependency>
169
170 <dependency>
171 <groupId>org.apache.felix</groupId>
172 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
Guillaume Sauthier8c8c7c22013-06-01 18:45:03 +0000173 <version>${manipulator.version}</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000174 </dependency>
175
176 <dependency>
177 <groupId>org.apache.felix</groupId>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000178 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffiera5649bd2013-05-15 15:43:37 +0000179 <version>1.10.1-SNAPSHOT</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000180 <exclusions>
181 <exclusion>
182 <groupId>org.osgi</groupId>
183 <artifactId>org.osgi.core</artifactId>
184 </exclusion>
185 </exclusions>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000186 </dependency>
187
188 <dependency>
189 <groupId>org.apache.felix</groupId>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000190 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
Guillaume Sauthier8c8c7c22013-06-01 18:45:03 +0000191 <version>${manipulator.version}</version>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000192 </dependency>
193
194 <dependency>
195 <groupId>org.apache.felix</groupId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000196 <artifactId>org.apache.felix.configadmin</artifactId>
197 <version>1.6.0</version>
198 <scope>test</scope>
199 </dependency>
200
201 <dependency>
202 <groupId>commons-io</groupId>
203 <artifactId>commons-io</artifactId>
204 <version>2.4</version>
205 </dependency>
206
207 <dependency>
208 <groupId>org.ow2.chameleon.testing</groupId>
209 <artifactId>osgi-helpers</artifactId>
Clement Escoffierab397832013-05-15 15:43:05 +0000210 <version>0.6.1</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000211 <scope>test</scope>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000212 <exclusions>
213 <exclusion>
214 <groupId>org.osgi</groupId>
215 <artifactId>org.osgi.core</artifactId>
216 </exclusion>
217 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000218 </dependency>
219
Clement Escoffiera0030f52013-02-18 20:43:25 +0000220
221 <dependency>
222 <groupId>org.apache.felix</groupId>
223 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
224 <!--
225 We use the released version as we don't really have to do any behavioral test on the handler in the core
226 test.
227 -->
228 <version>1.8.0</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000229 <exclusions>
230 <exclusion>
231 <groupId>org.osgi</groupId>
232 <artifactId>org.osgi.core</artifactId>
233 </exclusion>
234 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000235 </dependency>
236
237 <dependency>
238 <groupId>org.apache.felix</groupId>
239 <artifactId>org.apache.felix.log</artifactId>
240 <version>1.0.1</version>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000241 <exclusions>
242 <exclusion>
243 <groupId>org.osgi</groupId>
244 <artifactId>org.osgi.core</artifactId>
245 </exclusion>
246 </exclusions>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000247 </dependency>
248
249 <dependency>
250 <groupId>org.ops4j.pax.url</groupId>
251 <artifactId>pax-url-wrap</artifactId>
252 <version>1.5.2</version>
253 </dependency>
254 </dependencies>
255
Clement Escoffier1c47f282013-02-13 16:26:18 +0000256 <profiles>
257 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000258 <id>knopflerfish</id>
259 <activation>
260 <activeByDefault>false</activeByDefault>
261 <property>
262 <name>pax.exam.framework</name>
263 <value>knopflerfish</value>
264 </property>
265 </activation>
266 <properties>
267 <pax.exam.framework>knopflerfish</pax.exam.framework>
268 </properties>
269 <repositories>
270 <repository>
271 <id>knopflerfish-releases</id>
272 <url>http://www.knopflerfish.org/maven2</url>
273 </repository>
274 </repositories>
275 <dependencies>
276 <dependency>
277 <groupId>org.knopflerfish</groupId>
278 <artifactId>framework</artifactId>
279 <version>5.2.0</version>
280 <scope>test</scope>
281 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000282 <dependency>
283 <groupId>org.osgi</groupId>
284 <artifactId>org.osgi.core</artifactId>
285 <version>4.3.1</version>
286 <scope>provided</scope>
287 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000288 </dependencies>
289 </profile>
290
291 <profile>
292 <id>equinox</id>
293 <activation>
294 <activeByDefault>false</activeByDefault>
295 <property>
296 <name>pax.exam.framework</name>
297 <value>equinox</value>
298 </property>
299 </activation>
300 <properties>
301 <pax.exam.framework>equinox</pax.exam.framework>
302 </properties>
303 <dependencies>
304 <dependency>
305 <groupId>org.eclipse.tycho</groupId>
306 <artifactId>org.eclipse.osgi</artifactId>
307 <version>3.8.1.v20120830-144521</version>
308 <scope>test</scope>
309 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000310 <dependency>
311 <groupId>org.osgi</groupId>
312 <artifactId>org.osgi.core</artifactId>
313 <version>4.3.1</version>
314 <scope>provided</scope>
315 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000316 </dependencies>
317 </profile>
318
319 <profile>
320 <id>felix</id>
321 <activation>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000322 <activeByDefault>true</activeByDefault>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000323 <property>
324 <name>pax.exam.framework</name>
325 <value>felix</value>
326 </property>
327 </activation>
328 <properties>
329 <pax.exam.framework>felix</pax.exam.framework>
330 </properties>
331 <dependencies>
332 <dependency>
333 <groupId>org.apache.felix</groupId>
334 <artifactId>org.apache.felix.framework</artifactId>
335 <version>4.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>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000342 <scope>compile</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000343 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000344 </dependencies>
345 </profile>
346
347 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000348 <!--
349 avoid using the invoker and use a regular reactor instead.
350 it must be coupled with another profile to select the right OSGi framework implementation
Clement Escoffierdc197b32013-05-07 07:39:24 +0000351
352 * mvn clean install -Preactor,felix
353 * mvn clean install -Preactor,equinox
354 * mvn clean install -Preactor,knopflerfish
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000355 -->
356 <id>reactor</id>
357
358 <modules>
359 <module>src/it/ipojo-core-annotations-test</module>
360 <module>src/it/ipojo-core-bad-configuration-test</module>
361 <module>src/it/ipojo-core-configuration-admin-test</module>
362 <module>src/it/ipojo-core-configuration-processor-test</module>
363 <module>src/it/ipojo-core-configuration-test</module>
364 <module>src/it/ipojo-core-external-handlers-test</module>
365 <module>src/it/ipojo-core-factory-test</module>
366 <module>src/it/ipojo-core-factory-version-test</module>
367 <module>src/it/ipojo-core-handler-test</module>
368 <module>src/it/ipojo-core-lifecycle-callback-test</module>
369 <module>src/it/ipojo-core-lifecycle-controller-test</module>
370 <module>src/it/ipojo-core-logger-test</module>
371 <module>src/it/ipojo-core-service-dependency-optional-test</module>
372 <module>src/it/ipojo-core-service-dependency-policies</module>
373 <module>src/it/ipojo-core-service-dependency-proxies</module>
374 <module>src/it/ipojo-core-service-dependency-test</module>
375 <module>src/it/ipojo-core-service-providing-test</module>
376 </modules>
377
Clement Escoffierdc197b32013-05-07 07:39:24 +0000378 <build>
379 <pluginManagement>
380 <plugins>
381 <plugin>
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-surefire-plugin</artifactId>
384 <version>2.14.1</version>
385 <configuration>
386 <systemPropertyVariables>
387 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
388 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
389 </systemPropertyVariables>
390 </configuration>
391 </plugin>
392 </plugins>
393 </pluginManagement>
394 </build>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000395 </profile>
396
397 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000398 <id>test</id>
399 <activation>
400 <activeByDefault>true</activeByDefault>
401 </activation>
402 <build>
403 <plugins>
404 <plugin>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-invoker-plugin</artifactId>
407 <version>1.8</version>
408 <configuration>
409 <streamLogs>true</streamLogs>
410 <goals>
411 <goal>clean</goal>
412 <goal>test</goal>
413 </goals>
414 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000415 <environmentVariables>
416 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
417 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
418 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000419 </configuration>
420 <executions>
421 <execution>
422 <id>regular</id>
423 <goals>
424 <goal>run</goal>
425 </goals>
426 <configuration>
427 <profiles>
428 <profile>felix</profile>
429 </profiles>
430 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
431 </configuration>
432 </execution>
433 </executions>
434 </plugin>
435 </plugins>
436 </build>
437 </profile>
438
439 <profile>
440 <id>test-all</id>
441 <activation>
442 <activeByDefault>false</activeByDefault>
443 </activation>
444 <build>
445 <plugins>
446 <plugin>
447 <groupId>org.apache.maven.plugins</groupId>
448 <artifactId>maven-invoker-plugin</artifactId>
449 <version>1.8</version>
450 <configuration>
451 <streamLogs>true</streamLogs>
452 <goals>
453 <goal>clean</goal>
454 <goal>test</goal>
455 </goals>
456 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000457 <environmentVariables>
458 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
459 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
460 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000461 </configuration>
462 <executions>
463 <execution>
464 <id>equinox-native</id>
465 <goals>
466 <goal>run</goal>
467 </goals>
468 <configuration>
469 <profiles>
470 <profile>equinox</profile>
471 </profiles>
472 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
473
474 </configuration>
475 </execution>
476 <execution>
477 <id>felix-native</id>
478 <goals>
479 <goal>run</goal>
480 </goals>
481 <configuration>
482 <profiles>
483 <profile>felix</profile>
484 </profiles>
485 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
486 </configuration>
487 </execution>
488 <execution>
489 <id>knopflerfish-native</id>
490 <goals>
491 <goal>run</goal>
492 </goals>
493 <configuration>
494 <profiles>
495 <profile>knopflerfish</profile>
496 </profiles>
497 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
498 </configuration>
499 </execution>
500 </executions>
501 </plugin>
502 </plugins>
503 </build>
504 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000505
506 <profile>
507 <id>apache-release</id>
508 <build>
509 <plugins>
510 <plugin>
511 <artifactId>maven-assembly-plugin</artifactId>
512 <dependencies>
513 <dependency>
514 <groupId>org.apache.apache.resources</groupId>
515 <artifactId>apache-source-release-assembly-descriptor</artifactId>
516 <version>1.0.3</version>
517 </dependency>
518 </dependencies>
519 <executions>
520 <execution>
521 <id>source-release-assembly</id>
522 <phase>package</phase>
523 <goals>
524 <goal>single</goal>
525 </goals>
526 <configuration>
527 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
528 <descriptorRefs>
529 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
530 </descriptorRefs>
531 <tarLongFileMode>gnu</tarLongFileMode>
532 </configuration>
533 </execution>
534 </executions>
535 </plugin>
536 </plugins>
537 </build>
538 </profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000539 </profiles>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000540</project>