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> |
| 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 | 99a126d | 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 | |
| 38 | <dependencies> |
| 39 | <dependency> |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 40 | <groupId>org.osgi</groupId> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 41 | <artifactId>org.osgi.core</artifactId> |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 42 | <version>4.0.0</version> |
Felix Meschberger | 00d0cdf | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 43 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 44 | </dependency> |
| 45 | <dependency> |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 46 | <groupId>org.osgi</groupId> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 47 | <artifactId>org.osgi.compendium</artifactId> |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 48 | <version>4.2.0</version> |
Felix Meschberger | 00d0cdf | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 49 | <scope>provided</scope> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 50 | </dependency> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 51 | |
| 52 | <!-- Integration Testing with Pax Exam --> |
| 53 | <dependency> |
| 54 | <groupId>junit</groupId> |
| 55 | <artifactId>junit</artifactId> |
| 56 | <version>4.6</version> |
Felix Meschberger | 8ca8aea | 2010-03-06 17:56:13 +0000 | [diff] [blame] | 57 | <scope>test</scope> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.ops4j.pax.exam</groupId> |
| 61 | <artifactId>pax-exam</artifactId> |
| 62 | <version>0.6.0</version> |
| 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.ops4j.pax.exam</groupId> |
| 67 | <artifactId>pax-exam-junit</artifactId> |
| 68 | <version>0.6.0</version> |
| 69 | <scope>test</scope> |
| 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>org.ops4j.pax.exam</groupId> |
| 73 | <artifactId>pax-exam-container-default</artifactId> |
| 74 | <version>0.6.0</version> |
| 75 | <scope>test</scope> |
| 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>org.ops4j.pax.swissbox</groupId> |
| 79 | <artifactId>pax-swissbox-tinybundles</artifactId> |
| 80 | <version>1.0.0</version> |
| 81 | <scope>test</scope> |
| 82 | </dependency> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 83 | </dependencies> |
| 84 | |
| 85 | <build> |
| 86 | <plugins> |
| 87 | <plugin> |
| 88 | <groupId>org.apache.felix</groupId> |
Richard S. Hall | 797bc98 | 2007-05-21 18:35:07 +0000 | [diff] [blame] | 89 | <artifactId>maven-bundle-plugin</artifactId> |
Felix Meschberger | 00d0cdf | 2010-03-06 18:04:38 +0000 | [diff] [blame] | 90 | <version>2.0.1</version> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 91 | <extensions>true</extensions> |
| 92 | <configuration> |
| 93 | <instructions> |
| 94 | <Bundle-Category>osgi</Bundle-Category> |
Felix Meschberger | 1af2182 | 2007-09-04 13:35:05 +0000 | [diff] [blame] | 95 | <Bundle-SymbolicName> |
| 96 | ${artifactId} |
| 97 | </Bundle-SymbolicName> |
Carsten Ziegeler | 90f0b9f | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 98 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 99 | <Export-Package> |
Felix Meschberger | 432e387 | 2008-03-07 14:58:57 +0000 | [diff] [blame] | 100 | org.apache.felix.cm; |
| 101 | org.apache.felix.cm.file;version=1.0, |
Felix Meschberger | 806d25b | 2009-09-17 13:11:21 +0000 | [diff] [blame] | 102 | org.osgi.service.cm |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 103 | </Export-Package> |
| 104 | <Private-Package> |
Felix Meschberger | 48f6e7a | 2008-06-13 08:33:54 +0000 | [diff] [blame] | 105 | org.apache.felix.cm.impl, |
| 106 | org.osgi.util.tracker |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 107 | </Private-Package> |
| 108 | <Bundle-Activator> |
| 109 | org.apache.felix.cm.impl.ConfigurationManager |
| 110 | </Bundle-Activator> |
Felix Meschberger | 85b355d | 2007-08-31 07:17:38 +0000 | [diff] [blame] | 111 | <DynamicImport-Package> |
| 112 | org.osgi.service.log |
| 113 | </DynamicImport-Package> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 114 | </instructions> |
| 115 | </configuration> |
| 116 | </plugin> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 117 | <!-- |
| 118 | configure default compilation for Java 1.3 and integration |
| 119 | test compilation for Java 5 (since integration tests use |
| 120 | Java Annotations for Pax Exam) |
| 121 | --> |
| 122 | <plugin> |
| 123 | <artifactId>maven-compiler-plugin</artifactId> |
| 124 | <executions> |
| 125 | <execution> |
| 126 | <id>test-compile-java5</id> |
| 127 | <goals> |
| 128 | <goal>testCompile</goal> |
| 129 | </goals> |
| 130 | <configuration> |
| 131 | <source>1.5</source> |
| 132 | <target>1.5</target> |
| 133 | <testExcludes> |
| 134 | <testExclude>**/cm/*</testExclude> |
| 135 | <testExclude>**/cm/file/*</testExclude> |
| 136 | <testExclude>**/cm/impl/**</testExclude> |
| 137 | </testExcludes> |
| 138 | <testIncludes> |
| 139 | <testInclude>**/integration/**</testInclude> |
| 140 | </testIncludes> |
| 141 | </configuration> |
| 142 | </execution> |
| 143 | </executions> |
| 144 | <configuration> |
| 145 | <testExcludes> |
| 146 | <testExclude>**/integration/**</testExclude> |
| 147 | </testExcludes> |
| 148 | </configuration> |
| 149 | </plugin> |
| 150 | |
Felix Meschberger | ed509ef | 2009-08-20 11:23:32 +0000 | [diff] [blame] | 151 | <!-- Provide bundle for integration tests --> |
| 152 | <plugin> |
| 153 | <artifactId>maven-antrun-plugin</artifactId> |
| 154 | <version>1.3</version> |
| 155 | <executions> |
| 156 | <execution> |
| 157 | <id>configadmin-file-create</id> |
| 158 | <phase>pre-integration-test</phase> |
| 159 | <goals> |
| 160 | <goal>run</goal> |
| 161 | </goals> |
| 162 | <configuration> |
| 163 | <tasks> |
Felix Meschberger | 590e947 | 2009-08-21 07:28:02 +0000 | [diff] [blame] | 164 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" /> |
Felix Meschberger | ed509ef | 2009-08-20 11:23:32 +0000 | [diff] [blame] | 165 | </tasks> |
| 166 | </configuration> |
| 167 | </execution> |
| 168 | <execution> |
| 169 | <id>configadmin-file-remove</id> |
| 170 | <phase>post-integration-test</phase> |
| 171 | <goals> |
| 172 | <goal>run</goal> |
| 173 | </goals> |
| 174 | <configuration> |
| 175 | <tasks> |
Felix Meschberger | 590e947 | 2009-08-21 07:28:02 +0000 | [diff] [blame] | 176 | <delete file="${project.build.directory}/configadmin.jar" /> |
Felix Meschberger | ed509ef | 2009-08-20 11:23:32 +0000 | [diff] [blame] | 177 | </tasks> |
| 178 | </configuration> |
| 179 | </execution> |
| 180 | </executions> |
| 181 | </plugin> |
| 182 | |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 183 | <!-- |
| 184 | Exclude Integration tests in (default) unit tests and |
| 185 | conversely enable integration tests for integration testing |
| 186 | only. Helper classes are completely excluded from testing. |
| 187 | --> |
| 188 | <plugin> |
| 189 | <artifactId>maven-surefire-plugin</artifactId> |
| 190 | <executions> |
| 191 | <execution> |
| 192 | <id>surefire-it</id> |
| 193 | <phase>integration-test</phase> |
| 194 | <goals> |
| 195 | <goal>test</goal> |
| 196 | </goals> |
| 197 | <configuration> |
| 198 | <excludes> |
| 199 | <exclude>**/cm/*</exclude> |
| 200 | <exclude>**/cm/file/*</exclude> |
| 201 | <exclude>**/cm/impl/**</exclude> |
| 202 | </excludes> |
| 203 | <includes> |
| 204 | <include>**/integration/*</include> |
| 205 | </includes> |
| 206 | </configuration> |
| 207 | </execution> |
| 208 | </executions> |
| 209 | <configuration> |
| 210 | <excludes> |
| 211 | <exclude>**/integration/**</exclude> |
| 212 | </excludes> |
| 213 | </configuration> |
| 214 | </plugin> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 215 | </plugins> |
| 216 | </build> |
Felix Meschberger | 3121d7a | 2009-08-14 15:35:27 +0000 | [diff] [blame] | 217 | |
| 218 | <!-- repositories for Pax Exam and BND tool --> |
| 219 | <repositories> |
| 220 | <repository> |
| 221 | <id>ops4j</id> |
| 222 | <name>ops4j</name> |
| 223 | <url>http://repository.ops4j.org/maven2</url> |
| 224 | <snapshots> |
| 225 | <enabled>false</enabled> |
| 226 | </snapshots> |
| 227 | </repository> |
| 228 | <repository> |
| 229 | <id>aqute</id> |
| 230 | <name>aqute</name> |
| 231 | <url>http://www.aqute.biz/repo</url> |
| 232 | <snapshots> |
| 233 | <enabled>false</enabled> |
| 234 | </snapshots> |
| 235 | </repository> |
| 236 | </repositories> |
Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame] | 237 | </project> |