blob: 6031681553b38802f2799fd69fb882a8084b75c6 [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 -->
Pierre De Rop313b4802013-10-16 10:51:12 +000081 <!--
Pierre De Rop5ab26d82013-10-08 10:00:38 +000082 <dependency>
83 <groupId>org.ops4j.pax.exam</groupId>
84 <artifactId>pax-exam-container-native</artifactId>
85 <version>${exam.version}</version>
86 <scope>test</scope>
87 </dependency>
Pierre De Rop313b4802013-10-16 10:51:12 +000088 -->
89 <dependency>
90 <groupId>org.ops4j.pax.exam</groupId>
91 <artifactId>pax-exam-container-forked</artifactId>
92 <version>${exam.version}</version>
93 <scope>test</scope>
94 </dependency>
95
Pierre De Rop5ab26d82013-10-08 10:00:38 +000096 <dependency>
97 <groupId>org.ops4j.pax.exam</groupId>
98 <artifactId>pax-exam-junit4</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-link-mvn</artifactId>
106 <version>${exam.version}</version>
107 <scope>test</scope>
108 </dependency>
109
110 <dependency>
111 <groupId>org.ops4j.pax.url</groupId>
112 <artifactId>pax-url-aether</artifactId>
113 <version>${url.version}</version>
114 <scope>test</scope>
115 </dependency>
116
117 <dependency>
118 <groupId>org.apache.felix</groupId>
119 <artifactId>org.apache.felix.framework</artifactId>
120 <version>4.2.1</version>
121 <scope>test</scope>
122 </dependency>
123
124 <dependency>
125 <groupId>ch.qos.logback</groupId>
126 <artifactId>logback-core</artifactId>
Pierre De Rop313b4802013-10-16 10:51:12 +0000127 <version>0.9.29</version>
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000128 <scope>test</scope>
129 </dependency>
130
131 <dependency>
132 <groupId>ch.qos.logback</groupId>
133 <artifactId>logback-classic</artifactId>
Pierre De Rop313b4802013-10-16 10:51:12 +0000134 <version>0.9.29</version>
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000135 <scope>test</scope>
136 </dependency>
137
138 <!-- Dependency Manager Annotations -->
139 <dependency>
140 <groupId>org.apache.felix</groupId>
141 <artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
142 <version>3.1.1-SNAPSHOT</version>
143 </dependency>
144 </dependencies>
145
146 <build>
147 <plugins>
148 <!-- Build the bundle which contains various components used by integration tests -->
149 <plugin>
150 <groupId>org.apache.felix</groupId>
151 <artifactId>maven-bundle-plugin</artifactId>
152 <version>2.3.7</version>
153 <extensions>true</extensions>
154 <configuration>
155 <instructions>
156 <Bundle-Name>Apache Felix Dependency Manager Annotations Tests</Bundle-Name>
Pierre De Rop0b67b3c2013-10-16 10:29:56 +0000157 <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
Pierre De Rop30ff9862013-10-15 16:57:40 +0000158 <Export-Package>org.apache.felix.dm.test.components</Export-Package>
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000159 </instructions>
160 </configuration>
161 </plugin>
162
163 <!-- java 5 required for annotations support -->
164 <plugin>
165 <artifactId>maven-compiler-plugin</artifactId>
166 <configuration>
167 <source>1.5</source>
168 <target>1.5</target>
169 </configuration>
170 </plugin>
171
Pierre De Rop30ff9862013-10-15 16:57:40 +0000172 <!-- DM annotation plugin used to parse annotations from org.apache.felix.dm.test.components artifact -->
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000173 <plugin>
174 <groupId>org.apache.felix</groupId>
175 <artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
176 <version>3.1.1-SNAPSHOT</version>
177 <executions>
178 <execution>
179 <goals>
180 <goal>scan</goal>
181 </goals>
182 <configuration>
183 <log>debug</log>
184 <!-- generated-output-dir>.</generated-output-dir> -->
185 </configuration>
186 </execution>
187 </executions>
188 </plugin>
189
190 <!-- We have no unit tests, we only have integration tests -->
191 <plugin>
192 <artifactId>maven-surefire-plugin</artifactId>
193 <executions>
194 <execution>
195 <id>surefire-it</id>
196 <phase>integration-test</phase>
197 <goals>
198 <goal>test</goal>
199 </goals>
200 <configuration>
201 <systemProperties>
202 <property>
203 <name>project.bundle.file</name>
204 <value>${bundle.file.name}</value>
205 </property>
Pierre De Rop0b67b3c2013-10-16 10:29:56 +0000206 <property>
207 <name>project.bundle.symbolicName</name>
208 <value>${pom.artifactId}</value>
209 </property>
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000210 </systemProperties>
211 <excludes>
212 <exclude>**/components/*</exclude>
Pierre De Rop14979bd2013-10-13 08:47:15 +0000213 <!-- <exclude>**/AspectRaceTest.java</exclude> -->
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000214 </excludes>
215 <includes>
Pierre De Rop968695e2013-10-10 20:26:34 +0000216 <!-- By default, all integration tests are run. For running a specific test,
217 you can specify a given test below: for example:
218 <include>**/integration/**/AspectBaseTest.java</include>
219 -->
Pierre De Ropeab8aba2013-10-14 22:40:47 +0000220 <include>**/integration/**/*.java</include>
Pierre De Rop5ab26d82013-10-08 10:00:38 +0000221 </includes>
222 </configuration>
223 </execution>
224 </executions>
225 <configuration>
226 <excludes>
227 <exclude>**/integration/**</exclude>
228 </excludes>
229 </configuration>
230 </plugin>
231 </plugins>
232 </build>
233</project>