blob: a9851793649d5228a5da62ce63a62ac6fd559cdf [file] [log] [blame]
Carsten Ziegelerb61fe0e2008-01-03 09:24:12 +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-->
Carsten Ziegeler4fec0962008-01-11 16:13:31 +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/maven-v4_0_0.xsd">
Karl Pauls589e2b32007-07-11 18:29:29 +000020 <parent>
21 <groupId>org.apache.felix</groupId>
Felix Meschbergera4ad70a2009-04-27 13:12:37 +000022 <artifactId>felix-parent</artifactId>
23 <version>1.2.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000024 <relativePath>../pom/pom.xml</relativePath>
25 </parent>
26 <modelVersion>4.0.0</modelVersion>
27 <packaging>bundle</packaging>
28 <name>Apache Felix Declarative Services</name>
29 <description>
30 Implementation of the Declarative Services specification 1.0
31 </description>
32 <artifactId>org.apache.felix.scr</artifactId>
Felix Meschbergerc9f07c32009-04-29 08:58:54 +000033 <version>1.0.9-SNAPSHOT</version>
Felix Meschberger4753fcb2009-04-29 08:46:06 +000034 <scm>
Felix Meschbergerc9f07c32009-04-29 08:58:54 +000035 <connection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scr</connection>
36 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scr</developerConnection>
37 <url>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scr</url>
Felix Meschberger4753fcb2009-04-29 08:46:06 +000038 </scm>
Karl Pauls589e2b32007-07-11 18:29:29 +000039 <dependencies>
40 <dependency>
Felix Meschbergerca797922009-10-07 08:38:18 +000041 <groupId>org.osgi</groupId>
Karl Pauls589e2b32007-07-11 18:29:29 +000042 <artifactId>org.osgi.core</artifactId>
Felix Meschbergerca797922009-10-07 08:38:18 +000043 <version>4.1.0</version>
Felix Meschbergerbbd1e9d2009-10-11 08:18:18 +000044 <scope>provided</scope>
Karl Pauls589e2b32007-07-11 18:29:29 +000045 </dependency>
46 <dependency>
Felix Meschbergerca797922009-10-07 08:38:18 +000047 <groupId>org.osgi</groupId>
Karl Pauls589e2b32007-07-11 18:29:29 +000048 <artifactId>org.osgi.compendium</artifactId>
Felix Meschbergerca797922009-10-07 08:38:18 +000049 <version>4.2.0</version>
Felix Meschbergerbbd1e9d2009-10-11 08:18:18 +000050 <scope>provided</scope>
Karl Pauls589e2b32007-07-11 18:29:29 +000051 </dependency>
52 <dependency>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +000053 <groupId>${pom.groupId}</groupId>
54 <artifactId>org.apache.felix.shell</artifactId>
55 <version>1.0.0</version>
Felix Meschbergerbbd1e9d2009-10-11 08:18:18 +000056 <scope>provided</scope>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +000057 </dependency>
58 <dependency>
Karl Pauls589e2b32007-07-11 18:29:29 +000059 <groupId>net.sf.kxml</groupId>
60 <artifactId>kxml2</artifactId>
61 <version>2.2.2</version>
Felix Meschbergerbbd1e9d2009-10-11 08:18:18 +000062 <scope>provided</scope>
Karl Pauls589e2b32007-07-11 18:29:29 +000063 </dependency>
Felix Meschberger47eb0372009-07-28 13:48:28 +000064
65 <!-- Integration Testing with Pax Exam -->
66 <dependency>
67 <groupId>junit</groupId>
68 <artifactId>junit</artifactId>
69 <version>4.6</version>
Felix Meschbergerbbd1e9d2009-10-11 08:18:18 +000070 <scope>test</scope>
Felix Meschberger47eb0372009-07-28 13:48:28 +000071 </dependency>
72 <dependency>
73 <groupId>org.ops4j.pax.exam</groupId>
74 <artifactId>pax-exam</artifactId>
75 <version>0.6.0</version>
76 <scope>test</scope>
77 </dependency>
78 <dependency>
79 <groupId>org.ops4j.pax.exam</groupId>
80 <artifactId>pax-exam-junit</artifactId>
81 <version>0.6.0</version>
82 <scope>test</scope>
83 </dependency>
84 <dependency>
85 <groupId>org.ops4j.pax.exam</groupId>
86 <artifactId>pax-exam-container-default</artifactId>
87 <version>0.6.0</version>
88 <scope>test</scope>
89 </dependency>
90 <dependency>
91 <groupId>org.ops4j.pax.swissbox</groupId>
92 <artifactId>pax-swissbox-tinybundles</artifactId>
93 <version>1.0.0</version>
94 <scope>test</scope>
95 </dependency>
Karl Pauls589e2b32007-07-11 18:29:29 +000096 </dependencies>
97 <build>
98 <plugins>
99 <plugin>
100 <groupId>org.apache.felix</groupId>
101 <artifactId>maven-bundle-plugin</artifactId>
Stuart McCulloch876ca722008-02-26 17:15:42 +0000102 <version>1.4.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +0000103 <extensions>true</extensions>
104 <configuration>
105 <instructions>
106 <Bundle-SymbolicName>
107 ${artifactId}
108 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000109 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Karl Pauls589e2b32007-07-11 18:29:29 +0000110 <Bundle-Activator>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000111 org.apache.felix.scr.impl.Activator
Karl Pauls589e2b32007-07-11 18:29:29 +0000112 </Bundle-Activator>
113 <Export-Package>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000114 org.apache.felix.scr;version=${pom.version},
Felix Meschbergerca797922009-10-07 08:38:18 +0000115 org.osgi.service.component
Karl Pauls589e2b32007-07-11 18:29:29 +0000116 </Export-Package>
117 <Private-Package>
Felix Meschberger9b4e0232009-07-09 12:34:12 +0000118 org.apache.felix.scr.impl.*,
119 org.osgi.util.tracker
Karl Pauls589e2b32007-07-11 18:29:29 +0000120 </Private-Package>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000121 <Import-Package>
Felix Meschbergerca797922009-10-07 08:38:18 +0000122 <!--
123 The Felix Shell support is optional
124 -->
Felix Meschberger9b4e0232009-07-09 12:34:12 +0000125 org.apache.felix.shell; resolution:=optional,
Felix Meschbergerca797922009-10-07 08:38:18 +0000126
127 <!--
128 Framework version 1.3 (from R4.0) is enough,
129 the Bundle.getBundleContext method is guarded
130 -->
131 org.osgi.framework;version=1.3,
132
133 <!--
134 Configuration Admin is optional and if it is
135 present, version 1.2 (from R4.0) is enough
136 -->
137 org.osgi.service.cm;version=1.2;resolution:=optional
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000138 </Import-Package>
Karl Pauls589e2b32007-07-11 18:29:29 +0000139 <DynamicImport-Package>
140 org.osgi.service.log
141 </DynamicImport-Package>
Felix Meschberger9b4e0232009-07-09 12:34:12 +0000142 <Embed-Dependency>
143 kxml2
144 </Embed-Dependency>
Karl Pauls589e2b32007-07-11 18:29:29 +0000145 </instructions>
146 </configuration>
147 </plugin>
Felix Meschberger47eb0372009-07-28 13:48:28 +0000148
149 <!--
150 configure default compilation for Java 1.3 and integration
151 test compilation for Java 5 (since integration tests use
152 Java Annotations for Pax Exam)
153 -->
154 <plugin>
155 <artifactId>maven-compiler-plugin</artifactId>
156 <executions>
157 <execution>
158 <id>test-compile-java5</id>
159 <goals>
160 <goal>testCompile</goal>
161 </goals>
162 <configuration>
163 <source>1.5</source>
164 <target>1.5</target>
165 <testIncludes>
166 <testInclude>**/integration/**</testInclude>
167 </testIncludes>
168 <testExcludes>
169 <testExclude>**/impl/**</testExclude>
170 </testExcludes>
171 </configuration>
172 </execution>
173 </executions>
174 <configuration>
175 <testExcludes>
176 <testExclude>**/integration/**</testExclude>
177 </testExcludes>
178 </configuration>
179 </plugin>
180
Felix Meschberger2e885422009-08-21 11:35:00 +0000181 <!-- Provide bundle for integration tests -->
182 <plugin>
183 <artifactId>maven-antrun-plugin</artifactId>
184 <version>1.3</version>
185 <executions>
186 <execution>
187 <id>configadmin-file-create</id>
188 <phase>pre-integration-test</phase>
189 <goals>
190 <goal>run</goal>
191 </goals>
192 <configuration>
193 <tasks>
194 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/scr.jar" />
195 </tasks>
196 </configuration>
197 </execution>
198 <execution>
199 <id>configadmin-file-remove</id>
200 <phase>post-integration-test</phase>
201 <goals>
202 <goal>run</goal>
203 </goals>
204 <configuration>
205 <tasks>
206 <delete file="${project.build.directory}/configadmin.jar" />
207 </tasks>
208 </configuration>
209 </execution>
210 </executions>
211 </plugin>
212
Felix Meschberger47eb0372009-07-28 13:48:28 +0000213 <!--
214 Exclude Integration tests in (default) unit tests and
215 conversely enable integration tests for integration testing
216 only. Helper classes are completely excluded from testing.
217 -->
218 <plugin>
219 <artifactId>maven-surefire-plugin</artifactId>
220 <executions>
221 <execution>
222 <id>surefire-it</id>
223 <phase>integration-test</phase>
224 <goals>
225 <goal>test</goal>
226 </goals>
227 <configuration>
228 <excludes>
229 <exclude>**/components/**</exclude>
230 </excludes>
231 <includes>
232 <include>**/integration/*</include>
233 </includes>
234 </configuration>
235 </execution>
236 </executions>
237 <configuration>
238 <excludes>
239 <exclude>**/integration/**</exclude>
240 <exclude>**/components/**</exclude>
241 <exclude>**/instances/**</exclude>
242 <exclude>**/instances2/**</exclude>
243 </excludes>
244 </configuration>
245 </plugin>
Karl Pauls589e2b32007-07-11 18:29:29 +0000246 </plugins>
247 </build>
Felix Meschberger47eb0372009-07-28 13:48:28 +0000248
249 <!-- repositories for Pax Exam and BND tool -->
250 <repositories>
251 <repository>
252 <id>ops4j</id>
253 <name>ops4j</name>
254 <url>http://repository.ops4j.org/maven2</url>
255 <snapshots>
256 <enabled>false</enabled>
257 </snapshots>
258 </repository>
259 <repository>
260 <id>aqute</id>
261 <name>aqute</name>
262 <url>http://www.aqute.biz/repo</url>
263 <snapshots>
264 <enabled>false</enabled>
265 </snapshots>
266 </repository>
267 </repositories>
Karl Pauls589e2b32007-07-11 18:29:29 +0000268</project>