Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Carsten Ziegeler | 3a66ebc | 2007-07-11 10:46:36 +0000 | [diff] [blame] | 2 | <!-- |
| 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 Ziegeler | 4fec096 | 2008-01-11 16:13:31 +0000 | [diff] [blame] | 20 | <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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> |
| 23 | <groupId>org.apache.felix</groupId> |
Felix Meschberger | 0ad1379 | 2009-08-20 10:34:17 +0000 | [diff] [blame] | 24 | <artifactId>felix-parent</artifactId> |
Felix Meschberger | abb0bc2 | 2012-05-30 11:07:49 +0000 | [diff] [blame] | 25 | <version>2.1</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 26 | <relativePath>../pom/pom.xml</relativePath> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 27 | </parent> |
| 28 | |
Felix Meschberger | fdb360f | 2007-04-11 18:51:16 +0000 | [diff] [blame] | 29 | <artifactId>org.apache.felix.configadmin</artifactId> |
Felix Meschberger | 8eabf7c | 2012-10-19 20:36:09 +0000 | [diff] [blame] | 30 | <version>1.6.1-SNAPSHOT</version> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 31 | <packaging>bundle</packaging> |
| 32 | |
| 33 | <name>Apache Felix Configuration Admin Service</name> |
| 34 | <description> |
Felix Meschberger | 0770cad | 2012-06-11 12:36:52 +0000 | [diff] [blame] | 35 | Implementation of the OSGi Configuration Admin Service Specification 1.5 |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 36 | </description> |
| 37 | |
Carsten Ziegeler | 8c4700f | 2010-08-27 07:37:31 +0000 | [diff] [blame] | 38 | <scm> |
Felix Meschberger | 8eabf7c | 2012-10-19 20:36:09 +0000 | [diff] [blame] | 39 | <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 Ziegeler | 8c4700f | 2010-08-27 07:37:31 +0000 | [diff] [blame] | 42 | </scm> |
| 43 | |
Felix Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 44 | <!-- |
| 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 Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 77 | |
Felix Meschberger | 0770cad | 2012-06-11 12:36:52 +0000 | [diff] [blame] | 78 | <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 Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 82 | |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 83 | <dependencies> |
Felix Meschberger | 63e7ab1 | 2012-07-02 14:10:43 +0000 | [diff] [blame] | 84 | |
| 85 | <!-- |
| 86 | Depend on latest version to make use of generics. Still we |
| 87 | make sure to only require Framework API 1.5 (OSGi Core R4.2) |
| 88 | --> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 89 | <dependency> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 90 | <groupId>org.osgi</groupId> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 91 | <artifactId>org.osgi.core</artifactId> |
Felix Meschberger | 63e7ab1 | 2012-07-02 14:10:43 +0000 | [diff] [blame] | 92 | <version>5.0.0</version> |
Felix Meschberger | a37988a | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 93 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 94 | </dependency> |
Felix Meschberger | 70f0abd | 2012-06-19 06:18:05 +0000 | [diff] [blame] | 95 | |
| 96 | <!-- |
| 97 | Configuration Admin and other API from latest enterprise |
| 98 | which provides Config Admin 1.5 API |
| 99 | --> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 100 | <dependency> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 101 | <groupId>org.osgi</groupId> |
Felix Meschberger | 70f0abd | 2012-06-19 06:18:05 +0000 | [diff] [blame] | 102 | <artifactId>org.osgi.enterprise</artifactId> |
| 103 | <version>5.0.0</version> |
Felix Meschberger | a37988a | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 104 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 105 | </dependency> |
Felix Meschberger | abb0bc2 | 2012-05-30 11:07:49 +0000 | [diff] [blame] | 106 | |
| 107 | <!-- BND export annotations --> |
| 108 | <dependency> |
| 109 | <groupId>biz.aQute</groupId> |
| 110 | <artifactId>bndlib</artifactId> |
| 111 | <version>1.50.0</version> |
| 112 | <scope>provided</scope> |
| 113 | </dependency> |
| 114 | |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 115 | <!-- Integration Testing with Pax Exam --> |
| 116 | <dependency> |
| 117 | <groupId>junit</groupId> |
| 118 | <artifactId>junit</artifactId> |
| 119 | <version>4.6</version> |
Felix Meschberger | b93eea9 | 2010-03-06 17:56:13 +0000 | [diff] [blame] | 120 | <scope>test</scope> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>org.ops4j.pax.exam</groupId> |
Guillaume Nodet | 3473093 | 2012-12-14 16:40:08 +0000 | [diff] [blame] | 124 | <artifactId>pax-exam-junit4</artifactId> |
| 125 | <version>2.6.0</version> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 126 | <scope>test</scope> |
| 127 | </dependency> |
| 128 | <dependency> |
| 129 | <groupId>org.ops4j.pax.exam</groupId> |
Guillaume Nodet | 3473093 | 2012-12-14 16:40:08 +0000 | [diff] [blame] | 130 | <artifactId>pax-exam-container-native</artifactId> |
| 131 | <version>2.6.0</version> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 132 | <scope>test</scope> |
| 133 | </dependency> |
| 134 | <dependency> |
| 135 | <groupId>org.ops4j.pax.exam</groupId> |
Guillaume Nodet | 3473093 | 2012-12-14 16:40:08 +0000 | [diff] [blame] | 136 | <artifactId>pax-exam-link-mvn</artifactId> |
| 137 | <version>2.6.0</version> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 138 | <scope>test</scope> |
| 139 | </dependency> |
| 140 | <dependency> |
Guillaume Nodet | 3473093 | 2012-12-14 16:40:08 +0000 | [diff] [blame] | 141 | <groupId>org.ops4j.pax.url</groupId> |
| 142 | <artifactId>pax-url-aether</artifactId> |
| 143 | <version>1.5.0</version> |
| 144 | <scope>test</scope> |
| 145 | </dependency> |
| 146 | <dependency> |
| 147 | <groupId>org.ops4j.pax.tinybundles</groupId> |
| 148 | <artifactId>tinybundles</artifactId> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 149 | <version>1.0.0</version> |
| 150 | <scope>test</scope> |
| 151 | </dependency> |
Guillaume Nodet | 3473093 | 2012-12-14 16:40:08 +0000 | [diff] [blame] | 152 | <dependency> |
| 153 | <groupId>org.apache.geronimo.specs</groupId> |
| 154 | <artifactId>geronimo-atinject_1.0_spec</artifactId> |
| 155 | <version>1.0</version> |
| 156 | <scope>test</scope> |
| 157 | </dependency> |
| 158 | <dependency> |
| 159 | <groupId>org.slf4j</groupId> |
| 160 | <artifactId>slf4j-simple</artifactId> |
| 161 | <version>1.7.1</version> |
| 162 | <scope>test</scope> |
| 163 | </dependency> |
| 164 | <dependency> |
| 165 | <groupId>org.apache.felix</groupId> |
| 166 | <artifactId>org.apache.felix.framework</artifactId> |
| 167 | <version>4.0.3</version> |
| 168 | <scope>test</scope> |
| 169 | </dependency> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 170 | </dependencies> |
| 171 | |
| 172 | <build> |
| 173 | <plugins> |
| 174 | <plugin> |
| 175 | <groupId>org.apache.felix</groupId> |
Richard S. Hall | 797bc98 | 2007-05-21 18:35:07 +0000 | [diff] [blame] | 176 | <artifactId>maven-bundle-plugin</artifactId> |
Felix Meschberger | 9254582 | 2012-06-01 22:22:44 +0000 | [diff] [blame] | 177 | <version>2.3.7</version> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 178 | <extensions>true</extensions> |
| 179 | <configuration> |
| 180 | <instructions> |
| 181 | <Bundle-Category>osgi</Bundle-Category> |
Felix Meschberger | 1af2182 | 2007-09-04 13:35:05 +0000 | [diff] [blame] | 182 | <Bundle-SymbolicName> |
Felix Meschberger | cdb12bf | 2011-11-03 23:42:50 +0000 | [diff] [blame] | 183 | ${project.artifactId} |
Felix Meschberger | 1af2182 | 2007-09-04 13:35:05 +0000 | [diff] [blame] | 184 | </Bundle-SymbolicName> |
Carsten Ziegeler | cf6e51b | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 185 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Felix Meschberger | b3c6ac9 | 2011-02-04 06:23:47 +0000 | [diff] [blame] | 186 | <Bundle-DocURL> |
| 187 | http://felix.apache.org/site/apache-felix-config-admin.html |
| 188 | </Bundle-DocURL> |
Felix Meschberger | 80a9d5f | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 189 | <Bundle-Activator> |
| 190 | org.apache.felix.cm.impl.ConfigurationManager |
| 191 | </Bundle-Activator> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 192 | <Export-Package> |
Felix Meschberger | abb0bc2 | 2012-05-30 11:07:49 +0000 | [diff] [blame] | 193 | <!-- just list, version from package-info classes --> |
Felix Meschberger | 432e387 | 2008-03-07 14:58:57 +0000 | [diff] [blame] | 194 | org.apache.felix.cm; |
Felix Meschberger | abb0bc2 | 2012-05-30 11:07:49 +0000 | [diff] [blame] | 195 | org.apache.felix.cm.file, |
Felix Meschberger | 73266ae | 2012-07-03 09:40:45 +0000 | [diff] [blame] | 196 | org.osgi.service.cm;provide:=true;version=1.5 |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 197 | </Export-Package> |
Felix Meschberger | 0770cad | 2012-06-11 12:36:52 +0000 | [diff] [blame] | 198 | <Import-Package> |
| 199 | org.osgi.service.cm;version="[1.5,1.6)", |
Felix Meschberger | 63e7ab1 | 2012-07-02 14:10:43 +0000 | [diff] [blame] | 200 | org.osgi.framework;version="[1.4,2)", |
Felix Meschberger | 0770cad | 2012-06-11 12:36:52 +0000 | [diff] [blame] | 201 | * |
| 202 | </Import-Package> |
Felix Meschberger | 85b355d | 2007-08-31 07:17:38 +0000 | [diff] [blame] | 203 | <DynamicImport-Package> |
Felix Meschberger | abb0bc2 | 2012-05-30 11:07:49 +0000 | [diff] [blame] | 204 | <!-- overwrite version from compendium bundle --> |
Felix Meschberger | 80a9d5f | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 205 | org.osgi.service.log;version="1.3" |
Felix Meschberger | 85b355d | 2007-08-31 07:17:38 +0000 | [diff] [blame] | 206 | </DynamicImport-Package> |
Guillaume Nodet | f3870bb | 2011-03-18 13:14:01 +0000 | [diff] [blame] | 207 | <Export-Service> |
| 208 | org.osgi.service.cm.ConfigurationAdmin; |
Felix Meschberger | 0770cad | 2012-06-11 12:36:52 +0000 | [diff] [blame] | 209 | service.description="Configuration Admin Service Specification 1.5 Implementation"; |
Guillaume Nodet | f3870bb | 2011-03-18 13:14:01 +0000 | [diff] [blame] | 210 | service.pid="org.osgi.service.cm.ConfigurationAdmin"; |
| 211 | service.vendor="Apache Software Foundation", |
| 212 | org.apache.felix.cm.PersistenceManager; |
| 213 | service.description="Platform Filesystem Persistence Manager"; |
| 214 | service.pid="org.apache.felix.cm.file.FilePersistenceManager"; |
| 215 | service.vendor="Apache Software Foundation" |
| 216 | </Export-Service> |
| 217 | <Import-Service> |
| 218 | org.osgi.service.log.LogService;availability:=optional;multiple:=false |
| 219 | </Import-Service> |
Felix Meschberger | 73266ae | 2012-07-03 09:40:45 +0000 | [diff] [blame] | 220 | <Embed-Dependency> |
| 221 | org.osgi.core;inline=org/osgi/util/tracker/ServiceTracker*|org/osgi/util/tracker/AbstractTracked.class |
| 222 | </Embed-Dependency> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 223 | </instructions> |
| 224 | </configuration> |
| 225 | </plugin> |
Felix Meschberger | 4a48e25 | 2012-01-09 08:17:55 +0000 | [diff] [blame] | 226 | <plugin> |
| 227 | <groupId>org.codehaus.mojo</groupId> |
| 228 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 229 | <version>1.7</version> |
| 230 | <configuration> |
| 231 | <signature> |
| 232 | <groupId>org.codehaus.mojo.signature</groupId> |
Felix Meschberger | abb0bc2 | 2012-05-30 11:07:49 +0000 | [diff] [blame] | 233 | <artifactId>java15</artifactId> |
Felix Meschberger | 4a48e25 | 2012-01-09 08:17:55 +0000 | [diff] [blame] | 234 | <version>1.0</version> |
| 235 | </signature> |
| 236 | </configuration> |
| 237 | <executions> |
| 238 | <execution> |
| 239 | <phase>test</phase> |
| 240 | <goals> |
| 241 | <goal>check</goal> |
| 242 | </goals> |
| 243 | </execution> |
| 244 | </executions> |
| 245 | </plugin> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 246 | <plugin> |
| 247 | <artifactId>maven-compiler-plugin</artifactId> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 248 | <configuration> |
Felix Meschberger | abb0bc2 | 2012-05-30 11:07:49 +0000 | [diff] [blame] | 249 | <source>1.5</source> |
| 250 | <target>1.5</target> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 251 | </configuration> |
| 252 | </plugin> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 253 | <!-- |
| 254 | Exclude Integration tests in (default) unit tests and |
| 255 | conversely enable integration tests for integration testing |
| 256 | only. Helper classes are completely excluded from testing. |
| 257 | --> |
| 258 | <plugin> |
| 259 | <artifactId>maven-surefire-plugin</artifactId> |
| 260 | <executions> |
| 261 | <execution> |
| 262 | <id>surefire-it</id> |
| 263 | <phase>integration-test</phase> |
| 264 | <goals> |
| 265 | <goal>test</goal> |
| 266 | </goals> |
| 267 | <configuration> |
Felix Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 268 | <systemProperties> |
| 269 | <property> |
| 270 | <name>project.bundle.file</name> |
| 271 | <value>${bundle.file.name}</value> |
| 272 | </property> |
| 273 | </systemProperties> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 274 | <excludes> |
| 275 | <exclude>**/cm/*</exclude> |
| 276 | <exclude>**/cm/file/*</exclude> |
| 277 | <exclude>**/cm/impl/**</exclude> |
| 278 | </excludes> |
| 279 | <includes> |
| 280 | <include>**/integration/*</include> |
| 281 | </includes> |
| 282 | </configuration> |
| 283 | </execution> |
| 284 | </executions> |
| 285 | <configuration> |
| 286 | <excludes> |
| 287 | <exclude>**/integration/**</exclude> |
| 288 | </excludes> |
| 289 | </configuration> |
| 290 | </plugin> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 291 | </plugins> |
| 292 | </build> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 293 | |
Felix Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 294 | <profiles> |
| 295 | <!-- |
| 296 | copy the package such that IDEs may easily use it without |
| 297 | setting the system property |
| 298 | --> |
| 299 | <profile> |
| 300 | <id>ide</id> |
| 301 | <build> |
| 302 | <plugins> |
| 303 | <plugin> |
| 304 | <artifactId>maven-antrun-plugin</artifactId> |
| 305 | <version>1.3</version> |
| 306 | <executions> |
| 307 | <execution> |
| 308 | <id>cm-file-create</id> |
| 309 | <phase>package</phase> |
| 310 | <goals> |
| 311 | <goal>run</goal> |
| 312 | </goals> |
| 313 | <configuration> |
| 314 | <tasks> |
| 315 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" /> |
| 316 | </tasks> |
| 317 | </configuration> |
| 318 | </execution> |
| 319 | </executions> |
| 320 | </plugin> |
| 321 | </plugins> |
| 322 | </build> |
| 323 | </profile> |
| 324 | </profiles> |
| 325 | |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 326 | <!-- repositories for Pax Exam and BND tool --> |
| 327 | <repositories> |
| 328 | <repository> |
| 329 | <id>ops4j</id> |
| 330 | <name>ops4j</name> |
| 331 | <url>http://repository.ops4j.org/maven2</url> |
| 332 | <snapshots> |
| 333 | <enabled>false</enabled> |
| 334 | </snapshots> |
| 335 | </repository> |
| 336 | <repository> |
| 337 | <id>aqute</id> |
| 338 | <name>aqute</name> |
| 339 | <url>http://www.aqute.biz/repo</url> |
| 340 | <snapshots> |
| 341 | <enabled>false</enabled> |
| 342 | </snapshots> |
| 343 | </repository> |
| 344 | </repositories> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 345 | </project> |