blob: 3571ece8e9858d86fd531db04a3cf3a91d95f5e7 [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 Ziegeler51d21ad2011-05-10 12:23:15 +000025 <version>2</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 Meschbergerb506d792010-09-08 12:41:29 +000030 <version>1.2.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 Meschberger007c50e2011-10-20 12:39:38 +000035 Implementation of the OSGi Configuration Admin Service Specification 1.4
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000036 </description>
37
Carsten Ziegeler8c4700f2010-08-27 07:37:31 +000038 <scm>
Felix Meschbergerb506d792010-09-08 12:41:29 +000039 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/configadmin</connection>
40 <developerConnection>scm:svn:http://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>
Guillaume Nodetf3870bb2011-03-18 13:14:01 +000077
78 <api-package-version>1.0</api-package-version>
Felix Meschbergerf2641a22010-08-25 08:45:50 +000079 </properties>
80
81
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000082 <dependencies>
83 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000084 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000085 <artifactId>org.osgi.core</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000086 <version>4.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000087 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000088 </dependency>
89 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000090 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000091 <artifactId>org.osgi.compendium</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000092 <version>4.2.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000093 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000094 </dependency>
Felix Meschberger819d0b72009-08-14 15:35:27 +000095
96 <!-- Integration Testing with Pax Exam -->
97 <dependency>
98 <groupId>junit</groupId>
99 <artifactId>junit</artifactId>
100 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +0000101 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000102 </dependency>
103 <dependency>
104 <groupId>org.ops4j.pax.exam</groupId>
105 <artifactId>pax-exam</artifactId>
106 <version>0.6.0</version>
107 <scope>test</scope>
108 </dependency>
109 <dependency>
110 <groupId>org.ops4j.pax.exam</groupId>
111 <artifactId>pax-exam-junit</artifactId>
112 <version>0.6.0</version>
113 <scope>test</scope>
114 </dependency>
115 <dependency>
116 <groupId>org.ops4j.pax.exam</groupId>
117 <artifactId>pax-exam-container-default</artifactId>
118 <version>0.6.0</version>
119 <scope>test</scope>
120 </dependency>
121 <dependency>
122 <groupId>org.ops4j.pax.swissbox</groupId>
123 <artifactId>pax-swissbox-tinybundles</artifactId>
124 <version>1.0.0</version>
125 <scope>test</scope>
126 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000127 </dependencies>
128
129 <build>
130 <plugins>
131 <plugin>
132 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000133 <artifactId>maven-bundle-plugin</artifactId>
Carsten Ziegeler9bc00122011-09-09 12:26:48 +0000134 <version>2.3.5</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000135 <extensions>true</extensions>
136 <configuration>
137 <instructions>
138 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +0000139 <Bundle-SymbolicName>
Felix Meschbergercdb12bf2011-11-03 23:42:50 +0000140 ${project.artifactId}
Felix Meschberger1af21822007-09-04 13:35:05 +0000141 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000142 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergerb3c6ac92011-02-04 06:23:47 +0000143 <Bundle-DocURL>
144 http://felix.apache.org/site/apache-felix-config-admin.html
145 </Bundle-DocURL>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000146 <Bundle-Activator>
147 org.apache.felix.cm.impl.ConfigurationManager
148 </Bundle-Activator>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000149 <Export-Package>
Felix Meschberger432e3872008-03-07 14:58:57 +0000150 org.apache.felix.cm;
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000151 org.apache.felix.cm.file;version=${api-package-version};provide:=true,
Felix Meschberger007c50e2011-10-20 12:39:38 +0000152 org.osgi.service.cm;version=1.4;-split-package:=merge-first;provide:=true
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000153 </Export-Package>
154 <Private-Package>
Felix Meschbergeree867402008-06-13 08:33:54 +0000155 org.apache.felix.cm.impl,
156 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000157 </Private-Package>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000158 <Import-Package>
Felix Meschberger007c50e2011-10-20 12:39:38 +0000159 org.osgi.service.cm;version="[1.4,1.5)",
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000160 *
161 </Import-Package>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000162 <DynamicImport-Package>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000163 org.osgi.service.log;version="1.3"
Felix Meschberger85b355d2007-08-31 07:17:38 +0000164 </DynamicImport-Package>
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000165 <Export-Service>
166 org.osgi.service.cm.ConfigurationAdmin;
Felix Meschberger007c50e2011-10-20 12:39:38 +0000167 service.description="Configuration Admin Service Specification 1.4 Implementation";
Guillaume Nodetf3870bb2011-03-18 13:14:01 +0000168 service.pid="org.osgi.service.cm.ConfigurationAdmin";
169 service.vendor="Apache Software Foundation",
170 org.apache.felix.cm.PersistenceManager;
171 service.description="Platform Filesystem Persistence Manager";
172 service.pid="org.apache.felix.cm.file.FilePersistenceManager";
173 service.vendor="Apache Software Foundation"
174 </Export-Service>
175 <Import-Service>
176 org.osgi.service.log.LogService;availability:=optional;multiple:=false
177 </Import-Service>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000178 </instructions>
179 </configuration>
180 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000181 <!--
182 configure default compilation for Java 1.3 and integration
183 test compilation for Java 5 (since integration tests use
184 Java Annotations for Pax Exam)
185 -->
186 <plugin>
187 <artifactId>maven-compiler-plugin</artifactId>
188 <executions>
189 <execution>
190 <id>test-compile-java5</id>
191 <goals>
192 <goal>testCompile</goal>
193 </goals>
194 <configuration>
195 <source>1.5</source>
196 <target>1.5</target>
197 <testExcludes>
198 <testExclude>**/cm/*</testExclude>
199 <testExclude>**/cm/file/*</testExclude>
200 <testExclude>**/cm/impl/**</testExclude>
201 </testExcludes>
202 <testIncludes>
203 <testInclude>**/integration/**</testInclude>
204 </testIncludes>
205 </configuration>
206 </execution>
207 </executions>
208 <configuration>
209 <testExcludes>
210 <testExclude>**/integration/**</testExclude>
211 </testExcludes>
212 </configuration>
213 </plugin>
214
215 <!--
216 Exclude Integration tests in (default) unit tests and
217 conversely enable integration tests for integration testing
218 only. Helper classes are completely excluded from testing.
219 -->
220 <plugin>
221 <artifactId>maven-surefire-plugin</artifactId>
222 <executions>
223 <execution>
224 <id>surefire-it</id>
225 <phase>integration-test</phase>
226 <goals>
227 <goal>test</goal>
228 </goals>
229 <configuration>
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000230 <systemProperties>
231 <property>
232 <name>project.bundle.file</name>
233 <value>${bundle.file.name}</value>
234 </property>
235 </systemProperties>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000236 <excludes>
237 <exclude>**/cm/*</exclude>
238 <exclude>**/cm/file/*</exclude>
239 <exclude>**/cm/impl/**</exclude>
240 </excludes>
241 <includes>
242 <include>**/integration/*</include>
243 </includes>
244 </configuration>
245 </execution>
246 </executions>
247 <configuration>
248 <excludes>
249 <exclude>**/integration/**</exclude>
250 </excludes>
251 </configuration>
252 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000253 </plugins>
254 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000255
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000256 <profiles>
257 <!--
258 copy the package such that IDEs may easily use it without
259 setting the system property
260 -->
261 <profile>
262 <id>ide</id>
263 <build>
264 <plugins>
265 <plugin>
266 <artifactId>maven-antrun-plugin</artifactId>
267 <version>1.3</version>
268 <executions>
269 <execution>
270 <id>cm-file-create</id>
271 <phase>package</phase>
272 <goals>
273 <goal>run</goal>
274 </goals>
275 <configuration>
276 <tasks>
277 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
278 </tasks>
279 </configuration>
280 </execution>
281 </executions>
282 </plugin>
283 </plugins>
284 </build>
285 </profile>
286 </profiles>
287
Felix Meschberger819d0b72009-08-14 15:35:27 +0000288 <!-- repositories for Pax Exam and BND tool -->
289 <repositories>
290 <repository>
291 <id>ops4j</id>
292 <name>ops4j</name>
293 <url>http://repository.ops4j.org/maven2</url>
294 <snapshots>
295 <enabled>false</enabled>
296 </snapshots>
297 </repository>
298 <repository>
299 <id>aqute</id>
300 <name>aqute</name>
301 <url>http://www.aqute.biz/repo</url>
302 <snapshots>
303 <enabled>false</enabled>
304 </snapshots>
305 </repository>
306 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000307</project>