blob: 056b97ddb6e89dac1e05271c78deb2158e8dd4ae [file] [log] [blame]
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +00001<?xml version="1.0" encoding="UTF-8"?>
Carsten Ziegeler3a66ebc2007-07-11 10:46:36 +00002<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
Carsten Ziegeler4fec0962008-01-11 16:13:31 +000020<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">
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000021 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.apache.felix</groupId>
Felix Meschberger0ad13792009-08-20 10:34:17 +000024 <artifactId>felix-parent</artifactId>
Carsten Ziegelerceab8112015-07-20 17:30:13 +000025 <version>3</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000026 <relativePath>../pom/pom.xml</relativePath>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000027 </parent>
28
Felix Meschbergerfdb360f2007-04-11 18:51:16 +000029 <artifactId>org.apache.felix.configadmin</artifactId>
Carsten Ziegeler37fc1fb2015-08-07 00:46:28 +000030 <version>1.8.9-SNAPSHOT</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000031 <packaging>bundle</packaging>
32
33 <name>Apache Felix Configuration Admin Service</name>
34 <description>
Felix Meschberger0770cad2012-06-11 12:36:52 +000035 Implementation of the OSGi Configuration Admin Service Specification 1.5
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000036 </description>
37
Carsten Ziegeler8c4700f2010-08-27 07:37:31 +000038 <scm>
Carsten Ziegeler37fc1fb2015-08-07 00:46:28 +000039 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/configadmin</connection>
40 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/configadmin</developerConnection>
41 <url>http://svn.apache.org/repos/asf/felix/configadmin</url>
Carsten Ziegeler8c4700f2010-08-27 07:37:31 +000042 </scm>
43
Felix Meschbergerf2641a22010-08-25 08:45:50 +000044 <!--
45 A Note on Testing
46 =================
47
48 This project contains two kinds of tests: regular unit tests running
49 in the test phase and integration tests based on PAX Exam running
50 in the integration-test phase.
51
52 Basically the complete project is build using Java 1.3 source and target
53 compatibility (as inherited from the parent pom). The exception are the
54 unit tests in the "integration" packages. These have to be compiled with
55 Java 5 source and target compatibility because the employ annotations
56 and generics.
57
58 For running the integration tests from the console using Maven nothing
59 special has to be done as the tests run automatically. To run the tests
60 in your IDE, the project has to be built to the "package" phase with
61 the profile "ide" enabled:
62
63 $ mvn -Pide clean package
64
65 This creates the scr.jar file in the target folder, which is used by
66 the integration tests when run from the IDE. Alternatively the
67 "project.bundle.file" system property may be set to the bundle JAR
68 in the IDE launcher.
69 -->
70 <properties>
71 <bundle.build.name>
72 ${basedir}/target
73 </bundle.build.name>
74 <bundle.file.name>
75 ${bundle.build.name}/${project.build.finalName}.jar
76 </bundle.file.name>
Felix Meschberger0770cad2012-06-11 12:36:52 +000077 </properties>
Felix Meschbergerf2641a22010-08-25 08:45:50 +000078
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000079 <dependencies>
Felix Meschberger63e7ab12012-07-02 14:10:43 +000080
81 <!--
82 Depend on latest version to make use of generics. Still we
83 make sure to only require Framework API 1.5 (OSGi Core R4.2)
84 -->
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000085 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000086 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000087 <artifactId>org.osgi.core</artifactId>
Felix Meschberger63e7ab12012-07-02 14:10:43 +000088 <version>5.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000089 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000090 </dependency>
Felix Meschberger70f0abd2012-06-19 06:18:05 +000091
92 <!--
93 Configuration Admin and other API from latest enterprise
94 which provides Config Admin 1.5 API
95 -->
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000096 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000097 <groupId>org.osgi</groupId>
Felix Meschberger70f0abd2012-06-19 06:18:05 +000098 <artifactId>org.osgi.enterprise</artifactId>
99 <version>5.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +0000100 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000101 </dependency>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000102
103 <!-- BND export annotations -->
104 <dependency>
105 <groupId>biz.aQute</groupId>
106 <artifactId>bndlib</artifactId>
107 <version>1.50.0</version>
108 <scope>provided</scope>
109 </dependency>
110
Felix Meschberger819d0b72009-08-14 15:35:27 +0000111 <!-- Integration Testing with Pax Exam -->
112 <dependency>
113 <groupId>junit</groupId>
114 <artifactId>junit</artifactId>
115 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +0000116 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000117 </dependency>
118 <dependency>
119 <groupId>org.ops4j.pax.exam</groupId>
Guillaume Nodet34730932012-12-14 16:40:08 +0000120 <artifactId>pax-exam-junit4</artifactId>
121 <version>2.6.0</version>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000122 <scope>test</scope>
123 </dependency>
124 <dependency>
125 <groupId>org.ops4j.pax.exam</groupId>
Guillaume Nodet34730932012-12-14 16:40:08 +0000126 <artifactId>pax-exam-container-native</artifactId>
127 <version>2.6.0</version>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000128 <scope>test</scope>
129 </dependency>
130 <dependency>
131 <groupId>org.ops4j.pax.exam</groupId>
Guillaume Nodet34730932012-12-14 16:40:08 +0000132 <artifactId>pax-exam-link-mvn</artifactId>
133 <version>2.6.0</version>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000134 <scope>test</scope>
135 </dependency>
136 <dependency>
Guillaume Nodet34730932012-12-14 16:40:08 +0000137 <groupId>org.ops4j.pax.url</groupId>
138 <artifactId>pax-url-aether</artifactId>
139 <version>1.5.0</version>
140 <scope>test</scope>
141 </dependency>
142 <dependency>
143 <groupId>org.ops4j.pax.tinybundles</groupId>
144 <artifactId>tinybundles</artifactId>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000145 <version>1.0.0</version>
146 <scope>test</scope>
147 </dependency>
Guillaume Nodet34730932012-12-14 16:40:08 +0000148 <dependency>
149 <groupId>org.apache.geronimo.specs</groupId>
150 <artifactId>geronimo-atinject_1.0_spec</artifactId>
151 <version>1.0</version>
152 <scope>test</scope>
153 </dependency>
154 <dependency>
155 <groupId>org.slf4j</groupId>
156 <artifactId>slf4j-simple</artifactId>
157 <version>1.7.1</version>
158 <scope>test</scope>
159 </dependency>
160 <dependency>
161 <groupId>org.apache.felix</groupId>
162 <artifactId>org.apache.felix.framework</artifactId>
163 <version>4.0.3</version>
164 <scope>test</scope>
165 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000166 </dependencies>
167
168 <build>
169 <plugins>
170 <plugin>
171 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000172 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschberger92545822012-06-01 22:22:44 +0000173 <version>2.3.7</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000174 <extensions>true</extensions>
175 <configuration>
176 <instructions>
177 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +0000178 <Bundle-SymbolicName>
Felix Meschbergercdb12bf2011-11-03 23:42:50 +0000179 ${project.artifactId}
Felix Meschberger1af21822007-09-04 13:35:05 +0000180 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000181 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergerb3c6ac92011-02-04 06:23:47 +0000182 <Bundle-DocURL>
183 http://felix.apache.org/site/apache-felix-config-admin.html
184 </Bundle-DocURL>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000185 <Bundle-Activator>
186 org.apache.felix.cm.impl.ConfigurationManager
187 </Bundle-Activator>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000188 <Export-Package>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000189 <!-- just list, version from package-info classes -->
Felix Meschberger432e3872008-03-07 14:58:57 +0000190 org.apache.felix.cm;
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000191 org.apache.felix.cm.file,
Felix Meschberger73266ae2012-07-03 09:40:45 +0000192 org.osgi.service.cm;provide:=true;version=1.5
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000193 </Export-Package>
Felix Meschberger0770cad2012-06-11 12:36:52 +0000194 <Import-Package>
195 org.osgi.service.cm;version="[1.5,1.6)",
Felix Meschberger63e7ab12012-07-02 14:10:43 +0000196 org.osgi.framework;version="[1.4,2)",
Guillaume Nodeta58c8f72013-11-20 09:58:32 +0000197 org.osgi.service.log;resolution:=optional;version="1.3",
Felix Meschberger0770cad2012-06-11 12:36:52 +0000198 *
199 </Import-Package>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000200 <DynamicImport-Package>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000201 <!-- overwrite version from compendium bundle -->
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000202 org.osgi.service.log;version="1.3"
Felix Meschberger85b355d2007-08-31 07:17:38 +0000203 </DynamicImport-Package>
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000204 <Export-Service>
205 org.osgi.service.cm.ConfigurationAdmin;
Felix Meschberger0770cad2012-06-11 12:36:52 +0000206 service.description="Configuration Admin Service Specification 1.5 Implementation";
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000207 service.pid="org.osgi.service.cm.ConfigurationAdmin";
208 service.vendor="Apache Software Foundation",
209 org.apache.felix.cm.PersistenceManager;
210 service.description="Platform Filesystem Persistence Manager";
211 service.pid="org.apache.felix.cm.file.FilePersistenceManager";
212 service.vendor="Apache Software Foundation"
213 </Export-Service>
214 <Import-Service>
215 org.osgi.service.log.LogService;availability:=optional;multiple:=false
216 </Import-Service>
Felix Meschberger73266ae2012-07-03 09:40:45 +0000217 <Embed-Dependency>
218 org.osgi.core;inline=org/osgi/util/tracker/ServiceTracker*|org/osgi/util/tracker/AbstractTracked.class
219 </Embed-Dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000220 </instructions>
221 </configuration>
222 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000223 <!--
224 Exclude Integration tests in (default) unit tests and
225 conversely enable integration tests for integration testing
226 only. Helper classes are completely excluded from testing.
227 -->
228 <plugin>
229 <artifactId>maven-surefire-plugin</artifactId>
230 <executions>
231 <execution>
232 <id>surefire-it</id>
233 <phase>integration-test</phase>
234 <goals>
235 <goal>test</goal>
236 </goals>
237 <configuration>
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000238 <systemProperties>
239 <property>
240 <name>project.bundle.file</name>
241 <value>${bundle.file.name}</value>
242 </property>
243 </systemProperties>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000244 <excludes>
245 <exclude>**/cm/*</exclude>
246 <exclude>**/cm/file/*</exclude>
247 <exclude>**/cm/impl/**</exclude>
248 </excludes>
249 <includes>
250 <include>**/integration/*</include>
251 </includes>
252 </configuration>
253 </execution>
254 </executions>
255 <configuration>
256 <excludes>
257 <exclude>**/integration/**</exclude>
258 </excludes>
259 </configuration>
260 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000261 </plugins>
262 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000263
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000264 <profiles>
265 <!--
266 copy the package such that IDEs may easily use it without
267 setting the system property
268 -->
269 <profile>
270 <id>ide</id>
271 <build>
272 <plugins>
273 <plugin>
274 <artifactId>maven-antrun-plugin</artifactId>
275 <version>1.3</version>
276 <executions>
277 <execution>
278 <id>cm-file-create</id>
279 <phase>package</phase>
280 <goals>
281 <goal>run</goal>
282 </goals>
283 <configuration>
284 <tasks>
285 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
286 </tasks>
287 </configuration>
288 </execution>
289 </executions>
290 </plugin>
291 </plugins>
292 </build>
293 </profile>
294 </profiles>
295
Felix Meschberger819d0b72009-08-14 15:35:27 +0000296 <!-- repositories for Pax Exam and BND tool -->
297 <repositories>
298 <repository>
299 <id>ops4j</id>
300 <name>ops4j</name>
301 <url>http://repository.ops4j.org/maven2</url>
302 <snapshots>
303 <enabled>false</enabled>
304 </snapshots>
305 </repository>
306 <repository>
307 <id>aqute</id>
308 <name>aqute</name>
309 <url>http://www.aqute.biz/repo</url>
310 <snapshots>
311 <enabled>false</enabled>
312 </snapshots>
313 </repository>
314 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000315</project>