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 | b506d79 | 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> |
| 35 | Implementation of the OSGi Configuration Admin Service Specification 1.2 |
| 36 | </description> |
| 37 | |
Carsten Ziegeler | 8c4700f | 2010-08-27 07:37:31 +0000 | [diff] [blame] | 38 | <scm> |
Felix Meschberger | b506d79 | 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 | 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> |
| 77 | </properties> |
| 78 | |
| 79 | |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 80 | <dependencies> |
| 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.core</artifactId> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 84 | <version>4.0.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> |
| 87 | <dependency> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 88 | <groupId>org.osgi</groupId> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 89 | <artifactId>org.osgi.compendium</artifactId> |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 90 | <version>4.2.0</version> |
Felix Meschberger | a37988a | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 91 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 92 | </dependency> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 93 | |
| 94 | <!-- Integration Testing with Pax Exam --> |
| 95 | <dependency> |
| 96 | <groupId>junit</groupId> |
| 97 | <artifactId>junit</artifactId> |
| 98 | <version>4.6</version> |
Felix Meschberger | b93eea9 | 2010-03-06 17:56:13 +0000 | [diff] [blame] | 99 | <scope>test</scope> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 100 | </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 Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 125 | </dependencies> |
| 126 | |
| 127 | <build> |
| 128 | <plugins> |
| 129 | <plugin> |
| 130 | <groupId>org.apache.felix</groupId> |
Richard S. Hall | 797bc98 | 2007-05-21 18:35:07 +0000 | [diff] [blame] | 131 | <artifactId>maven-bundle-plugin</artifactId> |
Felix Meschberger | a37988a | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 132 | <version>2.0.1</version> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 133 | <extensions>true</extensions> |
| 134 | <configuration> |
| 135 | <instructions> |
| 136 | <Bundle-Category>osgi</Bundle-Category> |
Felix Meschberger | 1af2182 | 2007-09-04 13:35:05 +0000 | [diff] [blame] | 137 | <Bundle-SymbolicName> |
| 138 | ${artifactId} |
| 139 | </Bundle-SymbolicName> |
Carsten Ziegeler | cf6e51b | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 140 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Felix Meschberger | b3c6ac9 | 2011-02-04 06:23:47 +0000 | [diff] [blame] | 141 | <Bundle-DocURL> |
| 142 | http://felix.apache.org/site/apache-felix-config-admin.html |
| 143 | </Bundle-DocURL> |
Felix Meschberger | 80a9d5f | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 144 | <Bundle-Activator> |
| 145 | org.apache.felix.cm.impl.ConfigurationManager |
| 146 | </Bundle-Activator> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 147 | <Export-Package> |
Felix Meschberger | 432e387 | 2008-03-07 14:58:57 +0000 | [diff] [blame] | 148 | org.apache.felix.cm; |
| 149 | org.apache.felix.cm.file;version=1.0, |
Felix Meschberger | 6f13aa2 | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 150 | org.osgi.service.cm |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 151 | </Export-Package> |
| 152 | <Private-Package> |
Felix Meschberger | ee86740 | 2008-06-13 08:33:54 +0000 | [diff] [blame] | 153 | org.apache.felix.cm.impl, |
| 154 | org.osgi.util.tracker |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 155 | </Private-Package> |
Felix Meschberger | 80a9d5f | 2010-09-08 07:39:13 +0000 | [diff] [blame] | 156 | <Import-Package> |
| 157 | org.apache.felix.cm; |
| 158 | org.apache.felix.cm.file;version="[$(version;==;$(@)),$(version;=+;$(@)))", |
| 159 | org.osgi.service.cm;version="[$(version;==;$(@)),$(version;=+;$(@)))", |
| 160 | * |
| 161 | </Import-Package> |
Felix Meschberger | 85b355d | 2007-08-31 07:17:38 +0000 | [diff] [blame] | 162 | <DynamicImport-Package> |
Felix Meschberger | 80a9d5f | 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> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 165 | </instructions> |
| 166 | </configuration> |
| 167 | </plugin> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 168 | <!-- |
| 169 | configure default compilation for Java 1.3 and integration |
| 170 | test compilation for Java 5 (since integration tests use |
| 171 | Java Annotations for Pax Exam) |
| 172 | --> |
| 173 | <plugin> |
| 174 | <artifactId>maven-compiler-plugin</artifactId> |
| 175 | <executions> |
| 176 | <execution> |
| 177 | <id>test-compile-java5</id> |
| 178 | <goals> |
| 179 | <goal>testCompile</goal> |
| 180 | </goals> |
| 181 | <configuration> |
| 182 | <source>1.5</source> |
| 183 | <target>1.5</target> |
| 184 | <testExcludes> |
| 185 | <testExclude>**/cm/*</testExclude> |
| 186 | <testExclude>**/cm/file/*</testExclude> |
| 187 | <testExclude>**/cm/impl/**</testExclude> |
| 188 | </testExcludes> |
| 189 | <testIncludes> |
| 190 | <testInclude>**/integration/**</testInclude> |
| 191 | </testIncludes> |
| 192 | </configuration> |
| 193 | </execution> |
| 194 | </executions> |
| 195 | <configuration> |
| 196 | <testExcludes> |
| 197 | <testExclude>**/integration/**</testExclude> |
| 198 | </testExcludes> |
| 199 | </configuration> |
| 200 | </plugin> |
| 201 | |
| 202 | <!-- |
| 203 | Exclude Integration tests in (default) unit tests and |
| 204 | conversely enable integration tests for integration testing |
| 205 | only. Helper classes are completely excluded from testing. |
| 206 | --> |
| 207 | <plugin> |
| 208 | <artifactId>maven-surefire-plugin</artifactId> |
| 209 | <executions> |
| 210 | <execution> |
| 211 | <id>surefire-it</id> |
| 212 | <phase>integration-test</phase> |
| 213 | <goals> |
| 214 | <goal>test</goal> |
| 215 | </goals> |
| 216 | <configuration> |
Felix Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 217 | <systemProperties> |
| 218 | <property> |
| 219 | <name>project.bundle.file</name> |
| 220 | <value>${bundle.file.name}</value> |
| 221 | </property> |
| 222 | </systemProperties> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 223 | <excludes> |
| 224 | <exclude>**/cm/*</exclude> |
| 225 | <exclude>**/cm/file/*</exclude> |
| 226 | <exclude>**/cm/impl/**</exclude> |
| 227 | </excludes> |
| 228 | <includes> |
| 229 | <include>**/integration/*</include> |
| 230 | </includes> |
| 231 | </configuration> |
| 232 | </execution> |
| 233 | </executions> |
| 234 | <configuration> |
| 235 | <excludes> |
| 236 | <exclude>**/integration/**</exclude> |
| 237 | </excludes> |
| 238 | </configuration> |
| 239 | </plugin> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 240 | </plugins> |
| 241 | </build> |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 242 | |
Felix Meschberger | f2641a2 | 2010-08-25 08:45:50 +0000 | [diff] [blame] | 243 | <profiles> |
| 244 | <!-- |
| 245 | copy the package such that IDEs may easily use it without |
| 246 | setting the system property |
| 247 | --> |
| 248 | <profile> |
| 249 | <id>ide</id> |
| 250 | <build> |
| 251 | <plugins> |
| 252 | <plugin> |
| 253 | <artifactId>maven-antrun-plugin</artifactId> |
| 254 | <version>1.3</version> |
| 255 | <executions> |
| 256 | <execution> |
| 257 | <id>cm-file-create</id> |
| 258 | <phase>package</phase> |
| 259 | <goals> |
| 260 | <goal>run</goal> |
| 261 | </goals> |
| 262 | <configuration> |
| 263 | <tasks> |
| 264 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" /> |
| 265 | </tasks> |
| 266 | </configuration> |
| 267 | </execution> |
| 268 | </executions> |
| 269 | </plugin> |
| 270 | </plugins> |
| 271 | </build> |
| 272 | </profile> |
| 273 | </profiles> |
| 274 | |
Felix Meschberger | 819d0b7 | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 275 | <!-- repositories for Pax Exam and BND tool --> |
| 276 | <repositories> |
| 277 | <repository> |
| 278 | <id>ops4j</id> |
| 279 | <name>ops4j</name> |
| 280 | <url>http://repository.ops4j.org/maven2</url> |
| 281 | <snapshots> |
| 282 | <enabled>false</enabled> |
| 283 | </snapshots> |
| 284 | </repository> |
| 285 | <repository> |
| 286 | <id>aqute</id> |
| 287 | <name>aqute</name> |
| 288 | <url>http://www.aqute.biz/repo</url> |
| 289 | <snapshots> |
| 290 | <enabled>false</enabled> |
| 291 | </snapshots> |
| 292 | </repository> |
| 293 | </repositories> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 294 | </project> |