blob: ce4b8497d0390d043fa5bc3cf5494b2027f1a010 [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 Meschbergera4ad70a2009-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 Meschbergerc9f07c32009-04-29 08:58:54 +000033 <version>1.0.9-SNAPSHOT</version>
Felix Meschberger4753fcb2009-04-29 08:46:06 +000034 <scm>
Felix Meschbergerc9f07c32009-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 Meschberger4753fcb2009-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 Meschberger47eb0372009-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 Ziegelercf6e51b2008-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 Meschberger9b4e0232009-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 Meschberger9b4e0232009-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 Meschberger9b4e0232009-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 Meschberger9b4e0232009-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 Meschberger47eb0372009-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
163 <!--
164 Exclude Integration tests in (default) unit tests and
165 conversely enable integration tests for integration testing
166 only. Helper classes are completely excluded from testing.
167 -->
168 <plugin>
169 <artifactId>maven-surefire-plugin</artifactId>
170 <executions>
171 <execution>
172 <id>surefire-it</id>
173 <phase>integration-test</phase>
174 <goals>
175 <goal>test</goal>
176 </goals>
177 <configuration>
178 <excludes>
179 <exclude>**/components/**</exclude>
180 </excludes>
181 <includes>
182 <include>**/integration/*</include>
183 </includes>
184 </configuration>
185 </execution>
186 </executions>
187 <configuration>
188 <excludes>
189 <exclude>**/integration/**</exclude>
190 <exclude>**/components/**</exclude>
191 <exclude>**/instances/**</exclude>
192 <exclude>**/instances2/**</exclude>
193 </excludes>
194 </configuration>
195 </plugin>
Karl Pauls589e2b32007-07-11 18:29:29 +0000196 </plugins>
197 </build>
Felix Meschberger47eb0372009-07-28 13:48:28 +0000198
199 <!-- repositories for Pax Exam and BND tool -->
200 <repositories>
201 <repository>
202 <id>ops4j</id>
203 <name>ops4j</name>
204 <url>http://repository.ops4j.org/maven2</url>
205 <snapshots>
206 <enabled>false</enabled>
207 </snapshots>
208 </repository>
209 <repository>
210 <id>aqute</id>
211 <name>aqute</name>
212 <url>http://www.aqute.biz/repo</url>
213 <snapshots>
214 <enabled>false</enabled>
215 </snapshots>
216 </repository>
217 </repositories>
Karl Pauls589e2b32007-07-11 18:29:29 +0000218</project>