blob: b4487f5010414c9e38b3b99adf96d28d1fd0b352 [file] [log] [blame]
Carsten Ziegelerb61fe0e2008-01-03 09:24:12 +00001<!--
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 Ziegeler4fec0962008-01-11 16:13:31 +000019<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 Pauls589e2b32007-07-11 18:29:29 +000020 <parent>
21 <groupId>org.apache.felix</groupId>
Felix Meschbergereda237f2009-04-27 13:12:37 +000022 <artifactId>felix-parent</artifactId>
23 <version>1.2.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000024 <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 Meschberger13f732e2009-04-29 08:58:54 +000033 <version>1.0.9-SNAPSHOT</version>
Felix Meschbergera2eafef2009-04-29 08:46:06 +000034 <scm>
Felix Meschberger13f732e2009-04-29 08:58:54 +000035 <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 Meschbergera2eafef2009-04-29 08:46:06 +000038 </scm>
Karl Pauls589e2b32007-07-11 18:29:29 +000039 <dependencies>
40 <dependency>
41 <groupId>${pom.groupId}</groupId>
42 <artifactId>org.osgi.core</artifactId>
Felix Meschberger644283d2007-08-22 15:28:05 +000043 <version>1.0.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000044 </dependency>
45 <dependency>
46 <groupId>${pom.groupId}</groupId>
47 <artifactId>org.osgi.compendium</artifactId>
Carsten Ziegelerc340ecf2008-01-28 07:21:59 +000048 <version>1.0.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000049 </dependency>
50 <dependency>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +000051 <groupId>${pom.groupId}</groupId>
52 <artifactId>org.apache.felix.shell</artifactId>
53 <version>1.0.0</version>
54 </dependency>
55 <dependency>
Karl Pauls589e2b32007-07-11 18:29:29 +000056 <groupId>net.sf.kxml</groupId>
57 <artifactId>kxml2</artifactId>
58 <version>2.2.2</version>
59 </dependency>
Felix Meschberger8c64e852009-07-28 13:48:28 +000060
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 Pauls589e2b32007-07-11 18:29:29 +000091 </dependencies>
92 <build>
93 <plugins>
94 <plugin>
95 <groupId>org.apache.felix</groupId>
96 <artifactId>maven-bundle-plugin</artifactId>
Stuart McCulloch876ca722008-02-26 17:15:42 +000097 <version>1.4.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000098 <extensions>true</extensions>
99 <configuration>
100 <instructions>
101 <Bundle-SymbolicName>
102 ${artifactId}
103 </Bundle-SymbolicName>
Carsten Ziegeler90f0b9f2008-04-17 06:33:59 +0000104 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Karl Pauls589e2b32007-07-11 18:29:29 +0000105 <Bundle-Activator>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000106 org.apache.felix.scr.impl.Activator
Karl Pauls589e2b32007-07-11 18:29:29 +0000107 </Bundle-Activator>
108 <Export-Package>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000109 org.apache.felix.scr;version=${pom.version},
Felix Meschberger9aaf7c42009-07-09 12:34:12 +0000110 org.osgi.service.component;version=1.0;-split-package:=merge-first
Karl Pauls589e2b32007-07-11 18:29:29 +0000111 </Export-Package>
112 <Private-Package>
Felix Meschberger9aaf7c42009-07-09 12:34:12 +0000113 org.apache.felix.scr.impl.*,
114 org.osgi.util.tracker
Karl Pauls589e2b32007-07-11 18:29:29 +0000115 </Private-Package>
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000116 <Import-Package>
Felix Meschberger9aaf7c42009-07-09 12:34:12 +0000117 org.osgi.service.cm;
118 org.apache.felix.shell; resolution:=optional,
119 *
Felix Meschbergerd25a63d2007-11-23 13:02:49 +0000120 </Import-Package>
Karl Pauls589e2b32007-07-11 18:29:29 +0000121 <DynamicImport-Package>
122 org.osgi.service.log
123 </DynamicImport-Package>
Felix Meschberger9aaf7c42009-07-09 12:34:12 +0000124 <Embed-Dependency>
125 kxml2
126 </Embed-Dependency>
Karl Pauls589e2b32007-07-11 18:29:29 +0000127 </instructions>
128 </configuration>
129 </plugin>
Felix Meschberger8c64e852009-07-28 13:48:28 +0000130
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 Meschberger680786b2009-08-21 11:35:00 +0000163 <!-- 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 Meschberger8c64e852009-07-28 13:48:28 +0000195 <!--
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 Pauls589e2b32007-07-11 18:29:29 +0000228 </plugins>
229 </build>
Felix Meschberger8c64e852009-07-28 13:48:28 +0000230
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 Pauls589e2b32007-07-11 18:29:29 +0000250</project>