Carsten Ziegeler | b61fe0e | 2008-01-03 09:24:12 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | Licensed to the Apache Software Foundation (ASF) under one |
| 3 | or more contributor license agreements. See the NOTICE file |
| 4 | distributed with this work for additional information |
| 5 | regarding copyright ownership. The ASF licenses this file |
| 6 | to you under the Apache License, Version 2.0 (the |
| 7 | "License"); you may not use this file except in compliance |
| 8 | with the License. You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, |
| 13 | software distributed under the License is distributed on an |
| 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | KIND, either express or implied. See the License for the |
| 16 | specific language governing permissions and limitations |
| 17 | under the License. |
| 18 | --> |
Carsten Ziegeler | 4fec096 | 2008-01-11 16:13:31 +0000 | [diff] [blame] | 19 | <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"> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 20 | <parent> |
| 21 | <groupId>org.apache.felix</groupId> |
Felix Meschberger | eda237f | 2009-04-27 13:12:37 +0000 | [diff] [blame] | 22 | <artifactId>felix-parent</artifactId> |
| 23 | <version>1.2.0</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 24 | <relativePath>../pom/pom.xml</relativePath> |
| 25 | </parent> |
| 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <packaging>bundle</packaging> |
| 28 | <name>Apache Felix Declarative Services</name> |
| 29 | <description> |
| 30 | Implementation of the Declarative Services specification 1.0 |
| 31 | </description> |
| 32 | <artifactId>org.apache.felix.scr</artifactId> |
Felix Meschberger | 13f732e | 2009-04-29 08:58:54 +0000 | [diff] [blame] | 33 | <version>1.0.9-SNAPSHOT</version> |
Felix Meschberger | a2eafef | 2009-04-29 08:46:06 +0000 | [diff] [blame] | 34 | <scm> |
Felix Meschberger | 13f732e | 2009-04-29 08:58:54 +0000 | [diff] [blame] | 35 | <connection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scr</connection> |
| 36 | <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scr</developerConnection> |
| 37 | <url>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scr</url> |
Felix Meschberger | a2eafef | 2009-04-29 08:46:06 +0000 | [diff] [blame] | 38 | </scm> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 39 | <dependencies> |
| 40 | <dependency> |
Felix Meschberger | 21a301e | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 41 | <groupId>org.osgi</groupId> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 42 | <artifactId>org.osgi.core</artifactId> |
Felix Meschberger | 21a301e | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 43 | <version>4.1.0</version> |
Felix Meschberger | c8dbf48 | 2009-10-11 08:18:18 +0000 | [diff] [blame] | 44 | <scope>provided</scope> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 45 | </dependency> |
| 46 | <dependency> |
Felix Meschberger | 21a301e | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 47 | <groupId>org.osgi</groupId> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 48 | <artifactId>org.osgi.compendium</artifactId> |
Felix Meschberger | 21a301e | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 49 | <version>4.2.0</version> |
Felix Meschberger | c8dbf48 | 2009-10-11 08:18:18 +0000 | [diff] [blame] | 50 | <scope>provided</scope> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 51 | </dependency> |
| 52 | <dependency> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 53 | <groupId>${pom.groupId}</groupId> |
| 54 | <artifactId>org.apache.felix.shell</artifactId> |
| 55 | <version>1.0.0</version> |
Felix Meschberger | c8dbf48 | 2009-10-11 08:18:18 +0000 | [diff] [blame] | 56 | <scope>provided</scope> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 57 | </dependency> |
| 58 | <dependency> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 59 | <groupId>net.sf.kxml</groupId> |
| 60 | <artifactId>kxml2</artifactId> |
| 61 | <version>2.2.2</version> |
Felix Meschberger | c8dbf48 | 2009-10-11 08:18:18 +0000 | [diff] [blame] | 62 | <scope>provided</scope> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 63 | </dependency> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 64 | |
| 65 | <!-- Integration Testing with Pax Exam --> |
| 66 | <dependency> |
| 67 | <groupId>junit</groupId> |
| 68 | <artifactId>junit</artifactId> |
| 69 | <version>4.6</version> |
Felix Meschberger | c8dbf48 | 2009-10-11 08:18:18 +0000 | [diff] [blame] | 70 | <scope>test</scope> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.ops4j.pax.exam</groupId> |
| 74 | <artifactId>pax-exam</artifactId> |
| 75 | <version>0.6.0</version> |
| 76 | <scope>test</scope> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.ops4j.pax.exam</groupId> |
| 80 | <artifactId>pax-exam-junit</artifactId> |
| 81 | <version>0.6.0</version> |
| 82 | <scope>test</scope> |
| 83 | </dependency> |
| 84 | <dependency> |
| 85 | <groupId>org.ops4j.pax.exam</groupId> |
| 86 | <artifactId>pax-exam-container-default</artifactId> |
| 87 | <version>0.6.0</version> |
| 88 | <scope>test</scope> |
| 89 | </dependency> |
| 90 | <dependency> |
| 91 | <groupId>org.ops4j.pax.swissbox</groupId> |
| 92 | <artifactId>pax-swissbox-tinybundles</artifactId> |
| 93 | <version>1.0.0</version> |
| 94 | <scope>test</scope> |
| 95 | </dependency> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 96 | </dependencies> |
| 97 | <build> |
| 98 | <plugins> |
| 99 | <plugin> |
| 100 | <groupId>org.apache.felix</groupId> |
| 101 | <artifactId>maven-bundle-plugin</artifactId> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 102 | <extensions>true</extensions> |
| 103 | <configuration> |
| 104 | <instructions> |
| 105 | <Bundle-SymbolicName> |
| 106 | ${artifactId} |
| 107 | </Bundle-SymbolicName> |
Carsten Ziegeler | 90f0b9f | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 108 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Felix Meschberger | 0062b3c | 2009-10-11 12:25:14 +0000 | [diff] [blame] | 109 | <Bundle-DocURL> |
| 110 | http://felix.apache.org/site/apache-felix-service-component-runtime.html |
| 111 | </Bundle-DocURL> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 112 | <Bundle-Activator> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 113 | org.apache.felix.scr.impl.Activator |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 114 | </Bundle-Activator> |
| 115 | <Export-Package> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 116 | org.apache.felix.scr;version=${pom.version}, |
Felix Meschberger | 21a301e | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 117 | org.osgi.service.component |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 118 | </Export-Package> |
| 119 | <Private-Package> |
Felix Meschberger | 9aaf7c4 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 120 | org.apache.felix.scr.impl.*, |
| 121 | org.osgi.util.tracker |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 122 | </Private-Package> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 123 | <Import-Package> |
Felix Meschberger | 21a301e | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 124 | <!-- |
| 125 | The Felix Shell support is optional |
| 126 | --> |
Felix Meschberger | 9aaf7c4 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 127 | org.apache.felix.shell; resolution:=optional, |
Felix Meschberger | 21a301e | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 128 | |
| 129 | <!-- |
| 130 | Framework version 1.3 (from R4.0) is enough, |
| 131 | the Bundle.getBundleContext method is guarded |
| 132 | --> |
| 133 | org.osgi.framework;version=1.3, |
| 134 | |
| 135 | <!-- |
| 136 | Configuration Admin is optional and if it is |
| 137 | present, version 1.2 (from R4.0) is enough |
| 138 | --> |
| 139 | org.osgi.service.cm;version=1.2;resolution:=optional |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 140 | </Import-Package> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 141 | <DynamicImport-Package> |
| 142 | org.osgi.service.log |
| 143 | </DynamicImport-Package> |
Felix Meschberger | 9aaf7c4 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 144 | <Embed-Dependency> |
| 145 | kxml2 |
| 146 | </Embed-Dependency> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 147 | </instructions> |
| 148 | </configuration> |
| 149 | </plugin> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 150 | |
| 151 | <!-- |
| 152 | configure default compilation for Java 1.3 and integration |
| 153 | test compilation for Java 5 (since integration tests use |
| 154 | Java Annotations for Pax Exam) |
| 155 | --> |
| 156 | <plugin> |
| 157 | <artifactId>maven-compiler-plugin</artifactId> |
| 158 | <executions> |
| 159 | <execution> |
| 160 | <id>test-compile-java5</id> |
| 161 | <goals> |
| 162 | <goal>testCompile</goal> |
| 163 | </goals> |
| 164 | <configuration> |
| 165 | <source>1.5</source> |
| 166 | <target>1.5</target> |
| 167 | <testIncludes> |
| 168 | <testInclude>**/integration/**</testInclude> |
| 169 | </testIncludes> |
| 170 | <testExcludes> |
| 171 | <testExclude>**/impl/**</testExclude> |
| 172 | </testExcludes> |
| 173 | </configuration> |
| 174 | </execution> |
| 175 | </executions> |
| 176 | <configuration> |
| 177 | <testExcludes> |
| 178 | <testExclude>**/integration/**</testExclude> |
| 179 | </testExcludes> |
| 180 | </configuration> |
| 181 | </plugin> |
| 182 | |
Felix Meschberger | 680786b | 2009-08-21 11:35:00 +0000 | [diff] [blame] | 183 | <!-- Provide bundle for integration tests --> |
| 184 | <plugin> |
| 185 | <artifactId>maven-antrun-plugin</artifactId> |
| 186 | <version>1.3</version> |
| 187 | <executions> |
| 188 | <execution> |
| 189 | <id>configadmin-file-create</id> |
| 190 | <phase>pre-integration-test</phase> |
| 191 | <goals> |
| 192 | <goal>run</goal> |
| 193 | </goals> |
| 194 | <configuration> |
| 195 | <tasks> |
| 196 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/scr.jar" /> |
| 197 | </tasks> |
| 198 | </configuration> |
| 199 | </execution> |
| 200 | <execution> |
| 201 | <id>configadmin-file-remove</id> |
| 202 | <phase>post-integration-test</phase> |
| 203 | <goals> |
| 204 | <goal>run</goal> |
| 205 | </goals> |
| 206 | <configuration> |
| 207 | <tasks> |
| 208 | <delete file="${project.build.directory}/configadmin.jar" /> |
| 209 | </tasks> |
| 210 | </configuration> |
| 211 | </execution> |
| 212 | </executions> |
| 213 | </plugin> |
| 214 | |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 215 | <!-- |
| 216 | Exclude Integration tests in (default) unit tests and |
| 217 | conversely enable integration tests for integration testing |
| 218 | only. Helper classes are completely excluded from testing. |
| 219 | --> |
| 220 | <plugin> |
| 221 | <artifactId>maven-surefire-plugin</artifactId> |
| 222 | <executions> |
| 223 | <execution> |
| 224 | <id>surefire-it</id> |
| 225 | <phase>integration-test</phase> |
| 226 | <goals> |
| 227 | <goal>test</goal> |
| 228 | </goals> |
| 229 | <configuration> |
| 230 | <excludes> |
| 231 | <exclude>**/components/**</exclude> |
| 232 | </excludes> |
| 233 | <includes> |
| 234 | <include>**/integration/*</include> |
| 235 | </includes> |
| 236 | </configuration> |
| 237 | </execution> |
| 238 | </executions> |
| 239 | <configuration> |
| 240 | <excludes> |
| 241 | <exclude>**/integration/**</exclude> |
| 242 | <exclude>**/components/**</exclude> |
| 243 | <exclude>**/instances/**</exclude> |
| 244 | <exclude>**/instances2/**</exclude> |
| 245 | </excludes> |
| 246 | </configuration> |
| 247 | </plugin> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 248 | </plugins> |
| 249 | </build> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 250 | |
| 251 | <!-- repositories for Pax Exam and BND tool --> |
| 252 | <repositories> |
| 253 | <repository> |
| 254 | <id>ops4j</id> |
| 255 | <name>ops4j</name> |
| 256 | <url>http://repository.ops4j.org/maven2</url> |
| 257 | <snapshots> |
| 258 | <enabled>false</enabled> |
| 259 | </snapshots> |
| 260 | </repository> |
| 261 | <repository> |
| 262 | <id>aqute</id> |
| 263 | <name>aqute</name> |
| 264 | <url>http://www.aqute.biz/repo</url> |
| 265 | <snapshots> |
| 266 | <enabled>false</enabled> |
| 267 | </snapshots> |
| 268 | </repository> |
| 269 | </repositories> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 270 | </project> |