blob: c08f355515489e966b961b0eacda819dbbdee29b [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 Meschbergeraffab192009-08-31 19:37:44 +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
Felix Meschbergerf2641a22010-08-25 08:45:50 +000038 <!--
39 A Note on Testing
40 =================
41
42 This project contains two kinds of tests: regular unit tests running
43 in the test phase and integration tests based on PAX Exam running
44 in the integration-test phase.
45
46 Basically the complete project is build using Java 1.3 source and target
47 compatibility (as inherited from the parent pom). The exception are the
48 unit tests in the "integration" packages. These have to be compiled with
49 Java 5 source and target compatibility because the employ annotations
50 and generics.
51
52 For running the integration tests from the console using Maven nothing
53 special has to be done as the tests run automatically. To run the tests
54 in your IDE, the project has to be built to the "package" phase with
55 the profile "ide" enabled:
56
57 $ mvn -Pide clean package
58
59 This creates the scr.jar file in the target folder, which is used by
60 the integration tests when run from the IDE. Alternatively the
61 "project.bundle.file" system property may be set to the bundle JAR
62 in the IDE launcher.
63 -->
64 <properties>
65 <bundle.build.name>
66 ${basedir}/target
67 </bundle.build.name>
68 <bundle.file.name>
69 ${bundle.build.name}/${project.build.finalName}.jar
70 </bundle.file.name>
71 </properties>
72
73
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000074 <dependencies>
75 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000076 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000077 <artifactId>org.osgi.core</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000078 <version>4.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000079 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000080 </dependency>
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.compendium</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000084 <version>4.2.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000085 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000086 </dependency>
Felix Meschberger819d0b72009-08-14 15:35:27 +000087
88 <!-- Integration Testing with Pax Exam -->
89 <dependency>
90 <groupId>junit</groupId>
91 <artifactId>junit</artifactId>
92 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +000093 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +000094 </dependency>
95 <dependency>
96 <groupId>org.ops4j.pax.exam</groupId>
97 <artifactId>pax-exam</artifactId>
98 <version>0.6.0</version>
99 <scope>test</scope>
100 </dependency>
101 <dependency>
102 <groupId>org.ops4j.pax.exam</groupId>
103 <artifactId>pax-exam-junit</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-container-default</artifactId>
110 <version>0.6.0</version>
111 <scope>test</scope>
112 </dependency>
113 <dependency>
114 <groupId>org.ops4j.pax.swissbox</groupId>
115 <artifactId>pax-swissbox-tinybundles</artifactId>
116 <version>1.0.0</version>
117 <scope>test</scope>
118 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000119 </dependencies>
120
121 <build>
122 <plugins>
123 <plugin>
124 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000125 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschbergera37988a2010-03-06 18:04:38 +0000126 <version>2.0.1</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000127 <extensions>true</extensions>
128 <configuration>
129 <instructions>
130 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +0000131 <Bundle-SymbolicName>
132 ${artifactId}
133 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000134 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000135 <Export-Package>
Felix Meschberger432e3872008-03-07 14:58:57 +0000136 org.apache.felix.cm;
137 org.apache.felix.cm.file;version=1.0,
Felix Meschberger6f13aa22009-09-17 13:11:21 +0000138 org.osgi.service.cm
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000139 </Export-Package>
140 <Private-Package>
Felix Meschbergeree867402008-06-13 08:33:54 +0000141 org.apache.felix.cm.impl,
142 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000143 </Private-Package>
144 <Bundle-Activator>
145 org.apache.felix.cm.impl.ConfigurationManager
146 </Bundle-Activator>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000147 <DynamicImport-Package>
148 org.osgi.service.log
149 </DynamicImport-Package>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000150 </instructions>
151 </configuration>
152 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000153 <!--
154 configure default compilation for Java 1.3 and integration
155 test compilation for Java 5 (since integration tests use
156 Java Annotations for Pax Exam)
157 -->
158 <plugin>
159 <artifactId>maven-compiler-plugin</artifactId>
160 <executions>
161 <execution>
162 <id>test-compile-java5</id>
163 <goals>
164 <goal>testCompile</goal>
165 </goals>
166 <configuration>
167 <source>1.5</source>
168 <target>1.5</target>
169 <testExcludes>
170 <testExclude>**/cm/*</testExclude>
171 <testExclude>**/cm/file/*</testExclude>
172 <testExclude>**/cm/impl/**</testExclude>
173 </testExcludes>
174 <testIncludes>
175 <testInclude>**/integration/**</testInclude>
176 </testIncludes>
177 </configuration>
178 </execution>
179 </executions>
180 <configuration>
181 <testExcludes>
182 <testExclude>**/integration/**</testExclude>
183 </testExcludes>
184 </configuration>
185 </plugin>
186
187 <!--
188 Exclude Integration tests in (default) unit tests and
189 conversely enable integration tests for integration testing
190 only. Helper classes are completely excluded from testing.
191 -->
192 <plugin>
193 <artifactId>maven-surefire-plugin</artifactId>
194 <executions>
195 <execution>
196 <id>surefire-it</id>
197 <phase>integration-test</phase>
198 <goals>
199 <goal>test</goal>
200 </goals>
201 <configuration>
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000202 <systemProperties>
203 <property>
204 <name>project.bundle.file</name>
205 <value>${bundle.file.name}</value>
206 </property>
207 </systemProperties>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000208 <excludes>
209 <exclude>**/cm/*</exclude>
210 <exclude>**/cm/file/*</exclude>
211 <exclude>**/cm/impl/**</exclude>
212 </excludes>
213 <includes>
214 <include>**/integration/*</include>
215 </includes>
216 </configuration>
217 </execution>
218 </executions>
219 <configuration>
220 <excludes>
221 <exclude>**/integration/**</exclude>
222 </excludes>
223 </configuration>
224 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000225 </plugins>
226 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000227
Felix Meschbergerf2641a22010-08-25 08:45:50 +0000228 <profiles>
229 <!--
230 copy the package such that IDEs may easily use it without
231 setting the system property
232 -->
233 <profile>
234 <id>ide</id>
235 <build>
236 <plugins>
237 <plugin>
238 <artifactId>maven-antrun-plugin</artifactId>
239 <version>1.3</version>
240 <executions>
241 <execution>
242 <id>cm-file-create</id>
243 <phase>package</phase>
244 <goals>
245 <goal>run</goal>
246 </goals>
247 <configuration>
248 <tasks>
249 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
250 </tasks>
251 </configuration>
252 </execution>
253 </executions>
254 </plugin>
255 </plugins>
256 </build>
257 </profile>
258 </profiles>
259
Felix Meschberger819d0b72009-08-14 15:35:27 +0000260 <!-- repositories for Pax Exam and BND tool -->
261 <repositories>
262 <repository>
263 <id>ops4j</id>
264 <name>ops4j</name>
265 <url>http://repository.ops4j.org/maven2</url>
266 <snapshots>
267 <enabled>false</enabled>
268 </snapshots>
269 </repository>
270 <repository>
271 <id>aqute</id>
272 <name>aqute</name>
273 <url>http://www.aqute.biz/repo</url>
274 <snapshots>
275 <enabled>false</enabled>
276 </snapshots>
277 </repository>
278 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000279</project>