blob: 8655a75916f03b4e70bbe6c391905ca297ef3763 [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>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +000025 <version>2.1</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>
Felix Meschberger8eabf7c2012-10-19 20:36:09 +000030 <version>1.6.1-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>
Felix Meschberger8eabf7c2012-10-19 20:36:09 +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 Meschbergerf2641a22010-08-25 08:45:50 +000077
Felix Meschberger0770cad2012-06-11 12:36:52 +000078 <felix.build.source>5</felix.build.source>
79 <felix.build.target>5</felix.build.target>
80 <felix.java.signature.artifactId>java15</felix.java.signature.artifactId>
81 </properties>
Felix Meschbergerf2641a22010-08-25 08:45:50 +000082
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000083 <dependencies>
Felix Meschberger63e7ab12012-07-02 14:10:43 +000084
85 <!--
86 Depend on latest version to make use of generics. Still we
87 make sure to only require Framework API 1.5 (OSGi Core R4.2)
88 -->
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000089 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000090 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000091 <artifactId>org.osgi.core</artifactId>
Felix Meschberger63e7ab12012-07-02 14:10:43 +000092 <version>5.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000093 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000094 </dependency>
Felix Meschberger70f0abd2012-06-19 06:18:05 +000095
96 <!--
97 Configuration Admin and other API from latest enterprise
98 which provides Config Admin 1.5 API
99 -->
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000100 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +0000101 <groupId>org.osgi</groupId>
Felix Meschberger70f0abd2012-06-19 06:18:05 +0000102 <artifactId>org.osgi.enterprise</artifactId>
103 <version>5.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +0000104 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000105 </dependency>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000106
107 <!-- BND export annotations -->
108 <dependency>
109 <groupId>biz.aQute</groupId>
110 <artifactId>bndlib</artifactId>
111 <version>1.50.0</version>
112 <scope>provided</scope>
113 </dependency>
114
Felix Meschberger819d0b72009-08-14 15:35:27 +0000115 <!-- Integration Testing with Pax Exam -->
116 <dependency>
117 <groupId>junit</groupId>
118 <artifactId>junit</artifactId>
119 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +0000120 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000121 </dependency>
122 <dependency>
123 <groupId>org.ops4j.pax.exam</groupId>
124 <artifactId>pax-exam</artifactId>
125 <version>0.6.0</version>
126 <scope>test</scope>
127 </dependency>
128 <dependency>
129 <groupId>org.ops4j.pax.exam</groupId>
130 <artifactId>pax-exam-junit</artifactId>
131 <version>0.6.0</version>
132 <scope>test</scope>
133 </dependency>
134 <dependency>
135 <groupId>org.ops4j.pax.exam</groupId>
136 <artifactId>pax-exam-container-default</artifactId>
137 <version>0.6.0</version>
138 <scope>test</scope>
139 </dependency>
140 <dependency>
141 <groupId>org.ops4j.pax.swissbox</groupId>
142 <artifactId>pax-swissbox-tinybundles</artifactId>
143 <version>1.0.0</version>
144 <scope>test</scope>
145 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000146 </dependencies>
147
148 <build>
149 <plugins>
150 <plugin>
151 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000152 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschberger92545822012-06-01 22:22:44 +0000153 <version>2.3.7</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000154 <extensions>true</extensions>
155 <configuration>
156 <instructions>
157 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +0000158 <Bundle-SymbolicName>
Felix Meschbergercdb12bf2011-11-03 23:42:50 +0000159 ${project.artifactId}
Felix Meschberger1af21822007-09-04 13:35:05 +0000160 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000161 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergerb3c6ac92011-02-04 06:23:47 +0000162 <Bundle-DocURL>
163 http://felix.apache.org/site/apache-felix-config-admin.html
164 </Bundle-DocURL>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000165 <Bundle-Activator>
166 org.apache.felix.cm.impl.ConfigurationManager
167 </Bundle-Activator>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000168 <Export-Package>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000169 <!-- just list, version from package-info classes -->
Felix Meschberger432e3872008-03-07 14:58:57 +0000170 org.apache.felix.cm;
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000171 org.apache.felix.cm.file,
Felix Meschberger73266ae2012-07-03 09:40:45 +0000172 org.osgi.service.cm;provide:=true;version=1.5
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000173 </Export-Package>
Felix Meschberger0770cad2012-06-11 12:36:52 +0000174 <Import-Package>
175 org.osgi.service.cm;version="[1.5,1.6)",
Felix Meschberger63e7ab12012-07-02 14:10:43 +0000176 org.osgi.framework;version="[1.4,2)",
Felix Meschberger0770cad2012-06-11 12:36:52 +0000177 *
178 </Import-Package>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000179 <DynamicImport-Package>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000180 <!-- overwrite version from compendium bundle -->
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000181 org.osgi.service.log;version="1.3"
Felix Meschberger85b355d2007-08-31 07:17:38 +0000182 </DynamicImport-Package>
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000183 <Export-Service>
184 org.osgi.service.cm.ConfigurationAdmin;
Felix Meschberger0770cad2012-06-11 12:36:52 +0000185 service.description="Configuration Admin Service Specification 1.5 Implementation";
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000186 service.pid="org.osgi.service.cm.ConfigurationAdmin";
187 service.vendor="Apache Software Foundation",
188 org.apache.felix.cm.PersistenceManager;
189 service.description="Platform Filesystem Persistence Manager";
190 service.pid="org.apache.felix.cm.file.FilePersistenceManager";
191 service.vendor="Apache Software Foundation"
192 </Export-Service>
193 <Import-Service>
194 org.osgi.service.log.LogService;availability:=optional;multiple:=false
195 </Import-Service>
Felix Meschberger73266ae2012-07-03 09:40:45 +0000196 <Embed-Dependency>
197 org.osgi.core;inline=org/osgi/util/tracker/ServiceTracker*|org/osgi/util/tracker/AbstractTracked.class
198 </Embed-Dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000199 </instructions>
200 </configuration>
201 </plugin>
Felix Meschberger4a48e252012-01-09 08:17:55 +0000202 <plugin>
203 <groupId>org.codehaus.mojo</groupId>
204 <artifactId>animal-sniffer-maven-plugin</artifactId>
205 <version>1.7</version>
206 <configuration>
207 <signature>
208 <groupId>org.codehaus.mojo.signature</groupId>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000209 <artifactId>java15</artifactId>
Felix Meschberger4a48e252012-01-09 08:17:55 +0000210 <version>1.0</version>
211 </signature>
212 </configuration>
213 <executions>
214 <execution>
215 <phase>test</phase>
216 <goals>
217 <goal>check</goal>
218 </goals>
219 </execution>
220 </executions>
221 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000222 <plugin>
223 <artifactId>maven-compiler-plugin</artifactId>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000224 <configuration>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000225 <source>1.5</source>
226 <target>1.5</target>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000227 </configuration>
228 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000229 <!--
230 Exclude Integration tests in (default) unit tests and
231 conversely enable integration tests for integration testing
232 only. Helper classes are completely excluded from testing.
233 -->
234 <plugin>
235 <artifactId>maven-surefire-plugin</artifactId>
236 <executions>
237 <execution>
238 <id>surefire-it</id>
239 <phase>integration-test</phase>
240 <goals>
241 <goal>test</goal>
242 </goals>
243 <configuration>
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000244 <systemProperties>
245 <property>
246 <name>project.bundle.file</name>
247 <value>${bundle.file.name}</value>
248 </property>
249 </systemProperties>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000250 <excludes>
251 <exclude>**/cm/*</exclude>
252 <exclude>**/cm/file/*</exclude>
253 <exclude>**/cm/impl/**</exclude>
254 </excludes>
255 <includes>
256 <include>**/integration/*</include>
257 </includes>
258 </configuration>
259 </execution>
260 </executions>
261 <configuration>
262 <excludes>
263 <exclude>**/integration/**</exclude>
264 </excludes>
265 </configuration>
266 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000267 </plugins>
268 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000269
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000270 <profiles>
271 <!--
272 copy the package such that IDEs may easily use it without
273 setting the system property
274 -->
275 <profile>
276 <id>ide</id>
277 <build>
278 <plugins>
279 <plugin>
280 <artifactId>maven-antrun-plugin</artifactId>
281 <version>1.3</version>
282 <executions>
283 <execution>
284 <id>cm-file-create</id>
285 <phase>package</phase>
286 <goals>
287 <goal>run</goal>
288 </goals>
289 <configuration>
290 <tasks>
291 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
292 </tasks>
293 </configuration>
294 </execution>
295 </executions>
296 </plugin>
297 </plugins>
298 </build>
299 </profile>
300 </profiles>
301
Felix Meschberger819d0b72009-08-14 15:35:27 +0000302 <!-- repositories for Pax Exam and BND tool -->
303 <repositories>
304 <repository>
305 <id>ops4j</id>
306 <name>ops4j</name>
307 <url>http://repository.ops4j.org/maven2</url>
308 <snapshots>
309 <enabled>false</enabled>
310 </snapshots>
311 </repository>
312 <repository>
313 <id>aqute</id>
314 <name>aqute</name>
315 <url>http://www.aqute.biz/repo</url>
316 <snapshots>
317 <enabled>false</enabled>
318 </snapshots>
319 </repository>
320 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000321</project>