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 | fb05f00 | 2009-08-20 10:34:17 +0000 | [diff] [blame] | 24 | <artifactId>felix-parent</artifactId> |
Carsten Ziegeler | 6e172fe | 2011-05-10 12:23:15 +0000 | [diff] [blame] | 25 | <version>2</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 | 8664d1c | 2010-09-08 12:41:29 +0000 | [diff] [blame] | 30 | <version>1.2.9-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 | fff99df | 2011-10-20 12:39:38 +0000 | [diff] [blame] | 35 | Implementation of the OSGi Configuration Admin Service Specification 1.4 |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 36 | </description> |
| 37 | |
Carsten Ziegeler | 69ccae3 | 2010-08-27 07:37:31 +0000 | [diff] [blame] | 38 | <scm> |
Felix Meschberger | 8664d1c | 2010-09-08 12:41:29 +0000 | [diff] [blame] | 39 | <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 Ziegeler | 69ccae3 | 2010-08-27 07:37:31 +0000 | [diff] [blame] | 42 | </scm> |
| 43 | |
Felix Meschberger | 3aad57c | 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> |
Guillaume Nodet | f4cc54a | 2011-03-18 13:14:01 +0000 | [diff] [blame] | 77 | |
| 78 | <api-package-version>1.0</api-package-version> |
Felix Meschberger | 3aad57c | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 79 | </properties> |
| 80 | |
| 81 | |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 82 | <dependencies> |
| 83 | <dependency> |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 84 | <groupId>org.osgi</groupId> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 85 | <artifactId>org.osgi.core</artifactId> |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 86 | <version>4.0.0</version> |
Felix Meschberger | 00d0cdf | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 87 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 88 | </dependency> |
| 89 | <dependency> |
Felix Meschberger | 806d25b | 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.compendium</artifactId> |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 92 | <version>4.2.0</version> |
Felix Meschberger | 00d0cdf | 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 | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 95 | |
| 96 | <!-- Integration Testing with Pax Exam --> |
| 97 | <dependency> |
| 98 | <groupId>junit</groupId> |
| 99 | <artifactId>junit</artifactId> |
| 100 | <version>4.6</version> |
Felix Meschberger | 8ca8aea | 2010-03-06 17:56:13 +0000 | [diff] [blame] | 101 | <scope>test</scope> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 102 | </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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 127 | </dependencies> |
| 128 | |
| 129 | <build> |
| 130 | <plugins> |
| 131 | <plugin> |
| 132 | <groupId>org.apache.felix</groupId> |
Richard S. Hall | 797bc98 | 2007-05-21 18:35:07 +0000 | [diff] [blame] | 133 | <artifactId>maven-bundle-plugin</artifactId> |
Carsten Ziegeler | fbb7c81 | 2011-09-09 12:26:48 +0000 | [diff] [blame] | 134 | <version>2.3.5</version> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 135 | <extensions>true</extensions> |
| 136 | <configuration> |
| 137 | <instructions> |
| 138 | <Bundle-Category>osgi</Bundle-Category> |
Felix Meschberger | 1af2182 | 2007-09-04 13:35:05 +0000 | [diff] [blame] | 139 | <Bundle-SymbolicName> |
Felix Meschberger | 7014145 | 2011-11-03 23:42:50 +0000 | [diff] [blame] | 140 | ${project.artifactId} |
Felix Meschberger | 1af2182 | 2007-09-04 13:35:05 +0000 | [diff] [blame] | 141 | </Bundle-SymbolicName> |
Carsten Ziegeler | 90f0b9f | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 142 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Felix Meschberger | 8309e52 | 2011-02-04 06:23:47 +0000 | [diff] [blame] | 143 | <Bundle-DocURL> |
| 144 | http://felix.apache.org/site/apache-felix-config-admin.html |
| 145 | </Bundle-DocURL> |
Felix Meschberger | d9305cb | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 146 | <Bundle-Activator> |
| 147 | org.apache.felix.cm.impl.ConfigurationManager |
| 148 | </Bundle-Activator> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 149 | <Export-Package> |
Felix Meschberger | 432e387 | 2008-03-07 14:58:57 +0000 | [diff] [blame] | 150 | org.apache.felix.cm; |
Guillaume Nodet | f4cc54a | 2011-03-18 13:14:01 +0000 | [diff] [blame] | 151 | org.apache.felix.cm.file;version=${api-package-version};provide:=true, |
Felix Meschberger | fff99df | 2011-10-20 12:39:38 +0000 | [diff] [blame] | 152 | org.osgi.service.cm;version=1.4;-split-package:=merge-first;provide:=true |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 153 | </Export-Package> |
| 154 | <Private-Package> |
Felix Meschberger | 48f6e7a | 2008-06-13 08:33:54 +0000 | [diff] [blame] | 155 | org.apache.felix.cm.impl, |
| 156 | org.osgi.util.tracker |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 157 | </Private-Package> |
Felix Meschberger | d9305cb | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 158 | <Import-Package> |
Felix Meschberger | fff99df | 2011-10-20 12:39:38 +0000 | [diff] [blame] | 159 | org.osgi.service.cm;version="[1.4,1.5)", |
Felix Meschberger | d9305cb | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 160 | * |
| 161 | </Import-Package> |
Felix Meschberger | 85b355d | 2007-08-31 07:17:38 +0000 | [diff] [blame] | 162 | <DynamicImport-Package> |
Felix Meschberger | d9305cb | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 163 | org.osgi.service.log;version="1.3" |
Felix Meschberger | 85b355d | 2007-08-31 07:17:38 +0000 | [diff] [blame] | 164 | </DynamicImport-Package> |
Guillaume Nodet | f4cc54a | 2011-03-18 13:14:01 +0000 | [diff] [blame] | 165 | <Export-Service> |
| 166 | org.osgi.service.cm.ConfigurationAdmin; |
Felix Meschberger | fff99df | 2011-10-20 12:39:38 +0000 | [diff] [blame] | 167 | service.description="Configuration Admin Service Specification 1.4 Implementation"; |
Guillaume Nodet | f4cc54a | 2011-03-18 13:14:01 +0000 | [diff] [blame] | 168 | 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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 178 | </instructions> |
| 179 | </configuration> |
| 180 | </plugin> |
Felix Meschberger | 458b1a9 | 2012-01-09 08:17:55 +0000 | [diff] [blame^] | 181 | <!-- Make sure to not use non Java 1.3 API --> |
| 182 | <plugin> |
| 183 | <groupId>org.codehaus.mojo</groupId> |
| 184 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 185 | <version>1.7</version> |
| 186 | <configuration> |
| 187 | <signature> |
| 188 | <groupId>org.codehaus.mojo.signature</groupId> |
| 189 | <artifactId>java13-sun</artifactId> |
| 190 | <version>1.0</version> |
| 191 | </signature> |
| 192 | </configuration> |
| 193 | <executions> |
| 194 | <execution> |
| 195 | <phase>test</phase> |
| 196 | <goals> |
| 197 | <goal>check</goal> |
| 198 | </goals> |
| 199 | </execution> |
| 200 | </executions> |
| 201 | </plugin> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 202 | <!-- |
| 203 | configure default compilation for Java 1.3 and integration |
| 204 | test compilation for Java 5 (since integration tests use |
| 205 | Java Annotations for Pax Exam) |
| 206 | --> |
| 207 | <plugin> |
| 208 | <artifactId>maven-compiler-plugin</artifactId> |
| 209 | <executions> |
| 210 | <execution> |
| 211 | <id>test-compile-java5</id> |
| 212 | <goals> |
| 213 | <goal>testCompile</goal> |
| 214 | </goals> |
| 215 | <configuration> |
| 216 | <source>1.5</source> |
| 217 | <target>1.5</target> |
| 218 | <testExcludes> |
| 219 | <testExclude>**/cm/*</testExclude> |
| 220 | <testExclude>**/cm/file/*</testExclude> |
| 221 | <testExclude>**/cm/impl/**</testExclude> |
| 222 | </testExcludes> |
| 223 | <testIncludes> |
| 224 | <testInclude>**/integration/**</testInclude> |
| 225 | </testIncludes> |
| 226 | </configuration> |
| 227 | </execution> |
| 228 | </executions> |
| 229 | <configuration> |
| 230 | <testExcludes> |
| 231 | <testExclude>**/integration/**</testExclude> |
| 232 | </testExcludes> |
| 233 | </configuration> |
| 234 | </plugin> |
| 235 | |
| 236 | <!-- |
| 237 | Exclude Integration tests in (default) unit tests and |
| 238 | conversely enable integration tests for integration testing |
| 239 | only. Helper classes are completely excluded from testing. |
| 240 | --> |
| 241 | <plugin> |
| 242 | <artifactId>maven-surefire-plugin</artifactId> |
| 243 | <executions> |
| 244 | <execution> |
| 245 | <id>surefire-it</id> |
| 246 | <phase>integration-test</phase> |
| 247 | <goals> |
| 248 | <goal>test</goal> |
| 249 | </goals> |
| 250 | <configuration> |
Felix Meschberger | 3aad57c | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 251 | <systemProperties> |
| 252 | <property> |
| 253 | <name>project.bundle.file</name> |
| 254 | <value>${bundle.file.name}</value> |
| 255 | </property> |
| 256 | </systemProperties> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 257 | <excludes> |
| 258 | <exclude>**/cm/*</exclude> |
| 259 | <exclude>**/cm/file/*</exclude> |
| 260 | <exclude>**/cm/impl/**</exclude> |
| 261 | </excludes> |
| 262 | <includes> |
| 263 | <include>**/integration/*</include> |
| 264 | </includes> |
| 265 | </configuration> |
| 266 | </execution> |
| 267 | </executions> |
| 268 | <configuration> |
| 269 | <excludes> |
| 270 | <exclude>**/integration/**</exclude> |
| 271 | </excludes> |
| 272 | </configuration> |
| 273 | </plugin> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 274 | </plugins> |
| 275 | </build> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 276 | |
Felix Meschberger | 3aad57c | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 277 | <profiles> |
| 278 | <!-- |
| 279 | copy the package such that IDEs may easily use it without |
| 280 | setting the system property |
| 281 | --> |
| 282 | <profile> |
| 283 | <id>ide</id> |
| 284 | <build> |
| 285 | <plugins> |
| 286 | <plugin> |
| 287 | <artifactId>maven-antrun-plugin</artifactId> |
| 288 | <version>1.3</version> |
| 289 | <executions> |
| 290 | <execution> |
| 291 | <id>cm-file-create</id> |
| 292 | <phase>package</phase> |
| 293 | <goals> |
| 294 | <goal>run</goal> |
| 295 | </goals> |
| 296 | <configuration> |
| 297 | <tasks> |
| 298 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" /> |
| 299 | </tasks> |
| 300 | </configuration> |
| 301 | </execution> |
| 302 | </executions> |
| 303 | </plugin> |
| 304 | </plugins> |
| 305 | </build> |
| 306 | </profile> |
| 307 | </profiles> |
| 308 | |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 309 | <!-- repositories for Pax Exam and BND tool --> |
| 310 | <repositories> |
| 311 | <repository> |
| 312 | <id>ops4j</id> |
| 313 | <name>ops4j</name> |
| 314 | <url>http://repository.ops4j.org/maven2</url> |
| 315 | <snapshots> |
| 316 | <enabled>false</enabled> |
| 317 | </snapshots> |
| 318 | </repository> |
| 319 | <repository> |
| 320 | <id>aqute</id> |
| 321 | <name>aqute</name> |
| 322 | <url>http://www.aqute.biz/repo</url> |
| 323 | <snapshots> |
| 324 | <enabled>false</enabled> |
| 325 | </snapshots> |
| 326 | </repository> |
| 327 | </repositories> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 328 | </project> |