blob: 44a3d5ec1ced8f8b51e2d2a5b2eabd8267eafac1 [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-->
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 Escoffier33c03832013-02-26 13:02:34 +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 Escoffier33c03832013-02-26 13:02:34 +000024 <relativePath>../../../pom/pom.xml</relativePath>
25 </parent>
26 <modelVersion>4.0.0</modelVersion>
27 <artifactId>org.apache.felix.ipojo.runtime.composite-it</artifactId>
Clement Escoffiera5649bd2013-05-15 15:43:37 +000028 <version>1.10.1-SNAPSHOT</version>
Clement Escoffier33c03832013-02-26 13:02:34 +000029 <name>Apache Felix iPOJO Runtime Project ~ Composite Integration Tests</name>
30 <packaging>pom</packaging>
31
32 <build>
Clement Escoffier33c03832013-02-26 13:02:34 +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 Escoffier75bba6a2013-05-07 12:22:52 +000076 <exclude>**/*.iml</exclude>
77 <!-- Exclude iml files -->
Clement Escoffier9968ff72013-04-10 09:52:20 +000078 <!-- Exclude target folders that may have been created during
79 the integration-tests -->
Clement Escoffier75bba6a2013-05-07 12:22:52 +000080 <exclude>src/it/**/target/**/*</exclude>
Clement Escoffiered4ca022013-03-13 15:27:20 +000081 </excludes>
82 </configuration>
83 </plugin>
Clement Escoffier33c03832013-02-26 13:02:34 +000084 </plugins>
85
86 </build>
87
88 <properties>
Clement Escoffierd18900c2013-03-18 18:29:08 +000089 <!-- a new barrier check was pushed in the 3.0.1 -->
90 <exam.version>3.0.1</exam.version>
Clement Escoffier33c03832013-02-26 13:02:34 +000091 <url.version>1.5.1</url.version>
92 </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
124 <dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000125 <groupId>ch.qos.logback</groupId>
126 <artifactId>logback-core</artifactId>
127 <version>0.9.6</version>
128 <scope>test</scope>
129 </dependency>
130
131 <dependency>
132 <groupId>ch.qos.logback</groupId>
133 <artifactId>logback-classic</artifactId>
134 <version>0.9.6</version>
135 <scope>test</scope>
136 </dependency>
137
138
139 <dependency>
140 <groupId>junit</groupId>
141 <artifactId>junit</artifactId>
142 <version>4.9</version>
143 <scope>test</scope>
144 </dependency>
145
146 <dependency>
147 <groupId>org.mockito</groupId>
148 <artifactId>mockito-all</artifactId>
149 <version>1.9.5</version>
150 </dependency>
151
152 <dependency>
153 <groupId>org.ops4j.pax.tinybundles</groupId>
154 <artifactId>tinybundles</artifactId>
155 <version>1.0.0</version>
156 </dependency>
157
158 <dependency>
159 <groupId>org.apache.felix</groupId>
160 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffiera5649bd2013-05-15 15:43:37 +0000161 <version>1.10.1-SNAPSHOT</version>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000162 <exclusions>
163 <exclusion>
164 <groupId>org.osgi</groupId>
165 <artifactId>org.osgi.core</artifactId>
166 </exclusion>
167 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000168 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000169
Clement Escoffier33c03832013-02-26 13:02:34 +0000170 <dependency>
171 <groupId>org.apache.felix</groupId>
172 <artifactId>org.apache.felix.ipojo.composite</artifactId>
Clement Escoffiera5649bd2013-05-15 15:43:37 +0000173 <version>1.10.1-SNAPSHOT</version>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000174 <exclusions>
175 <exclusion>
176 <groupId>org.osgi</groupId>
177 <artifactId>org.osgi.core</artifactId>
178 </exclusion>
179 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000180 </dependency>
181
182 <dependency>
183 <groupId>org.apache.felix</groupId>
184 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
Clement Escoffier9888f532013-05-15 13:58:22 +0000185 <version>1.10.0</version>
Clement Escoffier33c03832013-02-26 13:02:34 +0000186 </dependency>
187
188 <dependency>
189 <groupId>org.apache.felix</groupId>
190 <artifactId>org.apache.felix.configadmin</artifactId>
191 <version>1.6.0</version>
192 <scope>test</scope>
193 </dependency>
194
195 <dependency>
196 <groupId>commons-io</groupId>
197 <artifactId>commons-io</artifactId>
198 <version>2.4</version>
199 </dependency>
200
201 <dependency>
202 <groupId>org.ow2.chameleon.testing</groupId>
203 <artifactId>osgi-helpers</artifactId>
Clement Escoffierab397832013-05-15 15:43:05 +0000204 <version>0.6.1</version>
Clement Escoffier33c03832013-02-26 13:02:34 +0000205 <scope>test</scope>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000206 <exclusions>
207 <exclusion>
208 <groupId>org.osgi</groupId>
209 <artifactId>org.osgi.core</artifactId>
210 </exclusion>
211 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000212 </dependency>
213
214 <dependency>
215 <groupId>org.ow2.chameleon.testing</groupId>
216 <artifactId>tinybundles-ipojo</artifactId>
217 <version>0.3.0</version>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000218 <scope>test</scope>
Clement Escoffier33c03832013-02-26 13:02:34 +0000219 </dependency>
220
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 Escoffier75bba6a2013-05-07 12:22:52 +0000229 <exclusions>
230 <exclusion>
231 <groupId>org.osgi</groupId>
232 <artifactId>org.osgi.core</artifactId>
233 </exclusion>
234 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000235 </dependency>
236
237 <dependency>
238 <groupId>org.apache.felix</groupId>
239 <artifactId>org.apache.felix.log</artifactId>
240 <version>1.0.1</version>
241 </dependency>
242
243 <dependency>
244 <groupId>org.ops4j.pax.url</groupId>
245 <artifactId>pax-url-wrap</artifactId>
246 <version>1.5.2</version>
247 </dependency>
248 </dependencies>
249
250 <profiles>
251 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000252 <id>knopflerfish</id>
253 <activation>
254 <activeByDefault>false</activeByDefault>
255 <property>
256 <name>pax.exam.framework</name>
257 <value>knopflerfish</value>
258 </property>
259 </activation>
260 <properties>
261 <pax.exam.framework>knopflerfish</pax.exam.framework>
262 </properties>
263 <repositories>
264 <repository>
265 <id>knopflerfish-releases</id>
266 <url>http://www.knopflerfish.org/maven2</url>
267 </repository>
268 </repositories>
269 <dependencies>
270 <dependency>
271 <groupId>org.knopflerfish</groupId>
272 <artifactId>framework</artifactId>
273 <version>5.2.0</version>
274 <scope>test</scope>
275 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000276 <dependency>
277 <groupId>org.osgi</groupId>
278 <artifactId>org.osgi.core</artifactId>
279 <version>4.3.1</version>
280 <scope>provided</scope>
281 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000282 </dependencies>
283 </profile>
284
285 <profile>
286 <id>equinox</id>
287 <activation>
288 <activeByDefault>false</activeByDefault>
289 <property>
290 <name>pax.exam.framework</name>
291 <value>equinox</value>
292 </property>
293 </activation>
294 <properties>
295 <pax.exam.framework>equinox</pax.exam.framework>
296 </properties>
297 <dependencies>
298 <dependency>
299 <groupId>org.eclipse.tycho</groupId>
300 <artifactId>org.eclipse.osgi</artifactId>
301 <version>3.8.1.v20120830-144521</version>
302 <scope>test</scope>
303 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000304 <dependency>
305 <groupId>org.osgi</groupId>
306 <artifactId>org.osgi.core</artifactId>
307 <version>4.3.1</version>
308 <scope>provided</scope>
309 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000310 </dependencies>
311 </profile>
312
313 <profile>
314 <id>felix</id>
315 <activation>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000316 <activeByDefault>true</activeByDefault>
Clement Escoffier33c03832013-02-26 13:02:34 +0000317 <property>
318 <name>pax.exam.framework</name>
319 <value>felix</value>
320 </property>
321 </activation>
322 <properties>
323 <pax.exam.framework>felix</pax.exam.framework>
324 </properties>
325 <dependencies>
326 <dependency>
327 <groupId>org.apache.felix</groupId>
328 <artifactId>org.apache.felix.framework</artifactId>
329 <version>4.2.0</version>
330 <scope>test</scope>
331 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000332 <dependency>
333 <groupId>org.osgi</groupId>
334 <artifactId>org.osgi.core</artifactId>
335 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000336 <scope>compile</scope>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000337 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000338 </dependencies>
339 </profile>
340
341 <profile>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000342 <!--
343 avoid using the invoker and use a regular reactor instead.
344 it must be coupled with another profile to select the right OSGi framework implementation
345
346 * mvn clean install -Preactor,felix
347 * mvn clean install -Preactor,equinox
348 * mvn clean install -Preactor,knopflerfish
349 -->
350 <id>reactor</id>
351
352 <modules>
353 <module>src/it/ipojo-composite-runtime-test</module>
354 <module>src/it/ipojo-composite-import-export-test</module>
355 <module>src/it/ipojo-composite-instance-test</module>
356 <module>src/it/ipojo-composite-service-providing-test</module>
357 </modules>
358
359 <build>
360 <pluginManagement>
361 <plugins>
362 <plugin>
363 <groupId>org.apache.maven.plugins</groupId>
364 <artifactId>maven-surefire-plugin</artifactId>
365 <version>2.14.1</version>
366 <configuration>
367 <systemPropertyVariables>
368 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
369 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
370 </systemPropertyVariables>
371 </configuration>
372 </plugin>
373 </plugins>
374 </pluginManagement>
375 </build>
376
377 </profile>
378
379 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000380 <id>test</id>
381 <activation>
382 <activeByDefault>true</activeByDefault>
383 </activation>
384 <build>
385 <plugins>
386 <plugin>
387 <groupId>org.apache.maven.plugins</groupId>
388 <artifactId>maven-invoker-plugin</artifactId>
389 <version>1.8</version>
390 <configuration>
391 <streamLogs>true</streamLogs>
392 <goals>
393 <goal>clean</goal>
394 <goal>test</goal>
395 </goals>
396 <cloneClean>true</cloneClean>
397 </configuration>
398 <executions>
399 <execution>
400 <id>regular</id>
401 <goals>
402 <goal>run</goal>
403 </goals>
404 <configuration>
405 <profiles>
406 <profile>felix</profile>
407 </profiles>
408 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
409 </configuration>
410 </execution>
411 </executions>
412 </plugin>
413 </plugins>
414 </build>
415 </profile>
416
417 <profile>
418 <id>test-all</id>
419 <activation>
420 <activeByDefault>false</activeByDefault>
421 </activation>
422 <build>
423 <plugins>
424 <plugin>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-invoker-plugin</artifactId>
427 <version>1.8</version>
428 <configuration>
429 <streamLogs>true</streamLogs>
430 <goals>
431 <goal>clean</goal>
432 <goal>test</goal>
433 </goals>
434 <cloneClean>true</cloneClean>
435 </configuration>
436 <executions>
437 <execution>
438 <id>equinox-native</id>
439 <goals>
440 <goal>run</goal>
441 </goals>
442 <configuration>
443 <profiles>
444 <profile>equinox</profile>
445 </profiles>
446 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
447
448 </configuration>
449 </execution>
450 <execution>
451 <id>felix-native</id>
452 <goals>
453 <goal>run</goal>
454 </goals>
455 <configuration>
456 <profiles>
457 <profile>felix</profile>
458 </profiles>
459 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
460 </configuration>
461 </execution>
462 <execution>
463 <id>knopflerfish-native</id>
464 <goals>
465 <goal>run</goal>
466 </goals>
467 <configuration>
468 <profiles>
469 <profile>knopflerfish</profile>
470 </profiles>
471 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
472 </configuration>
473 </execution>
474 </executions>
475 </plugin>
476 </plugins>
477 </build>
478 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000479
480 <profile>
481 <id>apache-release</id>
482 <build>
483 <plugins>
484 <plugin>
485 <artifactId>maven-assembly-plugin</artifactId>
486 <dependencies>
487 <dependency>
488 <groupId>org.apache.apache.resources</groupId>
489 <artifactId>apache-source-release-assembly-descriptor</artifactId>
490 <version>1.0.3</version>
491 </dependency>
492 </dependencies>
493 <executions>
494 <execution>
495 <id>source-release-assembly</id>
496 <phase>package</phase>
497 <goals>
498 <goal>single</goal>
499 </goals>
500 <configuration>
501 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
502 <descriptorRefs>
503 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
504 </descriptorRefs>
505 <tarLongFileMode>gnu</tarLongFileMode>
506 </configuration>
507 </execution>
508 </executions>
509 </plugin>
510 </plugins>
511 </build>
512 </profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000513 </profiles>
Clement Escoffier33c03832013-02-26 13:02:34 +0000514</project>