blob: b4450f659835074ba4de50bc8ecc9edb886de469 [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 Escoffier2c47f5f2013-06-04 19:46:29 +000084
85 <plugin>
86 <artifactId>maven-deploy-plugin</artifactId>
87 <version>2.4</version>
88 <configuration>
89 <skip>true</skip>
90 </configuration>
91 </plugin>
Clement Escoffier33c03832013-02-26 13:02:34 +000092 </plugins>
93
94 </build>
95
96 <properties>
Clement Escoffierd18900c2013-03-18 18:29:08 +000097 <!-- a new barrier check was pushed in the 3.0.1 -->
98 <exam.version>3.0.1</exam.version>
Clement Escoffier33c03832013-02-26 13:02:34 +000099 <url.version>1.5.1</url.version>
100 </properties>
101
102 <dependencies>
103
104 <dependency>
105 <groupId>org.ops4j.pax.exam</groupId>
106 <artifactId>pax-exam-container-native</artifactId>
107 <version>${exam.version}</version>
108 <scope>test</scope>
109 </dependency>
110
111 <dependency>
112 <groupId>org.ops4j.pax.exam</groupId>
113 <artifactId>pax-exam-junit4</artifactId>
114 <version>${exam.version}</version>
115 <scope>test</scope>
116 </dependency>
117
118 <dependency>
119 <groupId>org.ops4j.pax.exam</groupId>
120 <artifactId>pax-exam-link-mvn</artifactId>
121 <version>${exam.version}</version>
122 <scope>test</scope>
123 </dependency>
124
125 <dependency>
126 <groupId>org.ops4j.pax.url</groupId>
127 <artifactId>pax-url-aether</artifactId>
128 <version>${url.version}</version>
129 <scope>test</scope>
130 </dependency>
131
132 <dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000133 <groupId>ch.qos.logback</groupId>
134 <artifactId>logback-core</artifactId>
135 <version>0.9.6</version>
136 <scope>test</scope>
137 </dependency>
138
139 <dependency>
140 <groupId>ch.qos.logback</groupId>
141 <artifactId>logback-classic</artifactId>
142 <version>0.9.6</version>
143 <scope>test</scope>
144 </dependency>
145
146
147 <dependency>
148 <groupId>junit</groupId>
149 <artifactId>junit</artifactId>
150 <version>4.9</version>
151 <scope>test</scope>
152 </dependency>
153
154 <dependency>
155 <groupId>org.mockito</groupId>
156 <artifactId>mockito-all</artifactId>
157 <version>1.9.5</version>
158 </dependency>
159
160 <dependency>
161 <groupId>org.ops4j.pax.tinybundles</groupId>
162 <artifactId>tinybundles</artifactId>
163 <version>1.0.0</version>
164 </dependency>
165
166 <dependency>
167 <groupId>org.apache.felix</groupId>
168 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffiera5649bd2013-05-15 15:43:37 +0000169 <version>1.10.1-SNAPSHOT</version>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000170 <exclusions>
171 <exclusion>
172 <groupId>org.osgi</groupId>
173 <artifactId>org.osgi.core</artifactId>
174 </exclusion>
175 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000176 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000177
Clement Escoffier33c03832013-02-26 13:02:34 +0000178 <dependency>
179 <groupId>org.apache.felix</groupId>
180 <artifactId>org.apache.felix.ipojo.composite</artifactId>
Clement Escoffiera5649bd2013-05-15 15:43:37 +0000181 <version>1.10.1-SNAPSHOT</version>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000182 <exclusions>
183 <exclusion>
184 <groupId>org.osgi</groupId>
185 <artifactId>org.osgi.core</artifactId>
186 </exclusion>
187 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000188 </dependency>
189
190 <dependency>
191 <groupId>org.apache.felix</groupId>
192 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
Clement Escoffierc34ba5c2013-05-16 08:12:53 +0000193 <version>1.10.1-SNAPSHOT</version>
Clement Escoffier33c03832013-02-26 13:02:34 +0000194 </dependency>
195
196 <dependency>
197 <groupId>org.apache.felix</groupId>
198 <artifactId>org.apache.felix.configadmin</artifactId>
199 <version>1.6.0</version>
200 <scope>test</scope>
201 </dependency>
202
203 <dependency>
204 <groupId>commons-io</groupId>
205 <artifactId>commons-io</artifactId>
206 <version>2.4</version>
207 </dependency>
208
209 <dependency>
210 <groupId>org.ow2.chameleon.testing</groupId>
211 <artifactId>osgi-helpers</artifactId>
Clement Escoffierab397832013-05-15 15:43:05 +0000212 <version>0.6.1</version>
Clement Escoffier33c03832013-02-26 13:02:34 +0000213 <scope>test</scope>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000214 <exclusions>
215 <exclusion>
216 <groupId>org.osgi</groupId>
217 <artifactId>org.osgi.core</artifactId>
218 </exclusion>
219 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000220 </dependency>
221
222 <dependency>
223 <groupId>org.ow2.chameleon.testing</groupId>
224 <artifactId>tinybundles-ipojo</artifactId>
225 <version>0.3.0</version>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000226 <scope>test</scope>
Clement Escoffier33c03832013-02-26 13:02:34 +0000227 </dependency>
228
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 Escoffier75bba6a2013-05-07 12:22:52 +0000237 <exclusions>
238 <exclusion>
239 <groupId>org.osgi</groupId>
240 <artifactId>org.osgi.core</artifactId>
241 </exclusion>
242 </exclusions>
Clement Escoffier33c03832013-02-26 13:02:34 +0000243 </dependency>
244
245 <dependency>
246 <groupId>org.apache.felix</groupId>
247 <artifactId>org.apache.felix.log</artifactId>
248 <version>1.0.1</version>
249 </dependency>
250
251 <dependency>
252 <groupId>org.ops4j.pax.url</groupId>
253 <artifactId>pax-url-wrap</artifactId>
254 <version>1.5.2</version>
255 </dependency>
256 </dependencies>
257
258 <profiles>
259 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000260 <id>knopflerfish</id>
261 <activation>
262 <activeByDefault>false</activeByDefault>
263 <property>
264 <name>pax.exam.framework</name>
265 <value>knopflerfish</value>
266 </property>
267 </activation>
268 <properties>
269 <pax.exam.framework>knopflerfish</pax.exam.framework>
270 </properties>
271 <repositories>
272 <repository>
273 <id>knopflerfish-releases</id>
274 <url>http://www.knopflerfish.org/maven2</url>
275 </repository>
276 </repositories>
277 <dependencies>
278 <dependency>
279 <groupId>org.knopflerfish</groupId>
280 <artifactId>framework</artifactId>
281 <version>5.2.0</version>
282 <scope>test</scope>
283 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000284 <dependency>
285 <groupId>org.osgi</groupId>
286 <artifactId>org.osgi.core</artifactId>
287 <version>4.3.1</version>
288 <scope>provided</scope>
289 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000290 </dependencies>
291 </profile>
292
293 <profile>
294 <id>equinox</id>
295 <activation>
296 <activeByDefault>false</activeByDefault>
297 <property>
298 <name>pax.exam.framework</name>
299 <value>equinox</value>
300 </property>
301 </activation>
302 <properties>
303 <pax.exam.framework>equinox</pax.exam.framework>
304 </properties>
305 <dependencies>
306 <dependency>
307 <groupId>org.eclipse.tycho</groupId>
308 <artifactId>org.eclipse.osgi</artifactId>
309 <version>3.8.1.v20120830-144521</version>
310 <scope>test</scope>
311 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000312 <dependency>
313 <groupId>org.osgi</groupId>
314 <artifactId>org.osgi.core</artifactId>
315 <version>4.3.1</version>
316 <scope>provided</scope>
317 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000318 </dependencies>
319 </profile>
320
321 <profile>
322 <id>felix</id>
323 <activation>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000324 <activeByDefault>true</activeByDefault>
Clement Escoffier33c03832013-02-26 13:02:34 +0000325 <property>
326 <name>pax.exam.framework</name>
327 <value>felix</value>
328 </property>
329 </activation>
330 <properties>
331 <pax.exam.framework>felix</pax.exam.framework>
332 </properties>
333 <dependencies>
334 <dependency>
335 <groupId>org.apache.felix</groupId>
336 <artifactId>org.apache.felix.framework</artifactId>
337 <version>4.2.0</version>
338 <scope>test</scope>
339 </dependency>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000340 <dependency>
341 <groupId>org.osgi</groupId>
342 <artifactId>org.osgi.core</artifactId>
343 <version>4.3.1</version>
Clement Escoffiercfae7912013-05-08 16:51:29 +0000344 <scope>compile</scope>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000345 </dependency>
Clement Escoffier33c03832013-02-26 13:02:34 +0000346 </dependencies>
347 </profile>
348
349 <profile>
Clement Escoffier75bba6a2013-05-07 12:22:52 +0000350 <!--
351 avoid using the invoker and use a regular reactor instead.
352 it must be coupled with another profile to select the right OSGi framework implementation
353
354 * mvn clean install -Preactor,felix
355 * mvn clean install -Preactor,equinox
356 * mvn clean install -Preactor,knopflerfish
357 -->
358 <id>reactor</id>
359
360 <modules>
361 <module>src/it/ipojo-composite-runtime-test</module>
362 <module>src/it/ipojo-composite-import-export-test</module>
363 <module>src/it/ipojo-composite-instance-test</module>
364 <module>src/it/ipojo-composite-service-providing-test</module>
365 </modules>
366
367 <build>
368 <pluginManagement>
369 <plugins>
370 <plugin>
371 <groupId>org.apache.maven.plugins</groupId>
372 <artifactId>maven-surefire-plugin</artifactId>
373 <version>2.14.1</version>
374 <configuration>
375 <systemPropertyVariables>
376 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
377 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
378 </systemPropertyVariables>
379 </configuration>
380 </plugin>
381 </plugins>
382 </pluginManagement>
383 </build>
384
385 </profile>
386
387 <profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000388 <id>test</id>
Clement Escoffier33c03832013-02-26 13:02:34 +0000389 <build>
390 <plugins>
391 <plugin>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-invoker-plugin</artifactId>
394 <version>1.8</version>
395 <configuration>
396 <streamLogs>true</streamLogs>
397 <goals>
398 <goal>clean</goal>
399 <goal>test</goal>
400 </goals>
401 <cloneClean>true</cloneClean>
402 </configuration>
403 <executions>
404 <execution>
405 <id>regular</id>
406 <goals>
407 <goal>run</goal>
408 </goals>
409 <configuration>
410 <profiles>
411 <profile>felix</profile>
412 </profiles>
413 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
414 </configuration>
415 </execution>
416 </executions>
417 </plugin>
418 </plugins>
419 </build>
420 </profile>
421
422 <profile>
423 <id>test-all</id>
424 <activation>
425 <activeByDefault>false</activeByDefault>
426 </activation>
427 <build>
428 <plugins>
429 <plugin>
430 <groupId>org.apache.maven.plugins</groupId>
431 <artifactId>maven-invoker-plugin</artifactId>
432 <version>1.8</version>
433 <configuration>
434 <streamLogs>true</streamLogs>
435 <goals>
436 <goal>clean</goal>
437 <goal>test</goal>
438 </goals>
439 <cloneClean>true</cloneClean>
440 </configuration>
441 <executions>
442 <execution>
443 <id>equinox-native</id>
444 <goals>
445 <goal>run</goal>
446 </goals>
447 <configuration>
448 <profiles>
449 <profile>equinox</profile>
450 </profiles>
451 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
452
453 </configuration>
454 </execution>
455 <execution>
456 <id>felix-native</id>
457 <goals>
458 <goal>run</goal>
459 </goals>
460 <configuration>
461 <profiles>
462 <profile>felix</profile>
463 </profiles>
464 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
465 </configuration>
466 </execution>
467 <execution>
468 <id>knopflerfish-native</id>
469 <goals>
470 <goal>run</goal>
471 </goals>
472 <configuration>
473 <profiles>
474 <profile>knopflerfish</profile>
475 </profiles>
476 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
477 </configuration>
478 </execution>
479 </executions>
480 </plugin>
481 </plugins>
482 </build>
483 </profile>
Clement Escoffierfe1775d2013-05-13 12:54:07 +0000484
485 <profile>
486 <id>apache-release</id>
487 <build>
488 <plugins>
489 <plugin>
490 <artifactId>maven-assembly-plugin</artifactId>
491 <dependencies>
492 <dependency>
493 <groupId>org.apache.apache.resources</groupId>
494 <artifactId>apache-source-release-assembly-descriptor</artifactId>
495 <version>1.0.3</version>
496 </dependency>
497 </dependencies>
498 <executions>
499 <execution>
500 <id>source-release-assembly</id>
501 <phase>package</phase>
502 <goals>
503 <goal>single</goal>
504 </goals>
505 <configuration>
506 <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
507 <descriptorRefs>
508 <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
509 </descriptorRefs>
510 <tarLongFileMode>gnu</tarLongFileMode>
511 </configuration>
512 </execution>
513 </executions>
514 </plugin>
515 </plugins>
516 </build>
517 </profile>
Clement Escoffier33c03832013-02-26 13:02:34 +0000518 </profiles>
Clement Escoffier33c03832013-02-26 13:02:34 +0000519</project>