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> |
| 25 | <version>1.2.0</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 | affab19 | 2009-08-31 19:37:44 +0000 | [diff] [blame] | 30 | <version>1.2.7-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> |
| 35 | Implementation of the OSGi Configuration Admin Service Specification 1.2 |
| 36 | </description> |
| 37 | |
Felix Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 38 | <!-- |
| 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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 74 | <dependencies> |
| 75 | <dependency> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 76 | <groupId>org.osgi</groupId> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 77 | <artifactId>org.osgi.core</artifactId> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 78 | <version>4.0.0</version> |
Felix Meschberger | a37988a | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 79 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 80 | </dependency> |
| 81 | <dependency> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 82 | <groupId>org.osgi</groupId> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 83 | <artifactId>org.osgi.compendium</artifactId> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 84 | <version>4.2.0</version> |
Felix Meschberger | a37988a | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 85 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 86 | </dependency> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 87 | |
| 88 | <!-- Integration Testing with Pax Exam --> |
| 89 | <dependency> |
| 90 | <groupId>junit</groupId> |
| 91 | <artifactId>junit</artifactId> |
| 92 | <version>4.6</version> |
Felix Meschberger | b93eea9 | 2010-03-06 17:56:13 +0000 | [diff] [blame] | 93 | <scope>test</scope> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 94 | </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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 119 | </dependencies> |
| 120 | |
| 121 | <build> |
| 122 | <plugins> |
| 123 | <plugin> |
| 124 | <groupId>org.apache.felix</groupId> |
Richard S. Hall | 797bc98 | 2007-05-21 18:35:07 +0000 | [diff] [blame] | 125 | <artifactId>maven-bundle-plugin</artifactId> |
Felix Meschberger | a37988a | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 126 | <version>2.0.1</version> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 127 | <extensions>true</extensions> |
| 128 | <configuration> |
| 129 | <instructions> |
| 130 | <Bundle-Category>osgi</Bundle-Category> |
Felix Meschberger | 1af2182 | 2007-09-04 13:35:05 +0000 | [diff] [blame] | 131 | <Bundle-SymbolicName> |
| 132 | ${artifactId} |
| 133 | </Bundle-SymbolicName> |
Carsten Ziegeler | cf6e51b | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 134 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 135 | <Export-Package> |
Felix Meschberger | 432e387 | 2008-03-07 14:58:57 +0000 | [diff] [blame] | 136 | org.apache.felix.cm; |
| 137 | org.apache.felix.cm.file;version=1.0, |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 138 | org.osgi.service.cm |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 139 | </Export-Package> |
| 140 | <Private-Package> |
Felix Meschberger | ee86740 | 2008-06-13 08:33:54 +0000 | [diff] [blame] | 141 | org.apache.felix.cm.impl, |
| 142 | org.osgi.util.tracker |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 143 | </Private-Package> |
| 144 | <Bundle-Activator> |
| 145 | org.apache.felix.cm.impl.ConfigurationManager |
| 146 | </Bundle-Activator> |
Felix Meschberger | 85b355d | 2007-08-31 07:17:38 +0000 | [diff] [blame] | 147 | <DynamicImport-Package> |
| 148 | org.osgi.service.log |
| 149 | </DynamicImport-Package> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 150 | </instructions> |
| 151 | </configuration> |
| 152 | </plugin> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 153 | <!-- |
| 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 Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 202 | <systemProperties> |
| 203 | <property> |
| 204 | <name>project.bundle.file</name> |
| 205 | <value>${bundle.file.name}</value> |
| 206 | </property> |
| 207 | </systemProperties> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 208 | <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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 225 | </plugins> |
| 226 | </build> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 227 | |
Felix Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 228 | <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 Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 260 | <!-- 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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 279 | </project> |