blob: 56ae4a34b9e10453efaf5c5e1a35ff74f499cb64 [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>
25 <version>1.2.0</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 Meschberger574dd362010-09-08 07:38:07 +000030 <version>1.2.7-SNAPSHOT</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000031 <packaging>bundle</packaging>
32
33 <name>Apache Felix Configuration Admin Service</name>
34 <description>
35 Implementation of the OSGi Configuration Admin Service Specification 1.2
36 </description>
37
Carsten Ziegeler8c4700f2010-08-27 07:37:31 +000038 <scm>
Felix Meschbergerb8620b82010-09-08 07:13:46 +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>
77 </properties>
78
79
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000080 <dependencies>
81 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000082 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000083 <artifactId>org.osgi.core</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000084 <version>4.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000085 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000086 </dependency>
87 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000088 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000089 <artifactId>org.osgi.compendium</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000090 <version>4.2.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000091 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000092 </dependency>
Felix Meschberger819d0b72009-08-14 15:35:27 +000093
94 <!-- Integration Testing with Pax Exam -->
95 <dependency>
96 <groupId>junit</groupId>
97 <artifactId>junit</artifactId>
98 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +000099 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000100 </dependency>
101 <dependency>
102 <groupId>org.ops4j.pax.exam</groupId>
103 <artifactId>pax-exam</artifactId>
104 <version>0.6.0</version>
105 <scope>test</scope>
106 </dependency>
107 <dependency>
108 <groupId>org.ops4j.pax.exam</groupId>
109 <artifactId>pax-exam-junit</artifactId>
110 <version>0.6.0</version>
111 <scope>test</scope>
112 </dependency>
113 <dependency>
114 <groupId>org.ops4j.pax.exam</groupId>
115 <artifactId>pax-exam-container-default</artifactId>
116 <version>0.6.0</version>
117 <scope>test</scope>
118 </dependency>
119 <dependency>
120 <groupId>org.ops4j.pax.swissbox</groupId>
121 <artifactId>pax-swissbox-tinybundles</artifactId>
122 <version>1.0.0</version>
123 <scope>test</scope>
124 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000125 </dependencies>
126
127 <build>
128 <plugins>
129 <plugin>
130 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000131 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschbergera37988a2010-03-06 18:04:38 +0000132 <version>2.0.1</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000133 <extensions>true</extensions>
134 <configuration>
135 <instructions>
136 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +0000137 <Bundle-SymbolicName>
138 ${artifactId}
139 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000140 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000141 <Bundle-Activator>
142 org.apache.felix.cm.impl.ConfigurationManager
143 </Bundle-Activator>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000144 <Export-Package>
Felix Meschberger432e3872008-03-07 14:58:57 +0000145 org.apache.felix.cm;
146 org.apache.felix.cm.file;version=1.0,
Felix Meschberger6f13aa22009-09-17 13:11:21 +0000147 org.osgi.service.cm
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000148 </Export-Package>
149 <Private-Package>
Felix Meschbergeree867402008-06-13 08:33:54 +0000150 org.apache.felix.cm.impl,
151 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000152 </Private-Package>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000153 <Import-Package>
154 org.apache.felix.cm;
155 org.apache.felix.cm.file;version="[$(version;==;$(@)),$(version;=+;$(@)))",
156 org.osgi.service.cm;version="[$(version;==;$(@)),$(version;=+;$(@)))",
157 *
158 </Import-Package>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000159 <DynamicImport-Package>
Felix Meschberger80a9d5f2010-09-08 07:39:13 +0000160 org.osgi.service.log;version="1.3"
Felix Meschberger85b355d2007-08-31 07:17:38 +0000161 </DynamicImport-Package>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000162 </instructions>
163 </configuration>
164 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000165 <!--
166 configure default compilation for Java 1.3 and integration
167 test compilation for Java 5 (since integration tests use
168 Java Annotations for Pax Exam)
169 -->
170 <plugin>
171 <artifactId>maven-compiler-plugin</artifactId>
172 <executions>
173 <execution>
174 <id>test-compile-java5</id>
175 <goals>
176 <goal>testCompile</goal>
177 </goals>
178 <configuration>
179 <source>1.5</source>
180 <target>1.5</target>
181 <testExcludes>
182 <testExclude>**/cm/*</testExclude>
183 <testExclude>**/cm/file/*</testExclude>
184 <testExclude>**/cm/impl/**</testExclude>
185 </testExcludes>
186 <testIncludes>
187 <testInclude>**/integration/**</testInclude>
188 </testIncludes>
189 </configuration>
190 </execution>
191 </executions>
192 <configuration>
193 <testExcludes>
194 <testExclude>**/integration/**</testExclude>
195 </testExcludes>
196 </configuration>
197 </plugin>
198
199 <!--
200 Exclude Integration tests in (default) unit tests and
201 conversely enable integration tests for integration testing
202 only. Helper classes are completely excluded from testing.
203 -->
204 <plugin>
205 <artifactId>maven-surefire-plugin</artifactId>
206 <executions>
207 <execution>
208 <id>surefire-it</id>
209 <phase>integration-test</phase>
210 <goals>
211 <goal>test</goal>
212 </goals>
213 <configuration>
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000214 <systemProperties>
215 <property>
216 <name>project.bundle.file</name>
217 <value>${bundle.file.name}</value>
218 </property>
219 </systemProperties>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000220 <excludes>
221 <exclude>**/cm/*</exclude>
222 <exclude>**/cm/file/*</exclude>
223 <exclude>**/cm/impl/**</exclude>
224 </excludes>
225 <includes>
226 <include>**/integration/*</include>
227 </includes>
228 </configuration>
229 </execution>
230 </executions>
231 <configuration>
232 <excludes>
233 <exclude>**/integration/**</exclude>
234 </excludes>
235 </configuration>
236 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000237 </plugins>
238 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000239
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000240 <profiles>
241 <!--
242 copy the package such that IDEs may easily use it without
243 setting the system property
244 -->
245 <profile>
246 <id>ide</id>
247 <build>
248 <plugins>
249 <plugin>
250 <artifactId>maven-antrun-plugin</artifactId>
251 <version>1.3</version>
252 <executions>
253 <execution>
254 <id>cm-file-create</id>
255 <phase>package</phase>
256 <goals>
257 <goal>run</goal>
258 </goals>
259 <configuration>
260 <tasks>
261 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
262 </tasks>
263 </configuration>
264 </execution>
265 </executions>
266 </plugin>
267 </plugins>
268 </build>
269 </profile>
270 </profiles>
271
Felix Meschberger819d0b72009-08-14 15:35:27 +0000272 <!-- repositories for Pax Exam and BND tool -->
273 <repositories>
274 <repository>
275 <id>ops4j</id>
276 <name>ops4j</name>
277 <url>http://repository.ops4j.org/maven2</url>
278 <snapshots>
279 <enabled>false</enabled>
280 </snapshots>
281 </repository>
282 <repository>
283 <id>aqute</id>
284 <name>aqute</name>
285 <url>http://www.aqute.biz/repo</url>
286 <snapshots>
287 <enabled>false</enabled>
288 </snapshots>
289 </repository>
290 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000291</project>