blob: 6ded4107c7a8a6686c711cbdd499e44b8dca19f1 [file] [log] [blame]
Pierre De Rop5ab26d82013-10-08 10:00:38 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to you under the Apache License, Version
7 2.0 (the "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 Unless required by
11 applicable law or agreed to in writing, software distributed under
12 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
13 OR CONDITIONS OF ANY KIND, either express or implied. See the
14 License for the specific language governing permissions and
15 limitations under the License.
16 -->
17<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19 <modelVersion>4.0.0</modelVersion>
20 <parent>
21 <groupId>org.apache.felix</groupId>
22 <artifactId>felix-parent</artifactId>
23 <version>2.1</version>
24 <relativePath>../../pom/pom.xml</relativePath>
25 </parent>
26
Pierre De Rop30ff9862013-10-15 16:57:40 +000027 <artifactId>org.apache.felix.dependencymanager.test</artifactId>
28 <version>3.0.1-SNAPSHOT</version>
Pierre De Rop5ab26d82013-10-08 10:00:38 +000029 <packaging>bundle</packaging>
30
Pierre De Rop30ff9862013-10-15 16:57:40 +000031 <name>Apache Felix Dependency Manager Integration Tests</name>
Pierre De Rop5ab26d82013-10-08 10:00:38 +000032
33 <properties>
34 <bundle.build.name>
35 ${basedir}/target
36 </bundle.build.name>
37 <bundle.file.name>
38 ${bundle.build.name}/${project.build.finalName}.jar
39 </bundle.file.name>
40
41 <felix.build.source>5</felix.build.source>
42 <felix.build.target>5</felix.build.target>
43 <felix.java.signature.artifactId>java15</felix.java.signature.artifactId>
44 <exam.version>3.0.0</exam.version>
45 <url.version>1.5.2</url.version>
46 </properties>
47
48 <dependencies>
49 <dependency>
50 <groupId>org.osgi</groupId>
51 <artifactId>org.osgi.core</artifactId>
52 <version>5.0.0</version>
53 <scope>provided</scope>
54 </dependency>
55 <dependency>
56 <groupId>org.osgi</groupId>
57 <artifactId>org.osgi.compendium</artifactId>
58 <version>5.0.0</version>
59 <scope>provided</scope>
60 </dependency>
61 <dependency>
62 <groupId>org.apache.felix</groupId>
63 <artifactId>org.apache.felix.dependencymanager</artifactId>
64 <version>3.1.1-SNAPSHOT</version>
65 <scope>provided</scope>
66 </dependency>
67 <dependency>
Pierre De Rop14979bd2013-10-13 08:47:15 +000068 <groupId>org.apache.felix</groupId>
69 <artifactId>org.apache.felix.shell</artifactId>
70 <version>1.4.2</version>
71 <scope>provided</scope>
72 </dependency>
73 <dependency>
Pierre De Rop5ab26d82013-10-08 10:00:38 +000074 <groupId>junit</groupId>
75 <artifactId>junit</artifactId>
76 <version>4.6</version>
77 <scope>provided</scope>
78 </dependency>
79
80 <!-- Integration Testing with Pax Exam -->
81 <dependency>
82 <groupId>org.ops4j.pax.exam</groupId>
83 <artifactId>pax-exam-container-native</artifactId>
84 <version>${exam.version}</version>
85 <scope>test</scope>
86 </dependency>
87
88 <dependency>
89 <groupId>org.ops4j.pax.exam</groupId>
90 <artifactId>pax-exam-junit4</artifactId>
91 <version>${exam.version}</version>
92 <scope>test</scope>
93 </dependency>
94
95 <dependency>
96 <groupId>org.ops4j.pax.exam</groupId>
97 <artifactId>pax-exam-link-mvn</artifactId>
98 <version>${exam.version}</version>
99 <scope>test</scope>
100 </dependency>
101
102 <dependency>
103 <groupId>org.ops4j.pax.url</groupId>
104 <artifactId>pax-url-aether</artifactId>
105 <version>${url.version}</version>
106 <scope>test</scope>
107 </dependency>
108
109 <dependency>
110 <groupId>org.apache.felix</groupId>
111 <artifactId>org.apache.felix.framework</artifactId>
112 <version>4.2.1</version>
113 <scope>test</scope>
114 </dependency>
115
116 <dependency>
117 <groupId>ch.qos.logback</groupId>
118 <artifactId>logback-core</artifactId>
119 <version>0.9.20</version>
120 <scope>test</scope>
121 </dependency>
122
123 <dependency>
124 <groupId>ch.qos.logback</groupId>
125 <artifactId>logback-classic</artifactId>
126 <version>0.9.20</version>
127 <scope>test</scope>
128 </dependency>
129
130 <!-- Dependency Manager Annotations -->
131 <dependency>
132 <groupId>org.apache.felix</groupId>
133 <artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
134 <version>3.1.1-SNAPSHOT</version>
135 </dependency>
136 </dependencies>
137
138 <build>
139 <plugins>
140 <!-- Build the bundle which contains various components used by integration tests -->
141 <plugin>
142 <groupId>org.apache.felix</groupId>
143 <artifactId>maven-bundle-plugin</artifactId>
144 <version>2.3.7</version>
145 <extensions>true</extensions>
146 <configuration>
147 <instructions>
148 <Bundle-Name>Apache Felix Dependency Manager Annotations Tests</Bundle-Name>
Pierre De Rop30ff9862013-10-15 16:57:40 +0000149 <Bundle-SymbolicName>org.apache.felix.dependencymanager.test.components</Bundle-SymbolicName>
150 <Export-Package>org.apache.felix.dm.test.components</Export-Package>
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000151 </instructions>
152 </configuration>
153 </plugin>
154
155 <!-- java 5 required for annotations support -->
156 <plugin>
157 <artifactId>maven-compiler-plugin</artifactId>
158 <configuration>
159 <source>1.5</source>
160 <target>1.5</target>
161 </configuration>
162 </plugin>
163
Pierre De Rop30ff9862013-10-15 16:57:40 +0000164 <!-- DM annotation plugin used to parse annotations from org.apache.felix.dm.test.components artifact -->
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000165 <plugin>
166 <groupId>org.apache.felix</groupId>
167 <artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
168 <version>3.1.1-SNAPSHOT</version>
169 <executions>
170 <execution>
171 <goals>
172 <goal>scan</goal>
173 </goals>
174 <configuration>
175 <log>debug</log>
176 <!-- generated-output-dir>.</generated-output-dir> -->
177 </configuration>
178 </execution>
179 </executions>
180 </plugin>
181
182 <!-- We have no unit tests, we only have integration tests -->
183 <plugin>
184 <artifactId>maven-surefire-plugin</artifactId>
185 <executions>
186 <execution>
187 <id>surefire-it</id>
188 <phase>integration-test</phase>
189 <goals>
190 <goal>test</goal>
191 </goals>
192 <configuration>
193 <systemProperties>
194 <property>
195 <name>project.bundle.file</name>
196 <value>${bundle.file.name}</value>
197 </property>
198 </systemProperties>
199 <excludes>
200 <exclude>**/components/*</exclude>
Pierre De Rop14979bd2013-10-13 08:47:15 +0000201 <!-- <exclude>**/AspectRaceTest.java</exclude> -->
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000202 </excludes>
203 <includes>
Pierre De Rop968695e2013-10-10 20:26:34 +0000204 <!-- By default, all integration tests are run. For running a specific test,
205 you can specify a given test below: for example:
206 <include>**/integration/**/AspectBaseTest.java</include>
207 -->
Pierre De Ropeab8aba2013-10-14 22:40:47 +0000208 <include>**/integration/**/*.java</include>
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000209 </includes>
210 </configuration>
211 </execution>
212 </executions>
213 <configuration>
214 <excludes>
215 <exclude>**/integration/**</exclude>
216 </excludes>
217 </configuration>
218 </plugin>
219 </plugins>
220 </build>
221</project>