blob: 03b9a424f47dd87ced53f0f6c4a2c6f824f85aaa [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-->
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 Escoffier1c47f282013-02-13 16:26:18 +000026 <relativePath>../../../pom/pom.xml</relativePath>
27 </parent>
28 <modelVersion>4.0.0</modelVersion>
29 <artifactId>org.apache.felix.ipojo.runtime.core-it</artifactId>
30 <version>1.9.0-SNAPSHOT</version>
31 <name>Apache Felix iPOJO Runtime Project ~ Core Integration Tests</name>
32 <packaging>pom</packaging>
33
34 <build>
Clement Escoffiera0030f52013-02-18 20:43:25 +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>
78 <exclude>**/*.iml</exclude> <!-- Exclude iml files -->
Clement Escoffier48877b22013-04-09 15:31:02 +000079 <exclude>src/it/*/target/**/*</exclude> <!-- Exclude sub target folders -->
Clement Escoffiered4ca022013-03-13 15:27:20 +000080 </excludes>
81 </configuration>
82 </plugin>
Clement Escoffiera0030f52013-02-18 20:43:25 +000083 </plugins>
84
Clement Escoffier1c47f282013-02-13 16:26:18 +000085 </build>
86
Clement Escoffiera0030f52013-02-18 20:43:25 +000087 <properties>
Clement Escoffierd18900c2013-03-18 18:29:08 +000088 <exam.version>3.0.1</exam.version>
Clement Escoffiera0030f52013-02-18 20:43:25 +000089 <url.version>1.5.1</url.version>
Clement Escoffier2545db72013-05-05 13:55:09 +000090
91
92
Clement Escoffiera0030f52013-02-18 20:43:25 +000093 </properties>
94
95 <dependencies>
96
97 <dependency>
98 <groupId>org.ops4j.pax.exam</groupId>
99 <artifactId>pax-exam-container-native</artifactId>
100 <version>${exam.version}</version>
101 <scope>test</scope>
102 </dependency>
103
104 <dependency>
105 <groupId>org.ops4j.pax.exam</groupId>
106 <artifactId>pax-exam-junit4</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-link-mvn</artifactId>
114 <version>${exam.version}</version>
115 <scope>test</scope>
116 </dependency>
117
118 <dependency>
119 <groupId>org.ops4j.pax.url</groupId>
120 <artifactId>pax-url-aether</artifactId>
121 <version>${url.version}</version>
122 <scope>test</scope>
123 </dependency>
124
125 <dependency>
126 <groupId>org.apache.felix</groupId>
127 <artifactId>org.apache.felix.framework</artifactId>
128 <version>4.2.0</version>
129 <scope>test</scope>
130 </dependency>
131
132 <dependency>
133 <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>
Clement Escoffiered4ca022013-03-13 15:27:20 +0000156 <artifactId>mockito-all</artifactId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000157 <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>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000167 <groupId>org.ow2.chameleon.testing</groupId>
168 <artifactId>tinybundles-ipojo</artifactId>
169 <version>0.3.0</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000170 </dependency>
171
172 <dependency>
173 <groupId>org.apache.felix</groupId>
174 <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
175 <version>1.9.0-SNAPSHOT</version>
176 </dependency>
177
178 <dependency>
179 <groupId>org.apache.felix</groupId>
Clement Escoffier4f6fb5f2013-03-12 13:15:33 +0000180 <artifactId>org.apache.felix.ipojo</artifactId>
181 <version>1.9.0-SNAPSHOT</version>
182 </dependency>
183
184 <dependency>
185 <groupId>org.apache.felix</groupId>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000186 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
187 <version>1.9.0-SNAPSHOT</version>
188 </dependency>
189
190 <dependency>
191 <groupId>org.apache.felix</groupId>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000192 <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 Escoffier2545db72013-05-05 13:55:09 +0000206 <version>0.6.1-SNAPSHOT</version>
Clement Escoffiera0030f52013-02-18 20:43:25 +0000207 <scope>test</scope>
208 </dependency>
209
Clement Escoffiera0030f52013-02-18 20:43:25 +0000210
211 <dependency>
212 <groupId>org.apache.felix</groupId>
213 <artifactId>org.apache.felix.ipojo.handler.eventadmin</artifactId>
214 <!--
215 We use the released version as we don't really have to do any behavioral test on the handler in the core
216 test.
217 -->
218 <version>1.8.0</version>
219 </dependency>
220
221 <dependency>
222 <groupId>org.apache.felix</groupId>
223 <artifactId>org.apache.felix.log</artifactId>
224 <version>1.0.1</version>
225 </dependency>
226
227 <dependency>
228 <groupId>org.ops4j.pax.url</groupId>
229 <artifactId>pax-url-wrap</artifactId>
230 <version>1.5.2</version>
231 </dependency>
232 </dependencies>
233
Clement Escoffier1c47f282013-02-13 16:26:18 +0000234 <profiles>
235 <profile>
236 <id>release</id>
237 <build>
238 <plugins>
239 <plugin>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-assembly-plugin</artifactId>
242 <executions>
243 <execution>
244 <id>make-assembly</id>
245 <phase>package</phase>
246 <goals>
247 <goal>single</goal>
248 </goals>
249 <configuration>
250 <descriptorRefs>
251 <descriptorRef>project</descriptorRef>
252 </descriptorRefs>
253 <!-- we don't want to attach all the assemblies, such as bz2 -->
254 <attach>false</attach>
255 </configuration>
256 </execution>
257 </executions>
258 </plugin>
259 <plugin>
260 <!-- only attach the project and bin assemblies, in tar.gz and zip flavors -->
261 <groupId>org.codehaus.mojo</groupId>
262 <artifactId>build-helper-maven-plugin</artifactId>
263 <executions>
264 <execution>
265 <id>attach-assemblies</id>
266 <phase>package</phase>
267 <goals>
268 <goal>attach-artifact</goal>
269 </goals>
270 <configuration>
271 <artifacts>
272 <artifact>
273 <file>
274 ${project.build.directory}/${project.artifactId}-${project.version}-project.tar.gz
275 </file>
276 <classifier>project</classifier>
277 <type>tar.gz</type>
278 </artifact>
279 <artifact>
280 <file>
281 ${project.build.directory}/${project.artifactId}-${project.version}-project.zip
282 </file>
283 <classifier>project</classifier>
284 <type>zip</type>
285 </artifact>
286 </artifacts>
287 </configuration>
288 </execution>
289 </executions>
290 </plugin>
291 </plugins>
292 </build>
293 </profile>
294
295 <profile>
296 <id>knopflerfish</id>
297 <activation>
298 <activeByDefault>false</activeByDefault>
299 <property>
300 <name>pax.exam.framework</name>
301 <value>knopflerfish</value>
302 </property>
303 </activation>
304 <properties>
305 <pax.exam.framework>knopflerfish</pax.exam.framework>
306 </properties>
307 <repositories>
308 <repository>
309 <id>knopflerfish-releases</id>
310 <url>http://www.knopflerfish.org/maven2</url>
311 </repository>
312 </repositories>
313 <dependencies>
314 <dependency>
315 <groupId>org.knopflerfish</groupId>
316 <artifactId>framework</artifactId>
317 <version>5.2.0</version>
318 <scope>test</scope>
319 </dependency>
320 </dependencies>
321 </profile>
322
323 <profile>
324 <id>equinox</id>
325 <activation>
326 <activeByDefault>false</activeByDefault>
327 <property>
328 <name>pax.exam.framework</name>
329 <value>equinox</value>
330 </property>
331 </activation>
332 <properties>
333 <pax.exam.framework>equinox</pax.exam.framework>
334 </properties>
335 <dependencies>
336 <dependency>
337 <groupId>org.eclipse.tycho</groupId>
338 <artifactId>org.eclipse.osgi</artifactId>
339 <version>3.8.1.v20120830-144521</version>
340 <scope>test</scope>
341 </dependency>
342 </dependencies>
343 </profile>
344
345 <profile>
346 <id>felix</id>
347 <activation>
348 <activeByDefault>false</activeByDefault>
349 <property>
350 <name>pax.exam.framework</name>
351 <value>felix</value>
352 </property>
353 </activation>
354 <properties>
355 <pax.exam.framework>felix</pax.exam.framework>
356 </properties>
357 <dependencies>
358 <dependency>
359 <groupId>org.apache.felix</groupId>
360 <artifactId>org.apache.felix.framework</artifactId>
361 <version>4.2.0</version>
362 <scope>test</scope>
363 </dependency>
364 </dependencies>
365 </profile>
366
367 <profile>
Clement Escoffier0b907fb2013-05-06 13:25:52 +0000368 <!--
369 avoid using the invoker and use a regular reactor instead.
370 it must be coupled with another profile to select the right OSGi framework implementation
371 -->
372 <id>reactor</id>
373
374 <modules>
375 <module>src/it/ipojo-core-annotations-test</module>
376 <module>src/it/ipojo-core-bad-configuration-test</module>
377 <module>src/it/ipojo-core-configuration-admin-test</module>
378 <module>src/it/ipojo-core-configuration-processor-test</module>
379 <module>src/it/ipojo-core-configuration-test</module>
380 <module>src/it/ipojo-core-external-handlers-test</module>
381 <module>src/it/ipojo-core-factory-test</module>
382 <module>src/it/ipojo-core-factory-version-test</module>
383 <module>src/it/ipojo-core-handler-test</module>
384 <module>src/it/ipojo-core-lifecycle-callback-test</module>
385 <module>src/it/ipojo-core-lifecycle-controller-test</module>
386 <module>src/it/ipojo-core-logger-test</module>
387 <module>src/it/ipojo-core-service-dependency-optional-test</module>
388 <module>src/it/ipojo-core-service-dependency-policies</module>
389 <module>src/it/ipojo-core-service-dependency-proxies</module>
390 <module>src/it/ipojo-core-service-dependency-test</module>
391 <module>src/it/ipojo-core-service-providing-test</module>
392 </modules>
393
394 </profile>
395
396 <profile>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000397 <id>test</id>
398 <activation>
399 <activeByDefault>true</activeByDefault>
400 </activation>
401 <build>
402 <plugins>
403 <plugin>
404 <groupId>org.apache.maven.plugins</groupId>
405 <artifactId>maven-invoker-plugin</artifactId>
406 <version>1.8</version>
407 <configuration>
408 <streamLogs>true</streamLogs>
409 <goals>
410 <goal>clean</goal>
411 <goal>test</goal>
412 </goals>
413 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000414 <environmentVariables>
415 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
416 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
417 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000418 </configuration>
419 <executions>
420 <execution>
421 <id>regular</id>
422 <goals>
423 <goal>run</goal>
424 </goals>
425 <configuration>
426 <profiles>
427 <profile>felix</profile>
428 </profiles>
429 <cloneProjectsTo>${project.build.directory}/regular</cloneProjectsTo>
430 </configuration>
431 </execution>
432 </executions>
433 </plugin>
434 </plugins>
435 </build>
436 </profile>
437
438 <profile>
439 <id>test-all</id>
440 <activation>
441 <activeByDefault>false</activeByDefault>
442 </activation>
443 <build>
444 <plugins>
445 <plugin>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-invoker-plugin</artifactId>
448 <version>1.8</version>
449 <configuration>
450 <streamLogs>true</streamLogs>
451 <goals>
452 <goal>clean</goal>
453 <goal>test</goal>
454 </goals>
455 <cloneClean>true</cloneClean>
Clement Escoffier2545db72013-05-05 13:55:09 +0000456 <environmentVariables>
457 <!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
458 <TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
459 </environmentVariables>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000460 </configuration>
461 <executions>
462 <execution>
463 <id>equinox-native</id>
464 <goals>
465 <goal>run</goal>
466 </goals>
467 <configuration>
468 <profiles>
469 <profile>equinox</profile>
470 </profiles>
471 <cloneProjectsTo>${project.build.directory}/equinox-native</cloneProjectsTo>
472
473 </configuration>
474 </execution>
475 <execution>
476 <id>felix-native</id>
477 <goals>
478 <goal>run</goal>
479 </goals>
480 <configuration>
481 <profiles>
482 <profile>felix</profile>
483 </profiles>
484 <cloneProjectsTo>${project.build.directory}/felix-native</cloneProjectsTo>
485 </configuration>
486 </execution>
487 <execution>
488 <id>knopflerfish-native</id>
489 <goals>
490 <goal>run</goal>
491 </goals>
492 <configuration>
493 <profiles>
494 <profile>knopflerfish</profile>
495 </profiles>
496 <cloneProjectsTo>${project.build.directory}/knopflerfish-native</cloneProjectsTo>
497 </configuration>
498 </execution>
499 </executions>
500 </plugin>
501 </plugins>
502 </build>
503 </profile>
504 </profiles>
Clement Escoffierc93b8672013-05-05 13:59:13 +0000505
506 <repositories>
507 <!-- Temporal addition of this repository until the osgi-helper are released -->
508 <!-- TODO remove this before the release -->
509 <repository>
510 <id>ow2.snapshots</id>
511 <url>http://repository.ow2.org/nexus/content/repositories/snapshots/</url>
512 </repository>
513 </repositories>
Clement Escoffier1c47f282013-02-13 16:26:18 +0000514</project>