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> |
| 41 | <groupId>${pom.groupId}</groupId> |
| 42 | <artifactId>org.osgi.core</artifactId> |
Felix Meschberger | 644283d | 2007-08-22 15:28:05 +0000 | [diff] [blame] | 43 | <version>1.0.0</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 44 | </dependency> |
| 45 | <dependency> |
| 46 | <groupId>${pom.groupId}</groupId> |
| 47 | <artifactId>org.osgi.compendium</artifactId> |
Carsten Ziegeler | c340ecf | 2008-01-28 07:21:59 +0000 | [diff] [blame] | 48 | <version>1.0.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 | 9b4e023 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 110 | org.osgi.service.component;version=1.0;-split-package:=merge-first |
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 | 9b4e023 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 117 | org.osgi.service.cm; |
| 118 | org.apache.felix.shell; resolution:=optional, |
| 119 | * |
Felix Meschberger | d25a63d | 2007-11-23 13:02:49 +0000 | [diff] [blame] | 120 | </Import-Package> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 121 | <DynamicImport-Package> |
| 122 | org.osgi.service.log |
| 123 | </DynamicImport-Package> |
Felix Meschberger | 9b4e023 | 2009-07-09 12:34:12 +0000 | [diff] [blame] | 124 | <Embed-Dependency> |
| 125 | kxml2 |
| 126 | </Embed-Dependency> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 127 | </instructions> |
| 128 | </configuration> |
| 129 | </plugin> |
Felix Meschberger | 47eb037 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 130 | |
| 131 | <!-- |
| 132 | configure default compilation for Java 1.3 and integration |
| 133 | test compilation for Java 5 (since integration tests use |
| 134 | Java Annotations for Pax Exam) |
| 135 | --> |
| 136 | <plugin> |
| 137 | <artifactId>maven-compiler-plugin</artifactId> |
| 138 | <executions> |
| 139 | <execution> |
| 140 | <id>test-compile-java5</id> |
| 141 | <goals> |
| 142 | <goal>testCompile</goal> |
| 143 | </goals> |
| 144 | <configuration> |
| 145 | <source>1.5</source> |
| 146 | <target>1.5</target> |
| 147 | <testIncludes> |
| 148 | <testInclude>**/integration/**</testInclude> |
| 149 | </testIncludes> |
| 150 | <testExcludes> |
| 151 | <testExclude>**/impl/**</testExclude> |
| 152 | </testExcludes> |
| 153 | </configuration> |
| 154 | </execution> |
| 155 | </executions> |
| 156 | <configuration> |
| 157 | <testExcludes> |
| 158 | <testExclude>**/integration/**</testExclude> |
| 159 | </testExcludes> |
| 160 | </configuration> |
| 161 | </plugin> |
| 162 | |
Felix Meschberger | 2e88542 | 2009-08-21 11:35:00 +0000 | [diff] [blame] | 163 | <!-- Provide bundle for integration tests --> |
| 164 | <plugin> |
| 165 | <artifactId>maven-antrun-plugin</artifactId> |
| 166 | <version>1.3</version> |
| 167 | <executions> |
| 168 | <execution> |
| 169 | <id>configadmin-file-create</id> |
| 170 | <phase>pre-integration-test</phase> |
| 171 | <goals> |
| 172 | <goal>run</goal> |
| 173 | </goals> |
| 174 | <configuration> |
| 175 | <tasks> |
| 176 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/scr.jar" /> |
| 177 | </tasks> |
| 178 | </configuration> |
| 179 | </execution> |
| 180 | <execution> |
| 181 | <id>configadmin-file-remove</id> |
| 182 | <phase>post-integration-test</phase> |
| 183 | <goals> |
| 184 | <goal>run</goal> |
| 185 | </goals> |
| 186 | <configuration> |
| 187 | <tasks> |
| 188 | <delete file="${project.build.directory}/configadmin.jar" /> |
| 189 | </tasks> |
| 190 | </configuration> |
| 191 | </execution> |
| 192 | </executions> |
| 193 | </plugin> |
| 194 | |
Felix Meschberger | 47eb037 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 195 | <!-- |
| 196 | Exclude Integration tests in (default) unit tests and |
| 197 | conversely enable integration tests for integration testing |
| 198 | only. Helper classes are completely excluded from testing. |
| 199 | --> |
| 200 | <plugin> |
| 201 | <artifactId>maven-surefire-plugin</artifactId> |
| 202 | <executions> |
| 203 | <execution> |
| 204 | <id>surefire-it</id> |
| 205 | <phase>integration-test</phase> |
| 206 | <goals> |
| 207 | <goal>test</goal> |
| 208 | </goals> |
| 209 | <configuration> |
| 210 | <excludes> |
| 211 | <exclude>**/components/**</exclude> |
| 212 | </excludes> |
| 213 | <includes> |
| 214 | <include>**/integration/*</include> |
| 215 | </includes> |
| 216 | </configuration> |
| 217 | </execution> |
| 218 | </executions> |
| 219 | <configuration> |
| 220 | <excludes> |
| 221 | <exclude>**/integration/**</exclude> |
| 222 | <exclude>**/components/**</exclude> |
| 223 | <exclude>**/instances/**</exclude> |
| 224 | <exclude>**/instances2/**</exclude> |
| 225 | </excludes> |
| 226 | </configuration> |
| 227 | </plugin> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 228 | </plugins> |
| 229 | </build> |
Felix Meschberger | 47eb037 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 230 | |
| 231 | <!-- repositories for Pax Exam and BND tool --> |
| 232 | <repositories> |
| 233 | <repository> |
| 234 | <id>ops4j</id> |
| 235 | <name>ops4j</name> |
| 236 | <url>http://repository.ops4j.org/maven2</url> |
| 237 | <snapshots> |
| 238 | <enabled>false</enabled> |
| 239 | </snapshots> |
| 240 | </repository> |
| 241 | <repository> |
| 242 | <id>aqute</id> |
| 243 | <name>aqute</name> |
| 244 | <url>http://www.aqute.biz/repo</url> |
| 245 | <snapshots> |
| 246 | <enabled>false</enabled> |
| 247 | </snapshots> |
| 248 | </repository> |
| 249 | </repositories> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 250 | </project> |