blob: 3c45b19528c0c3c209bebf12b765babb2027162a [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 Meschbergercba2b2a2012-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 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 Meschbergercba2b2a2012-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 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>
84 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000085 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000086 <artifactId>org.osgi.core</artifactId>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +000087 <version>4.1.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000088 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000089 </dependency>
90 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000091 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000092 <artifactId>org.osgi.compendium</artifactId>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +000093 <version>4.3.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000094 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000095 </dependency>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +000096
97 <!-- BND export annotations -->
98 <dependency>
99 <groupId>biz.aQute</groupId>
100 <artifactId>bndlib</artifactId>
101 <version>1.50.0</version>
102 <scope>provided</scope>
103 </dependency>
104
Felix Meschberger819d0b72009-08-14 15:35:27 +0000105 <!-- Integration Testing with Pax Exam -->
106 <dependency>
107 <groupId>junit</groupId>
108 <artifactId>junit</artifactId>
109 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +0000110 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000111 </dependency>
112 <dependency>
113 <groupId>org.ops4j.pax.exam</groupId>
114 <artifactId>pax-exam</artifactId>
115 <version>0.6.0</version>
116 <scope>test</scope>
117 </dependency>
118 <dependency>
119 <groupId>org.ops4j.pax.exam</groupId>
120 <artifactId>pax-exam-junit</artifactId>
121 <version>0.6.0</version>
122 <scope>test</scope>
123 </dependency>
124 <dependency>
125 <groupId>org.ops4j.pax.exam</groupId>
126 <artifactId>pax-exam-container-default</artifactId>
127 <version>0.6.0</version>
128 <scope>test</scope>
129 </dependency>
130 <dependency>
131 <groupId>org.ops4j.pax.swissbox</groupId>
132 <artifactId>pax-swissbox-tinybundles</artifactId>
133 <version>1.0.0</version>
134 <scope>test</scope>
135 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000136 </dependencies>
137
138 <build>
139 <plugins>
140 <plugin>
141 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000142 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschberger92545822012-06-01 22:22:44 +0000143 <version>2.3.7</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000144 <extensions>true</extensions>
145 <configuration>
146 <instructions>
147 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +0000148 <Bundle-SymbolicName>
Felix Meschbergercdb12bf2011-11-03 23:42:50 +0000149 ${project.artifactId}
Felix Meschberger1af21822007-09-04 13:35:05 +0000150 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000151 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergerb3c6ac92011-02-04 06:23:47 +0000152 <Bundle-DocURL>
153 http://felix.apache.org/site/apache-felix-config-admin.html
154 </Bundle-DocURL>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000155 <Bundle-Activator>
156 org.apache.felix.cm.impl.ConfigurationManager
157 </Bundle-Activator>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000158 <Export-Package>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000159 <!-- just list, version from package-info classes -->
Felix Meschberger432e3872008-03-07 14:58:57 +0000160 org.apache.felix.cm;
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000161 org.apache.felix.cm.file,
Felix Meschberger0770cad2012-06-11 12:36:52 +0000162 org.osgi.service.cm;provide:=true;version=1.5;-split-package:=merge-first
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000163 </Export-Package>
164 <Private-Package>
Felix Meschbergeree867402008-06-13 08:33:54 +0000165 org.apache.felix.cm.impl,
166 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000167 </Private-Package>
Felix Meschberger0770cad2012-06-11 12:36:52 +0000168 <Import-Package>
169 org.osgi.service.cm;version="[1.5,1.6)",
170 *
171 </Import-Package>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000172 <DynamicImport-Package>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000173 <!-- overwrite version from compendium bundle -->
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000174 org.osgi.service.log;version="1.3"
Felix Meschberger85b355d2007-08-31 07:17:38 +0000175 </DynamicImport-Package>
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000176 <Export-Service>
177 org.osgi.service.cm.ConfigurationAdmin;
Felix Meschberger0770cad2012-06-11 12:36:52 +0000178 service.description="Configuration Admin Service Specification 1.5 Implementation";
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000179 service.pid="org.osgi.service.cm.ConfigurationAdmin";
180 service.vendor="Apache Software Foundation",
181 org.apache.felix.cm.PersistenceManager;
182 service.description="Platform Filesystem Persistence Manager";
183 service.pid="org.apache.felix.cm.file.FilePersistenceManager";
184 service.vendor="Apache Software Foundation"
185 </Export-Service>
186 <Import-Service>
187 org.osgi.service.log.LogService;availability:=optional;multiple:=false
188 </Import-Service>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000189 </instructions>
190 </configuration>
191 </plugin>
Felix Meschberger4a48e252012-01-09 08:17:55 +0000192 <plugin>
193 <groupId>org.codehaus.mojo</groupId>
194 <artifactId>animal-sniffer-maven-plugin</artifactId>
195 <version>1.7</version>
196 <configuration>
197 <signature>
198 <groupId>org.codehaus.mojo.signature</groupId>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000199 <artifactId>java15</artifactId>
Felix Meschberger4a48e252012-01-09 08:17:55 +0000200 <version>1.0</version>
201 </signature>
202 </configuration>
203 <executions>
204 <execution>
205 <phase>test</phase>
206 <goals>
207 <goal>check</goal>
208 </goals>
209 </execution>
210 </executions>
211 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000212 <plugin>
213 <artifactId>maven-compiler-plugin</artifactId>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000214 <configuration>
Felix Meschbergerabb0bc22012-05-30 11:07:49 +0000215 <source>1.5</source>
216 <target>1.5</target>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000217 </configuration>
218 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000219 <!--
220 Exclude Integration tests in (default) unit tests and
221 conversely enable integration tests for integration testing
222 only. Helper classes are completely excluded from testing.
223 -->
224 <plugin>
225 <artifactId>maven-surefire-plugin</artifactId>
226 <executions>
227 <execution>
228 <id>surefire-it</id>
229 <phase>integration-test</phase>
230 <goals>
231 <goal>test</goal>
232 </goals>
233 <configuration>
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000234 <systemProperties>
235 <property>
236 <name>project.bundle.file</name>
237 <value>${bundle.file.name}</value>
238 </property>
239 </systemProperties>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000240 <excludes>
241 <exclude>**/cm/*</exclude>
242 <exclude>**/cm/file/*</exclude>
243 <exclude>**/cm/impl/**</exclude>
244 </excludes>
245 <includes>
246 <include>**/integration/*</include>
247 </includes>
248 </configuration>
249 </execution>
250 </executions>
251 <configuration>
252 <excludes>
253 <exclude>**/integration/**</exclude>
254 </excludes>
255 </configuration>
256 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000257 </plugins>
258 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000259
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000260 <profiles>
261 <!--
262 copy the package such that IDEs may easily use it without
263 setting the system property
264 -->
265 <profile>
266 <id>ide</id>
267 <build>
268 <plugins>
269 <plugin>
270 <artifactId>maven-antrun-plugin</artifactId>
271 <version>1.3</version>
272 <executions>
273 <execution>
274 <id>cm-file-create</id>
275 <phase>package</phase>
276 <goals>
277 <goal>run</goal>
278 </goals>
279 <configuration>
280 <tasks>
281 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
282 </tasks>
283 </configuration>
284 </execution>
285 </executions>
286 </plugin>
287 </plugins>
288 </build>
289 </profile>
290 </profiles>
291
Felix Meschberger819d0b72009-08-14 15:35:27 +0000292 <!-- repositories for Pax Exam and BND tool -->
293 <repositories>
294 <repository>
295 <id>ops4j</id>
296 <name>ops4j</name>
297 <url>http://repository.ops4j.org/maven2</url>
298 <snapshots>
299 <enabled>false</enabled>
300 </snapshots>
301 </repository>
302 <repository>
303 <id>aqute</id>
304 <name>aqute</name>
305 <url>http://www.aqute.biz/repo</url>
306 <snapshots>
307 <enabled>false</enabled>
308 </snapshots>
309 </repository>
310 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000311</project>