blob: 89070f84431fdee5504590c137da371b216162cd [file] [log] [blame]
Clement Escoffier33c03832013-02-26 13:02:34 +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-->
19<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">
22 <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 Escoffier33c03832013-02-26 13:02:34 +000026 <relativePath>../../../pom/pom.xml</relativePath>
27 </parent>
28 <modelVersion>4.0.0</modelVersion>
29 <artifactId>org.apache.felix.ipojo.runtime.composite-it</artifactId>
30 <version>1.9.0-SNAPSHOT</version>
31 <name>Apache Felix iPOJO Runtime Project ~ Composite Integration Tests</name>
32 <packaging>pom</packaging>
33
34 <build>
Clement Escoffier33c03832013-02-26 13:02:34 +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 Escoffier75bba6a2013-05-07 12:22:52 +000078 <exclude>**/*.iml</exclude>
79 <!-- Exclude iml files -->
Clement Escoffier9968ff72013-04-10 09:52:20 +000080 <!-- Exclude target folders that may have been created during
81 the integration-tests -->
Clement Escoffier75bba6a2013-05-07 12:22:52 +000082 <exclude>src/it/**/target/**/*</exclude>
Clement Escoffiered4ca022013-03-13 15:27:20 +000083 </excludes>
84 </configuration>
85 </plugin>
Clement Escoffier33c03832013-02-26 13:02:34 +000086 </plugins>
87
88 </build>
89
90 <properties>
Clement Escoffierd18900c2013-03-18 18:29:08 +000091 <!-- a new barrier check was pushed in the 3.0.1 -->
92 <exam.version>3.0.1</exam.version>
Clement Escoffier33c03832013-02-26 13:02:34 +000093 <url.version>1.5.1</url.version>
94 </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
126 <dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000127 <groupId>ch.qos.logback</groupId>
128 <artifactId>logback-core</artifactId>
129 <version>0.9.6</version>
130 <scope>test</scope>
131 </dependency>
132
133 <dependency>
134 <groupId>ch.qos.logback</groupId>
135 <artifactId>logback-classic</artifactId>
136 <version>0.9.6</version>
137 <scope>test</scope>
138 </dependency>
139
140
141 <dependency>
142 <groupId>junit</groupId>
143 <artifactId>junit</artifactId>
144 <version>4.9</version>
145 <scope>test</scope>
146 </dependency>
147
148 <dependency>
149 <groupId>org.mockito</groupId>
150 <artifactId>mockito-all</artifactId>
151 <version>1.9.5</version>
152 </dependency>
153
154 <dependency>
155 <groupId>org.ops4j.pax.tinybundles</groupId>
156 <artifactId>tinybundles</artifactId>
157 <version>1.0.0</version>
158 </dependency>
159
160 <dependency>
161 <groupId>org.apache.felix</groupId>
162 <artifactId>org.apache.felix.ipojo</artifactId>
163 <version>1.9.0-SNAPSHOT</version>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000164 <exclusions>
165 <exclusion>
166 <groupId>org.osgi</groupId>
167 <artifactId>org.osgi.core</artifactId>
168 </exclusion>
169 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000170 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000171
Clement Escoffier33c03832013-02-26 13:02:34 +0000172 <dependency>
173 <groupId>org.apache.felix</groupId>
174 <artifactId>org.apache.felix.ipojo.composite</artifactId>
175 <version>1.9.0-SNAPSHOT</version>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000176 <exclusions>
177 <exclusion>
178 <groupId>org.osgi</groupId>
179 <artifactId>org.osgi.core</artifactId>
180 </exclusion>
181 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000182 </dependency>
183
184 <dependency>
185 <groupId>org.apache.felix</groupId>
186 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
187 <version>1.9.0-SNAPSHOT</version>
188 </dependency>
189
190 <dependency>
191 <groupId>org.apache.felix</groupId>
192 <artifactId>org.apache.felix.configadmin</artifactId>
193 <version>1.6.0</version>
194 <scope>test</scope>
195 </dependency>
196
197 <dependency>
198 <groupId>commons-io</groupId>
199 <artifactId>commons-io</artifactId>
200 <version>2.4</version>
201 </dependency>
202
203 <dependency>
204 <groupId>org.ow2.chameleon.testing</groupId>
205 <artifactId>osgi-helpers</artifactId>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000206 <version>0.6.1-SNAPSHOT</version>
Clement Escoffier33c03832013-02-26 13:02:34 +0000207 <scope>test</scope>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000208 <exclusions>
209 <exclusion>
210 <groupId>org.osgi</groupId>
211 <artifactId>org.osgi.core</artifactId>
212 </exclusion>
213 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000214 </dependency>
215
216 <dependency>
217 <groupId>org.ow2.chameleon.testing</groupId>
218 <artifactId>tinybundles-ipojo</artifactId>
219 <version>0.3.0</version>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000220 <scope>test</scope>
Clement Escoffier33c03832013-02-26 13:02:34 +0000221 </dependency>
222
223 <dependency>
224 <groupId>org.apache.felix</groupId>
225 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
226 <!--
227 We use the released version as we don't really have to do any behavioral test on the handler in the core
228 test.
229 -->
230 <version>1.8.0</version>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000231 <exclusions>
232 <exclusion>
233 <groupId>org.osgi</groupId>
234 <artifactId>org.osgi.core</artifactId>
235 </exclusion>
236 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000237 </dependency>
238
239 <dependency>
240 <groupId>org.apache.felix</groupId>
241 <artifactId>org.apache.felix.log</artifactId>
242 <version>1.0.1</version>
243 </dependency>
244
245 <dependency>
246 <groupId>org.ops4j.pax.url</groupId>
247 <artifactId>pax-url-wrap</artifactId>
248 <version>1.5.2</version>
249 </dependency>
250 </dependencies>
251
252 <profiles>
253 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000254 <id>knopflerfish</id>
255 <activation>
256 <activeByDefault>false</activeByDefault>
257 <property>
258 <name>pax.exam.framework</name>
259 <value>knopflerfish</value>
260 </property>
261 </activation>
262 <properties>
263 <pax.exam.framework>knopflerfish</pax.exam.framework>
264 </properties>
265 <repositories>
266 <repository>
267 <id>knopflerfish-releases</id>
268 <url>http://www.knopflerfish.org/maven2</url>
269 </repository>
270 </repositories>
271 <dependencies>
272 <dependency>
273 <groupId>org.knopflerfish</groupId>
274 <artifactId>framework</artifactId>
275 <version>5.2.0</version>
276 <scope>test</scope>
277 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000278 <dependency>
279 <groupId>org.osgi</groupId>
280 <artifactId>org.osgi.core</artifactId>
281 <version>4.3.1</version>
282 <scope>provided</scope>
283 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000284 </dependencies>
285 </profile>
286
287 <profile>
288 <id>equinox</id>
289 <activation>
290 <activeByDefault>false</activeByDefault>
291 <property>
292 <name>pax.exam.framework</name>
293 <value>equinox</value>
294 </property>
295 </activation>
296 <properties>
297 <pax.exam.framework>equinox</pax.exam.framework>
298 </properties>
299 <dependencies>
300 <dependency>
301 <groupId>org.eclipse.tycho</groupId>
302 <artifactId>org.eclipse.osgi</artifactId>
303 <version>3.8.1.v20120830-144521</version>
304 <scope>test</scope>
305 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000306 <dependency>
307 <groupId>org.osgi</groupId>
308 <artifactId>org.osgi.core</artifactId>
309 <version>4.3.1</version>
310 <scope>provided</scope>
311 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000312 </dependencies>
313 </profile>
314
315 <profile>
316 <id>felix</id>
317 <activation>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000318 <activeByDefault>true</activeByDefault>
Clement Escoffier33c03832013-02-26 13:02:34 +0000319 <property>
320 <name>pax.exam.framework</name>
321 <value>felix</value>
322 </property>
323 </activation>
324 <properties>
325 <pax.exam.framework>felix</pax.exam.framework>
326 </properties>
327 <dependencies>
328 <dependency>
329 <groupId>org.apache.felix</groupId>
330 <artifactId>org.apache.felix.framework</artifactId>
331 <version>4.2.0</version>
332 <scope>test</scope>
333 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000334 <dependency>
335 <groupId>org.osgi</groupId>
336 <artifactId>org.osgi.core</artifactId>
337 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000338 <scope>compile</scope>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000339 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000340 </dependencies>
341 </profile>
342
343 <profile>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000344 <!--
345 avoid using the invoker and use a regular reactor instead.
346 it must be coupled with another profile to select the right OSGi framework implementation
347
348 * mvn clean install -Preactor,felix
349 * mvn clean install -Preactor,equinox
350 * mvn clean install -Preactor,knopflerfish
351 -->
352 <id>reactor</id>
353
354 <modules>
355 <module>src/it/ipojo-composite-runtime-test</module>
356 <module>src/it/ipojo-composite-import-export-test</module>
357 <module>src/it/ipojo-composite-instance-test</module>
358 <module>src/it/ipojo-composite-service-providing-test</module>
359 </modules>
360
361 <build>
362 <pluginManagement>
363 <plugins>
364 <plugin>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-surefire-plugin</artifactId>
367 <version>2.14.1</version>
368 <configuration>
369 <systemPropertyVariables>
370 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
371 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
372 </systemPropertyVariables>
373 </configuration>
374 </plugin>
375 </plugins>
376 </pluginManagement>
377 </build>
378
379 </profile>
380
381 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000382 <id>test</id>
383 <activation>
384 <activeByDefault>true</activeByDefault>
385 </activation>
386 <build>
387 <plugins>
388 <plugin>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-invoker-plugin</artifactId>
391 <version>1.8</version>
392 <configuration>
393 <streamLogs>true</streamLogs>
394 <goals>
395 <goal>clean</goal>
396 <goal>test</goal>
397 </goals>
398 <cloneClean>true</cloneClean>
399 </configuration>
400 <executions>
401 <execution>
402 <id>regular</id>
403 <goals>
404 <goal>run</goal>
405 </goals>
406 <configuration>
407 <profiles>
408 <profile>felix</profile>
409 </profiles>
410 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
411 </configuration>
412 </execution>
413 </executions>
414 </plugin>
415 </plugins>
416 </build>
417 </profile>
418
419 <profile>
420 <id>test-all</id>
421 <activation>
422 <activeByDefault>false</activeByDefault>
423 </activation>
424 <build>
425 <plugins>
426 <plugin>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-invoker-plugin</artifactId>
429 <version>1.8</version>
430 <configuration>
431 <streamLogs>true</streamLogs>
432 <goals>
433 <goal>clean</goal>
434 <goal>test</goal>
435 </goals>
436 <cloneClean>true</cloneClean>
437 </configuration>
438 <executions>
439 <execution>
440 <id>equinox-native</id>
441 <goals>
442 <goal>run</goal>
443 </goals>
444 <configuration>
445 <profiles>
446 <profile>equinox</profile>
447 </profiles>
448 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
449
450 </configuration>
451 </execution>
452 <execution>
453 <id>felix-native</id>
454 <goals>
455 <goal>run</goal>
456 </goals>
457 <configuration>
458 <profiles>
459 <profile>felix</profile>
460 </profiles>
461 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
462 </configuration>
463 </execution>
464 <execution>
465 <id>knopflerfish-native</id>
466 <goals>
467 <goal>run</goal>
468 </goals>
469 <configuration>
470 <profiles>
471 <profile>knopflerfish</profile>
472 </profiles>
473 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
474 </configuration>
475 </execution>
476 </executions>
477 </plugin>
478 </plugins>
479 </build>
480 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000481
482 <profile>
483 <id>apache-release</id>
484 <build>
485 <plugins>
486 <plugin>
487 <artifactId>maven-assembly-plugin</artifactId>
488 <dependencies>
489 <dependency>
490 <groupId>org.apache.apache.resources</groupId>
491 <artifactId>apache-source-release-assembly-descriptor</artifactId>
492 <version>1.0.3</version>
493 </dependency>
494 </dependencies>
495 <executions>
496 <execution>
497 <id>source-release-assembly</id>
498 <phase>package</phase>
499 <goals>
500 <goal>single</goal>
501 </goals>
502 <configuration>
503 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
504 <descriptorRefs>
505 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
506 </descriptorRefs>
507 <tarLongFileMode>gnu</tarLongFileMode>
508 </configuration>
509 </execution>
510 </executions>
511 </plugin>
512 </plugins>
513 </build>
514 </profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000515 </profiles>
Clement Escoffier903fc6a2013-05-08 17:22:16 +0000516
517 <repositories>
518 <!-- Temporal addition of this repository until the osgi-helper are released -->
519 <!-- TODO remove this before the release -->
520 <repository>
521 <id>ow2.snapshots</id>
522 <url>http://repository.ow2.org/nexus/content/repositories/snapshots/</url>
523 </repository>
524 </repositories>
Clement Escoffier33c03832013-02-26 13:02:34 +0000525</project>