blob: e41db3ec0a7ac55509b67746cfc16d1f99364e41 [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>
220 </dependency>
221
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 Escoffier75bba6a2013-05-07 12:22:52 +0000230 <exclusions>
231 <exclusion>
232 <groupId>org.osgi</groupId>
233 <artifactId>org.osgi.core</artifactId>
234 </exclusion>
235 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000236 </dependency>
237
238 <dependency>
239 <groupId>org.apache.felix</groupId>
240 <artifactId>org.apache.felix.log</artifactId>
241 <version>1.0.1</version>
242 </dependency>
243
244 <dependency>
245 <groupId>org.ops4j.pax.url</groupId>
246 <artifactId>pax-url-wrap</artifactId>
247 <version>1.5.2</version>
248 </dependency>
249 </dependencies>
250
251 <profiles>
252 <profile>
Clement Escoffier3f5d8792013-05-07 16:03:30 +0000253 <id>release</id>
254 <build>
255 <plugins>
256 <plugin>
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-assembly-plugin</artifactId>
259 <executions>
260 <execution>
261 <id>make-assembly</id>
262 <phase>package</phase>
263 <goals>
264 <goal>single</goal>
265 </goals>
266 <configuration>
267 <descriptorRefs>
268 <descriptorRef>project</descriptorRef>
269 </descriptorRefs>
270 <!-- we don't want to attach all the assemblies, such as bz2 -->
271 <attach>false</attach>
272 </configuration>
273 </execution>
274 </executions>
275 </plugin>
276 <plugin>
277 <!-- only attach the project and bin assemblies, in tar.gz and zip flavors -->
278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>build-helper-maven-plugin</artifactId>
280 <executions>
281 <execution>
282 <id>attach-assemblies</id>
283 <phase>package</phase>
284 <goals>
285 <goal>attach-artifact</goal>
286 </goals>
287 <configuration>
288 <artifacts>
289 <artifact>
290 <file>
291 ${project.build.directory}/${project.artifactId}-${project.version}-project.tar.gz
292 </file>
293 <classifier>project</classifier>
294 <type>tar.gz</type>
295 </artifact>
296 <artifact>
297 <file>
298 ${project.build.directory}/${project.artifactId}-${project.version}-project.zip
299 </file>
300 <classifier>project</classifier>
301 <type>zip</type>
302 </artifact>
303 </artifacts>
304 </configuration>
305 </execution>
306 </executions>
307 </plugin>
308 </plugins>
309 </build>
310 </profile>
311
312 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000313 <id>knopflerfish</id>
314 <activation>
315 <activeByDefault>false</activeByDefault>
316 <property>
317 <name>pax.exam.framework</name>
318 <value>knopflerfish</value>
319 </property>
320 </activation>
321 <properties>
322 <pax.exam.framework>knopflerfish</pax.exam.framework>
323 </properties>
324 <repositories>
325 <repository>
326 <id>knopflerfish-releases</id>
327 <url>http://www.knopflerfish.org/maven2</url>
328 </repository>
329 </repositories>
330 <dependencies>
331 <dependency>
332 <groupId>org.knopflerfish</groupId>
333 <artifactId>framework</artifactId>
334 <version>5.2.0</version>
335 <scope>test</scope>
336 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000337 <dependency>
338 <groupId>org.osgi</groupId>
339 <artifactId>org.osgi.core</artifactId>
340 <version>4.3.1</version>
341 <scope>provided</scope>
342 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000343 </dependencies>
344 </profile>
345
346 <profile>
347 <id>equinox</id>
348 <activation>
349 <activeByDefault>false</activeByDefault>
350 <property>
351 <name>pax.exam.framework</name>
352 <value>equinox</value>
353 </property>
354 </activation>
355 <properties>
356 <pax.exam.framework>equinox</pax.exam.framework>
357 </properties>
358 <dependencies>
359 <dependency>
360 <groupId>org.eclipse.tycho</groupId>
361 <artifactId>org.eclipse.osgi</artifactId>
362 <version>3.8.1.v20120830-144521</version>
363 <scope>test</scope>
364 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000365 <dependency>
366 <groupId>org.osgi</groupId>
367 <artifactId>org.osgi.core</artifactId>
368 <version>4.3.1</version>
369 <scope>provided</scope>
370 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000371 </dependencies>
372 </profile>
373
374 <profile>
375 <id>felix</id>
376 <activation>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000377 <activeByDefault>true</activeByDefault>
Clement Escoffier33c03832013-02-26 13:02:34 +0000378 <property>
379 <name>pax.exam.framework</name>
380 <value>felix</value>
381 </property>
382 </activation>
383 <properties>
384 <pax.exam.framework>felix</pax.exam.framework>
385 </properties>
386 <dependencies>
387 <dependency>
388 <groupId>org.apache.felix</groupId>
389 <artifactId>org.apache.felix.framework</artifactId>
390 <version>4.2.0</version>
391 <scope>test</scope>
392 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000393 <dependency>
394 <groupId>org.osgi</groupId>
395 <artifactId>org.osgi.core</artifactId>
396 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000397 <scope>compile</scope>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000398 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000399 </dependencies>
400 </profile>
401
402 <profile>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000403 <!--
404 avoid using the invoker and use a regular reactor instead.
405 it must be coupled with another profile to select the right OSGi framework implementation
406
407 * mvn clean install -Preactor,felix
408 * mvn clean install -Preactor,equinox
409 * mvn clean install -Preactor,knopflerfish
410 -->
411 <id>reactor</id>
412
413 <modules>
414 <module>src/it/ipojo-composite-runtime-test</module>
415 <module>src/it/ipojo-composite-import-export-test</module>
416 <module>src/it/ipojo-composite-instance-test</module>
417 <module>src/it/ipojo-composite-service-providing-test</module>
418 </modules>
419
420 <build>
421 <pluginManagement>
422 <plugins>
423 <plugin>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-surefire-plugin</artifactId>
426 <version>2.14.1</version>
427 <configuration>
428 <systemPropertyVariables>
429 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
430 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
431 </systemPropertyVariables>
432 </configuration>
433 </plugin>
434 </plugins>
435 </pluginManagement>
436 </build>
437
438 </profile>
439
440 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000441 <id>test</id>
442 <activation>
443 <activeByDefault>true</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>
458 </configuration>
459 <executions>
460 <execution>
461 <id>regular</id>
462 <goals>
463 <goal>run</goal>
464 </goals>
465 <configuration>
466 <profiles>
467 <profile>felix</profile>
468 </profiles>
469 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
470 </configuration>
471 </execution>
472 </executions>
473 </plugin>
474 </plugins>
475 </build>
476 </profile>
477
478 <profile>
479 <id>test-all</id>
480 <activation>
481 <activeByDefault>false</activeByDefault>
482 </activation>
483 <build>
484 <plugins>
485 <plugin>
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-invoker-plugin</artifactId>
488 <version>1.8</version>
489 <configuration>
490 <streamLogs>true</streamLogs>
491 <goals>
492 <goal>clean</goal>
493 <goal>test</goal>
494 </goals>
495 <cloneClean>true</cloneClean>
496 </configuration>
497 <executions>
498 <execution>
499 <id>equinox-native</id>
500 <goals>
501 <goal>run</goal>
502 </goals>
503 <configuration>
504 <profiles>
505 <profile>equinox</profile>
506 </profiles>
507 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
508
509 </configuration>
510 </execution>
511 <execution>
512 <id>felix-native</id>
513 <goals>
514 <goal>run</goal>
515 </goals>
516 <configuration>
517 <profiles>
518 <profile>felix</profile>
519 </profiles>
520 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
521 </configuration>
522 </execution>
523 <execution>
524 <id>knopflerfish-native</id>
525 <goals>
526 <goal>run</goal>
527 </goals>
528 <configuration>
529 <profiles>
530 <profile>knopflerfish</profile>
531 </profiles>
532 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
533 </configuration>
534 </execution>
535 </executions>
536 </plugin>
537 </plugins>
538 </build>
539 </profile>
540 </profiles>
Clement Escoffier903fc6a2013-05-08 17:22:16 +0000541
542 <repositories>
543 <!-- Temporal addition of this repository until the osgi-helper are released -->
544 <!-- TODO remove this before the release -->
545 <repository>
546 <id>ow2.snapshots</id>
547 <url>http://repository.ow2.org/nexus/content/repositories/snapshots/</url>
548 </repository>
549 </repositories>
Clement Escoffier33c03832013-02-26 13:02:34 +0000550</project>