blob: b6b0bf3b43a7b2b1c76cb1f7faf2e26631d5a2fa [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 Meschbergerfb05f002009-08-20 10:34:17 +000024 <artifactId>felix-parent</artifactId>
Felix Meschberger1db7be82012-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 Meschberger1d265592012-05-30 12:19:45 +000030 <version>1.4.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 Meschbergerc6d6fc22012-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 Ziegeler69ccae32010-08-27 07:37:31 +000038 <scm>
Felix Meschberger1d265592012-05-30 12:19:45 +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 Ziegeler69ccae32010-08-27 07:37:31 +000042 </scm>
43
Felix Meschberger3aad57c2010-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 Meschberger3aad57c2010-08-25 08:45:50 +000077
Felix Meschbergerc6d6fc22012-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 Meschberger3aad57c2010-08-25 08:45:50 +000082
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000083 <dependencies>
84 <dependency>
Felix Meschberger806d25b2009-09-17 13:11:21 +000085 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000086 <artifactId>org.osgi.core</artifactId>
Felix Meschberger1db7be82012-05-30 11:07:49 +000087 <version>4.1.0</version>
Felix Meschberger00d0cdf2010-03-06 18:04:38 +000088 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000089 </dependency>
Felix Meschberger1cc8aad2012-06-19 06:18:05 +000090
91 <!--
92 Configuration Admin and other API from latest enterprise
93 which provides Config Admin 1.5 API
94 -->
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000095 <dependency>
Felix Meschberger806d25b2009-09-17 13:11:21 +000096 <groupId>org.osgi</groupId>
Felix Meschberger1cc8aad2012-06-19 06:18:05 +000097 <artifactId>org.osgi.enterprise</artifactId>
98 <version>5.0.0</version>
Felix Meschberger00d0cdf2010-03-06 18:04:38 +000099 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000100 </dependency>
Felix Meschberger1db7be82012-05-30 11:07:49 +0000101
102 <!-- BND export annotations -->
103 <dependency>
104 <groupId>biz.aQute</groupId>
105 <artifactId>bndlib</artifactId>
106 <version>1.50.0</version>
107 <scope>provided</scope>
108 </dependency>
109
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000110 <!-- Integration Testing with Pax Exam -->
111 <dependency>
112 <groupId>junit</groupId>
113 <artifactId>junit</artifactId>
114 <version>4.6</version>
Felix Meschberger8ca8aea2010-03-06 17:56:13 +0000115 <scope>test</scope>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000116 </dependency>
117 <dependency>
118 <groupId>org.ops4j.pax.exam</groupId>
119 <artifactId>pax-exam</artifactId>
120 <version>0.6.0</version>
121 <scope>test</scope>
122 </dependency>
123 <dependency>
124 <groupId>org.ops4j.pax.exam</groupId>
125 <artifactId>pax-exam-junit</artifactId>
126 <version>0.6.0</version>
127 <scope>test</scope>
128 </dependency>
129 <dependency>
130 <groupId>org.ops4j.pax.exam</groupId>
131 <artifactId>pax-exam-container-default</artifactId>
132 <version>0.6.0</version>
133 <scope>test</scope>
134 </dependency>
135 <dependency>
136 <groupId>org.ops4j.pax.swissbox</groupId>
137 <artifactId>pax-swissbox-tinybundles</artifactId>
138 <version>1.0.0</version>
139 <scope>test</scope>
140 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000141 </dependencies>
142
143 <build>
144 <plugins>
145 <plugin>
146 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000147 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschberger9e05dfd2012-06-01 22:22:44 +0000148 <version>2.3.7</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000149 <extensions>true</extensions>
150 <configuration>
151 <instructions>
152 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +0000153 <Bundle-SymbolicName>
Felix Meschberger70141452011-11-03 23:42:50 +0000154 ${project.artifactId}
Felix Meschberger1af21822007-09-04 13:35:05 +0000155 </Bundle-SymbolicName>
Carsten Ziegeler90f0b9f2008-04-17 06:33:59 +0000156 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschberger8309e522011-02-04 06:23:47 +0000157 <Bundle-DocURL>
158 http://felix.apache.org/site/apache-felix-config-admin.html
159 </Bundle-DocURL>
Felix Meschbergerd9305cb2010-09-08 07:39:13 +0000160 <Bundle-Activator>
161 org.apache.felix.cm.impl.ConfigurationManager
162 </Bundle-Activator>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000163 <Export-Package>
Felix Meschberger1db7be82012-05-30 11:07:49 +0000164 <!-- just list, version from package-info classes -->
Felix Meschberger432e3872008-03-07 14:58:57 +0000165 org.apache.felix.cm;
Felix Meschberger1db7be82012-05-30 11:07:49 +0000166 org.apache.felix.cm.file,
Felix Meschbergerc6d6fc22012-06-11 12:36:52 +0000167 org.osgi.service.cm;provide:=true;version=1.5;-split-package:=merge-first
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000168 </Export-Package>
169 <Private-Package>
Felix Meschberger48f6e7a2008-06-13 08:33:54 +0000170 org.apache.felix.cm.impl,
171 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000172 </Private-Package>
Felix Meschbergerc6d6fc22012-06-11 12:36:52 +0000173 <Import-Package>
174 org.osgi.service.cm;version="[1.5,1.6)",
175 *
176 </Import-Package>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000177 <DynamicImport-Package>
Felix Meschberger1db7be82012-05-30 11:07:49 +0000178 <!-- overwrite version from compendium bundle -->
Felix Meschbergerd9305cb2010-09-08 07:39:13 +0000179 org.osgi.service.log;version="1.3"
Felix Meschberger85b355d2007-08-31 07:17:38 +0000180 </DynamicImport-Package>
Guillaume Nodetf4cc54a2011-03-18 13:14:01 +0000181 <Export-Service>
182 org.osgi.service.cm.ConfigurationAdmin;
Felix Meschbergerc6d6fc22012-06-11 12:36:52 +0000183 service.description="Configuration Admin Service Specification 1.5 Implementation";
Guillaume Nodetf4cc54a2011-03-18 13:14:01 +0000184 service.pid="org.osgi.service.cm.ConfigurationAdmin";
185 service.vendor="Apache Software Foundation",
186 org.apache.felix.cm.PersistenceManager;
187 service.description="Platform Filesystem Persistence Manager";
188 service.pid="org.apache.felix.cm.file.FilePersistenceManager";
189 service.vendor="Apache Software Foundation"
190 </Export-Service>
191 <Import-Service>
192 org.osgi.service.log.LogService;availability:=optional;multiple:=false
193 </Import-Service>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000194 </instructions>
195 </configuration>
196 </plugin>
Felix Meschberger458b1a92012-01-09 08:17:55 +0000197 <plugin>
198 <groupId>org.codehaus.mojo</groupId>
199 <artifactId>animal-sniffer-maven-plugin</artifactId>
200 <version>1.7</version>
201 <configuration>
202 <signature>
203 <groupId>org.codehaus.mojo.signature</groupId>
Felix Meschberger1db7be82012-05-30 11:07:49 +0000204 <artifactId>java15</artifactId>
Felix Meschberger458b1a92012-01-09 08:17:55 +0000205 <version>1.0</version>
206 </signature>
207 </configuration>
208 <executions>
209 <execution>
210 <phase>test</phase>
211 <goals>
212 <goal>check</goal>
213 </goals>
214 </execution>
215 </executions>
216 </plugin>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000217 <plugin>
218 <artifactId>maven-compiler-plugin</artifactId>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000219 <configuration>
Felix Meschberger1db7be82012-05-30 11:07:49 +0000220 <source>1.5</source>
221 <target>1.5</target>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000222 </configuration>
223 </plugin>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000224 <!--
225 Exclude Integration tests in (default) unit tests and
226 conversely enable integration tests for integration testing
227 only. Helper classes are completely excluded from testing.
228 -->
229 <plugin>
230 <artifactId>maven-surefire-plugin</artifactId>
231 <executions>
232 <execution>
233 <id>surefire-it</id>
234 <phase>integration-test</phase>
235 <goals>
236 <goal>test</goal>
237 </goals>
238 <configuration>
Felix Meschberger3aad57c2010-08-25 08:45:50 +0000239 <systemProperties>
240 <property>
241 <name>project.bundle.file</name>
242 <value>${bundle.file.name}</value>
243 </property>
244 </systemProperties>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000245 <excludes>
246 <exclude>**/cm/*</exclude>
247 <exclude>**/cm/file/*</exclude>
248 <exclude>**/cm/impl/**</exclude>
249 </excludes>
250 <includes>
251 <include>**/integration/*</include>
252 </includes>
253 </configuration>
254 </execution>
255 </executions>
256 <configuration>
257 <excludes>
258 <exclude>**/integration/**</exclude>
259 </excludes>
260 </configuration>
261 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000262 </plugins>
263 </build>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000264
Felix Meschberger3aad57c2010-08-25 08:45:50 +0000265 <profiles>
266 <!--
267 copy the package such that IDEs may easily use it without
268 setting the system property
269 -->
270 <profile>
271 <id>ide</id>
272 <build>
273 <plugins>
274 <plugin>
275 <artifactId>maven-antrun-plugin</artifactId>
276 <version>1.3</version>
277 <executions>
278 <execution>
279 <id>cm-file-create</id>
280 <phase>package</phase>
281 <goals>
282 <goal>run</goal>
283 </goals>
284 <configuration>
285 <tasks>
286 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
287 </tasks>
288 </configuration>
289 </execution>
290 </executions>
291 </plugin>
292 </plugins>
293 </build>
294 </profile>
295 </profiles>
296
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000297 <!-- repositories for Pax Exam and BND tool -->
298 <repositories>
299 <repository>
300 <id>ops4j</id>
301 <name>ops4j</name>
302 <url>http://repository.ops4j.org/maven2</url>
303 <snapshots>
304 <enabled>false</enabled>
305 </snapshots>
306 </repository>
307 <repository>
308 <id>aqute</id>
309 <name>aqute</name>
310 <url>http://www.aqute.biz/repo</url>
311 <snapshots>
312 <enabled>false</enabled>
313 </snapshots>
314 </repository>
315 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000316</project>