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