blob: 18ce6b72a68fe58dbcfc2d4d3bfdf97daa231208 [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 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>
Guillaume Sauthier8c8c7c22013-06-01 18:45:03 +000098 <manipulator.version>1.10.1-SNAPSHOT</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>
Guillaume Sauthier8c8c7c22013-06-01 18:45:03 +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 Escoffiera5649bd2013-05-15 15:43:37 +0000187 <version>1.10.1-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>
Guillaume Sauthier8c8c7c22013-06-01 18:45:03 +0000199 <version>${manipulator.version}</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>
262 </dependencies>
263
Clement Escoffier1c47f282013-02-13 16:26:18 +0000264 <profiles>
265 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000266 <id>knopflerfish</id>
267 <activation>
268 <activeByDefault>false</activeByDefault>
269 <property>
270 <name>pax.exam.framework</name>
271 <value>knopflerfish</value>
272 </property>
273 </activation>
274 <properties>
275 <pax.exam.framework>knopflerfish</pax.exam.framework>
276 </properties>
277 <repositories>
278 <repository>
279 <id>knopflerfish-releases</id>
280 <url>http://www.knopflerfish.org/maven2</url>
281 </repository>
282 </repositories>
283 <dependencies>
284 <dependency>
285 <groupId>org.knopflerfish</groupId>
286 <artifactId>framework</artifactId>
287 <version>5.2.0</version>
288 <scope>test</scope>
289 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000290 <dependency>
291 <groupId>org.osgi</groupId>
292 <artifactId>org.osgi.core</artifactId>
293 <version>4.3.1</version>
294 <scope>provided</scope>
295 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000296 </dependencies>
297 </profile>
298
299 <profile>
300 <id>equinox</id>
301 <activation>
302 <activeByDefault>false</activeByDefault>
303 <property>
304 <name>pax.exam.framework</name>
305 <value>equinox</value>
306 </property>
307 </activation>
308 <properties>
309 <pax.exam.framework>equinox</pax.exam.framework>
310 </properties>
311 <dependencies>
312 <dependency>
313 <groupId>org.eclipse.tycho</groupId>
314 <artifactId>org.eclipse.osgi</artifactId>
315 <version>3.8.1.v20120830-144521</version>
316 <scope>test</scope>
317 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000318 <dependency>
319 <groupId>org.osgi</groupId>
320 <artifactId>org.osgi.core</artifactId>
321 <version>4.3.1</version>
322 <scope>provided</scope>
323 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000324 </dependencies>
325 </profile>
326
327 <profile>
328 <id>felix</id>
329 <activation>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000330 <activeByDefault>true</activeByDefault>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000331 <property>
332 <name>pax.exam.framework</name>
333 <value>felix</value>
334 </property>
335 </activation>
336 <properties>
337 <pax.exam.framework>felix</pax.exam.framework>
338 </properties>
339 <dependencies>
340 <dependency>
341 <groupId>org.apache.felix</groupId>
342 <artifactId>org.apache.felix.framework</artifactId>
343 <version>4.2.0</version>
344 <scope>test</scope>
345 </dependency>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000346 <dependency>
347 <groupId>org.osgi</groupId>
348 <artifactId>org.osgi.core</artifactId>
349 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000350 <scope>compile</scope>
Clement Escoffierbb01a8c2013-05-07 07:17:04 +0000351 </dependency>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000352 </dependencies>
353 </profile>
354
355 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000356 <!--
357 avoid using the invoker and use a regular reactor instead.
358 it must be coupled with another profile to select the right OSGi framework implementation
Clement Escoffierdc197b32013-05-07 07:39:24 +0000359
360 * mvn clean install -Preactor,felix
361 * mvn clean install -Preactor,equinox
362 * mvn clean install -Preactor,knopflerfish
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000363 -->
364 <id>reactor</id>
365
366 <modules>
367 <module>src/it/ipojo-core-annotations-test</module>
368 <module>src/it/ipojo-core-bad-configuration-test</module>
369 <module>src/it/ipojo-core-configuration-admin-test</module>
370 <module>src/it/ipojo-core-configuration-processor-test</module>
371 <module>src/it/ipojo-core-configuration-test</module>
372 <module>src/it/ipojo-core-external-handlers-test</module>
373 <module>src/it/ipojo-core-factory-test</module>
374 <module>src/it/ipojo-core-factory-version-test</module>
375 <module>src/it/ipojo-core-handler-test</module>
376 <module>src/it/ipojo-core-lifecycle-callback-test</module>
377 <module>src/it/ipojo-core-lifecycle-controller-test</module>
378 <module>src/it/ipojo-core-logger-test</module>
379 <module>src/it/ipojo-core-service-dependency-optional-test</module>
380 <module>src/it/ipojo-core-service-dependency-policies</module>
381 <module>src/it/ipojo-core-service-dependency-proxies</module>
382 <module>src/it/ipojo-core-service-dependency-test</module>
383 <module>src/it/ipojo-core-service-providing-test</module>
384 </modules>
385
Clement Escoffierdc197b32013-05-07 07:39:24 +0000386 <build>
387 <pluginManagement>
388 <plugins>
389 <plugin>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-surefire-plugin</artifactId>
392 <version>2.14.1</version>
393 <configuration>
394 <systemPropertyVariables>
395 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
396 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
397 </systemPropertyVariables>
398 </configuration>
399 </plugin>
400 </plugins>
401 </pluginManagement>
402 </build>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000403 </profile>
404
405 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000406 <id>test</id>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000407 <build>
408 <plugins>
409 <plugin>
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-invoker-plugin</artifactId>
412 <version>1.8</version>
413 <configuration>
414 <streamLogs>true</streamLogs>
415 <goals>
416 <goal>clean</goal>
417 <goal>test</goal>
418 </goals>
419 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000420 <environmentVariables>
421 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
422 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
423 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000424 </configuration>
425 <executions>
426 <execution>
427 <id>regular</id>
428 <goals>
429 <goal>run</goal>
430 </goals>
431 <configuration>
432 <profiles>
433 <profile>felix</profile>
434 </profiles>
435 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
436 </configuration>
437 </execution>
438 </executions>
439 </plugin>
440 </plugins>
441 </build>
442 </profile>
443
444 <profile>
445 <id>test-all</id>
446 <activation>
447 <activeByDefault>false</activeByDefault>
448 </activation>
449 <build>
450 <plugins>
451 <plugin>
452 <groupId>org.apache.maven.plugins</groupId>
453 <artifactId>maven-invoker-plugin</artifactId>
454 <version>1.8</version>
455 <configuration>
456 <streamLogs>true</streamLogs>
457 <goals>
458 <goal>clean</goal>
459 <goal>test</goal>
460 </goals>
461 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000462 <environmentVariables>
463 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
464 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
465 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000466 </configuration>
467 <executions>
468 <execution>
469 <id>equinox-native</id>
470 <goals>
471 <goal>run</goal>
472 </goals>
473 <configuration>
474 <profiles>
475 <profile>equinox</profile>
476 </profiles>
477 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
478
479 </configuration>
480 </execution>
481 <execution>
482 <id>felix-native</id>
483 <goals>
484 <goal>run</goal>
485 </goals>
486 <configuration>
487 <profiles>
488 <profile>felix</profile>
489 </profiles>
490 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
491 </configuration>
492 </execution>
493 <execution>
494 <id>knopflerfish-native</id>
495 <goals>
496 <goal>run</goal>
497 </goals>
498 <configuration>
499 <profiles>
500 <profile>knopflerfish</profile>
501 </profiles>
502 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
503 </configuration>
504 </execution>
505 </executions>
506 </plugin>
507 </plugins>
508 </build>
509 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000510
511 <profile>
512 <id>apache-release</id>
513 <build>
514 <plugins>
515 <plugin>
516 <artifactId>maven-assembly-plugin</artifactId>
517 <dependencies>
518 <dependency>
519 <groupId>org.apache.apache.resources</groupId>
520 <artifactId>apache-source-release-assembly-descriptor</artifactId>
521 <version>1.0.3</version>
522 </dependency>
523 </dependencies>
524 <executions>
525 <execution>
526 <id>source-release-assembly</id>
527 <phase>package</phase>
528 <goals>
529 <goal>single</goal>
530 </goals>
531 <configuration>
532 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
533 <descriptorRefs>
534 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
535 </descriptorRefs>
536 <tarLongFileMode>gnu</tarLongFileMode>
537 </configuration>
538 </execution>
539 </executions>
540 </plugin>
541 </plugins>
542 </build>
543 </profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000544 </profiles>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000545</project>