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 | a4ad70a | 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 | c9f07c3 | 2009-04-29 08:58:54 +0000 | [diff] [blame] | 33 | <version>1.0.9-SNAPSHOT</version> |
Felix Meschberger | 4753fcb | 2009-04-29 08:46:06 +0000 | [diff] [blame] | 34 | <scm> |
Felix Meschberger | c9f07c3 | 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 | 4753fcb | 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 | ca79792 | 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 | ca79792 | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 43 | <version>4.1.0</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 44 | </dependency> |
| 45 | <dependency> |
Felix Meschberger | ca79792 | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 46 | <groupId>org.osgi</groupId> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 47 | <artifactId>org.osgi.compendium</artifactId> |
Felix Meschberger | ca79792 | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 48 | <version>4.2.0</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 49 | </dependency> |
| 50 | <dependency> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 51 | <groupId>${pom.groupId}</groupId> |
| 52 | <artifactId>org.apache.felix.shell</artifactId> |
| 53 | <version>1.0.0</version> |
| 54 | </dependency> |
| 55 | <dependency> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 56 | <groupId>net.sf.kxml</groupId> |
| 57 | <artifactId>kxml2</artifactId> |
| 58 | <version>2.2.2</version> |
| 59 | </dependency> |
Felix Meschberger | 47eb037 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 60 | |
| 61 | <!-- Integration Testing with Pax Exam --> |
| 62 | <dependency> |
| 63 | <groupId>junit</groupId> |
| 64 | <artifactId>junit</artifactId> |
| 65 | <version>4.6</version> |
| 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>org.ops4j.pax.exam</groupId> |
| 69 | <artifactId>pax-exam</artifactId> |
| 70 | <version>0.6.0</version> |
| 71 | <scope>test</scope> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>org.ops4j.pax.exam</groupId> |
| 75 | <artifactId>pax-exam-junit</artifactId> |
| 76 | <version>0.6.0</version> |
| 77 | <scope>test</scope> |
| 78 | </dependency> |
| 79 | <dependency> |
| 80 | <groupId>org.ops4j.pax.exam</groupId> |
| 81 | <artifactId>pax-exam-container-default</artifactId> |
| 82 | <version>0.6.0</version> |
| 83 | <scope>test</scope> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>org.ops4j.pax.swissbox</groupId> |
| 87 | <artifactId>pax-swissbox-tinybundles</artifactId> |
| 88 | <version>1.0.0</version> |
| 89 | <scope>test</scope> |
| 90 | </dependency> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 91 | </dependencies> |
| 92 | <build> |
| 93 | <plugins> |
| 94 | <plugin> |
| 95 | <groupId>org.apache.felix</groupId> |
| 96 | <artifactId>maven-bundle-plugin</artifactId> |
Stuart McCulloch | 876ca72 | 2008-02-26 17:15:42 +0000 | [diff] [blame] | 97 | <version>1.4.0</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 98 | <extensions>true</extensions> |
| 99 | <configuration> |
| 100 | <instructions> |
| 101 | <Bundle-SymbolicName> |
| 102 | ${artifactId} |
| 103 | </Bundle-SymbolicName> |
Carsten Ziegeler | cf6e51b | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 104 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 105 | <Bundle-Activator> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 106 | org.apache.felix.scr.impl.Activator |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 107 | </Bundle-Activator> |
| 108 | <Export-Package> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 109 | org.apache.felix.scr;version=${pom.version}, |
Felix Meschberger | ca79792 | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 110 | org.osgi.service.component |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 111 | </Export-Package> |
| 112 | <Private-Package> |
Felix Meschberger | 9b4e023 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 113 | org.apache.felix.scr.impl.*, |
| 114 | org.osgi.util.tracker |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 115 | </Private-Package> |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 116 | <Import-Package> |
Felix Meschberger | ca79792 | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 117 | <!-- |
| 118 | The Felix Shell support is optional |
| 119 | --> |
Felix Meschberger | 9b4e023 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 120 | org.apache.felix.shell; resolution:=optional, |
Felix Meschberger | ca79792 | 2009-10-07 08:38:18 +0000 | [diff] [blame] | 121 | |
| 122 | <!-- |
| 123 | Framework version 1.3 (from R4.0) is enough, |
| 124 | the Bundle.getBundleContext method is guarded |
| 125 | --> |
| 126 | org.osgi.framework;version=1.3, |
| 127 | |
| 128 | <!-- |
| 129 | Configuration Admin is optional and if it is |
| 130 | present, version 1.2 (from R4.0) is enough |
| 131 | --> |
| 132 | org.osgi.service.cm;version=1.2;resolution:=optional |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 133 | </Import-Package> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 134 | <DynamicImport-Package> |
| 135 | org.osgi.service.log |
| 136 | </DynamicImport-Package> |
Felix Meschberger | 9b4e023 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 137 | <Embed-Dependency> |
| 138 | kxml2 |
| 139 | </Embed-Dependency> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 140 | </instructions> |
| 141 | </configuration> |
| 142 | </plugin> |
Felix Meschberger | 47eb037 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 143 | |
| 144 | <!-- |
| 145 | configure default compilation for Java 1.3 and integration |
| 146 | test compilation for Java 5 (since integration tests use |
| 147 | Java Annotations for Pax Exam) |
| 148 | --> |
| 149 | <plugin> |
| 150 | <artifactId>maven-compiler-plugin</artifactId> |
| 151 | <executions> |
| 152 | <execution> |
| 153 | <id>test-compile-java5</id> |
| 154 | <goals> |
| 155 | <goal>testCompile</goal> |
| 156 | </goals> |
| 157 | <configuration> |
| 158 | <source>1.5</source> |
| 159 | <target>1.5</target> |
| 160 | <testIncludes> |
| 161 | <testInclude>**/integration/**</testInclude> |
| 162 | </testIncludes> |
| 163 | <testExcludes> |
| 164 | <testExclude>**/impl/**</testExclude> |
| 165 | </testExcludes> |
| 166 | </configuration> |
| 167 | </execution> |
| 168 | </executions> |
| 169 | <configuration> |
| 170 | <testExcludes> |
| 171 | <testExclude>**/integration/**</testExclude> |
| 172 | </testExcludes> |
| 173 | </configuration> |
| 174 | </plugin> |
| 175 | |
Felix Meschberger | 2e88542 | 2009-08-21 11:35:00 +0000 | [diff] [blame] | 176 | <!-- Provide bundle for integration tests --> |
| 177 | <plugin> |
| 178 | <artifactId>maven-antrun-plugin</artifactId> |
| 179 | <version>1.3</version> |
| 180 | <executions> |
| 181 | <execution> |
| 182 | <id>configadmin-file-create</id> |
| 183 | <phase>pre-integration-test</phase> |
| 184 | <goals> |
| 185 | <goal>run</goal> |
| 186 | </goals> |
| 187 | <configuration> |
| 188 | <tasks> |
| 189 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/scr.jar" /> |
| 190 | </tasks> |
| 191 | </configuration> |
| 192 | </execution> |
| 193 | <execution> |
| 194 | <id>configadmin-file-remove</id> |
| 195 | <phase>post-integration-test</phase> |
| 196 | <goals> |
| 197 | <goal>run</goal> |
| 198 | </goals> |
| 199 | <configuration> |
| 200 | <tasks> |
| 201 | <delete file="${project.build.directory}/configadmin.jar" /> |
| 202 | </tasks> |
| 203 | </configuration> |
| 204 | </execution> |
| 205 | </executions> |
| 206 | </plugin> |
| 207 | |
Felix Meschberger | 47eb037 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 208 | <!-- |
| 209 | Exclude Integration tests in (default) unit tests and |
| 210 | conversely enable integration tests for integration testing |
| 211 | only. Helper classes are completely excluded from testing. |
| 212 | --> |
| 213 | <plugin> |
| 214 | <artifactId>maven-surefire-plugin</artifactId> |
| 215 | <executions> |
| 216 | <execution> |
| 217 | <id>surefire-it</id> |
| 218 | <phase>integration-test</phase> |
| 219 | <goals> |
| 220 | <goal>test</goal> |
| 221 | </goals> |
| 222 | <configuration> |
| 223 | <excludes> |
| 224 | <exclude>**/components/**</exclude> |
| 225 | </excludes> |
| 226 | <includes> |
| 227 | <include>**/integration/*</include> |
| 228 | </includes> |
| 229 | </configuration> |
| 230 | </execution> |
| 231 | </executions> |
| 232 | <configuration> |
| 233 | <excludes> |
| 234 | <exclude>**/integration/**</exclude> |
| 235 | <exclude>**/components/**</exclude> |
| 236 | <exclude>**/instances/**</exclude> |
| 237 | <exclude>**/instances2/**</exclude> |
| 238 | </excludes> |
| 239 | </configuration> |
| 240 | </plugin> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 241 | </plugins> |
| 242 | </build> |
Felix Meschberger | 47eb037 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 243 | |
| 244 | <!-- repositories for Pax Exam and BND tool --> |
| 245 | <repositories> |
| 246 | <repository> |
| 247 | <id>ops4j</id> |
| 248 | <name>ops4j</name> |
| 249 | <url>http://repository.ops4j.org/maven2</url> |
| 250 | <snapshots> |
| 251 | <enabled>false</enabled> |
| 252 | </snapshots> |
| 253 | </repository> |
| 254 | <repository> |
| 255 | <id>aqute</id> |
| 256 | <name>aqute</name> |
| 257 | <url>http://www.aqute.biz/repo</url> |
| 258 | <snapshots> |
| 259 | <enabled>false</enabled> |
| 260 | </snapshots> |
| 261 | </repository> |
| 262 | </repositories> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 263 | </project> |