blob: f9368f3907e6c0c9a013f1a2298d807883c154e2 [file] [log] [blame]
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +00001<?xml version="1.0" encoding="UTF-8"?>
Carsten Ziegeler3a66ebc2007-07-11 10:46:36 +00002<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
Carsten Ziegeler4fec0962008-01-11 16:13:31 +000020<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">
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000021 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.apache.felix</groupId>
Felix Meschberger0ad13792009-08-20 10:34:17 +000024 <artifactId>felix-parent</artifactId>
25 <version>1.2.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000026 <relativePath>../pom/pom.xml</relativePath>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000027 </parent>
28
Felix Meschbergerfdb360f2007-04-11 18:51:16 +000029 <artifactId>org.apache.felix.configadmin</artifactId>
Felix Meschbergeraffab192009-08-31 19:37:44 +000030 <version>1.2.7-SNAPSHOT</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000031 <packaging>bundle</packaging>
32
33 <name>Apache Felix Configuration Admin Service</name>
34 <description>
35 Implementation of the OSGi Configuration Admin Service Specification 1.2
36 </description>
37
38 <dependencies>
39 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000040 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000041 <artifactId>org.osgi.core</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000042 <version>4.0.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000043 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000044 </dependency>
45 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000046 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000047 <artifactId>org.osgi.compendium</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000048 <version>4.2.0</version>
Felix Meschbergera37988a2010-03-06 18:04:38 +000049 <scope>provided</scope>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000050 </dependency>
Felix Meschberger819d0b72009-08-14 15:35:27 +000051
52 <!-- Integration Testing with Pax Exam -->
53 <dependency>
54 <groupId>junit</groupId>
55 <artifactId>junit</artifactId>
56 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +000057 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +000058 </dependency>
59 <dependency>
60 <groupId>org.ops4j.pax.exam</groupId>
61 <artifactId>pax-exam</artifactId>
62 <version>0.6.0</version>
63 <scope>test</scope>
64 </dependency>
65 <dependency>
66 <groupId>org.ops4j.pax.exam</groupId>
67 <artifactId>pax-exam-junit</artifactId>
68 <version>0.6.0</version>
69 <scope>test</scope>
70 </dependency>
71 <dependency>
72 <groupId>org.ops4j.pax.exam</groupId>
73 <artifactId>pax-exam-container-default</artifactId>
74 <version>0.6.0</version>
75 <scope>test</scope>
76 </dependency>
77 <dependency>
78 <groupId>org.ops4j.pax.swissbox</groupId>
79 <artifactId>pax-swissbox-tinybundles</artifactId>
80 <version>1.0.0</version>
81 <scope>test</scope>
82 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000083 </dependencies>
84
85 <build>
86 <plugins>
87 <plugin>
88 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000089 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschbergera37988a2010-03-06 18:04:38 +000090 <version>2.0.1</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000091 <extensions>true</extensions>
92 <configuration>
93 <instructions>
94 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +000095 <Bundle-SymbolicName>
96 ${artifactId}
97 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +000098 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000099 <Export-Package>
Felix Meschberger432e3872008-03-07 14:58:57 +0000100 org.apache.felix.cm;
101 org.apache.felix.cm.file;version=1.0,
Felix Meschberger6f13aa22009-09-17 13:11:21 +0000102 org.osgi.service.cm
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000103 </Export-Package>
104 <Private-Package>
Felix Meschbergeree867402008-06-13 08:33:54 +0000105 org.apache.felix.cm.impl,
106 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000107 </Private-Package>
108 <Bundle-Activator>
109 org.apache.felix.cm.impl.ConfigurationManager
110 </Bundle-Activator>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000111 <DynamicImport-Package>
112 org.osgi.service.log
113 </DynamicImport-Package>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000114 </instructions>
115 </configuration>
116 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000117 <!--
118 configure default compilation for Java 1.3 and integration
119 test compilation for Java 5 (since integration tests use
120 Java Annotations for Pax Exam)
121 -->
122 <plugin>
123 <artifactId>maven-compiler-plugin</artifactId>
124 <executions>
125 <execution>
126 <id>test-compile-java5</id>
127 <goals>
128 <goal>testCompile</goal>
129 </goals>
130 <configuration>
131 <source>1.5</source>
132 <target>1.5</target>
133 <testExcludes>
134 <testExclude>**/cm/*</testExclude>
135 <testExclude>**/cm/file/*</testExclude>
136 <testExclude>**/cm/impl/**</testExclude>
137 </testExcludes>
138 <testIncludes>
139 <testInclude>**/integration/**</testInclude>
140 </testIncludes>
141 </configuration>
142 </execution>
143 </executions>
144 <configuration>
145 <testExcludes>
146 <testExclude>**/integration/**</testExclude>
147 </testExcludes>
148 </configuration>
149 </plugin>
150
Felix Meschberger13e91512009-08-20 11:23:32 +0000151 <!-- Provide bundle for integration tests -->
152 <plugin>
153 <artifactId>maven-antrun-plugin</artifactId>
154 <version>1.3</version>
155 <executions>
156 <execution>
157 <id>configadmin-file-create</id>
158 <phase>pre-integration-test</phase>
159 <goals>
160 <goal>run</goal>
161 </goals>
162 <configuration>
163 <tasks>
Felix Meschberger186cdd52009-08-21 07:28:02 +0000164 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
Felix Meschberger13e91512009-08-20 11:23:32 +0000165 </tasks>
166 </configuration>
167 </execution>
168 <execution>
169 <id>configadmin-file-remove</id>
170 <phase>post-integration-test</phase>
171 <goals>
172 <goal>run</goal>
173 </goals>
174 <configuration>
175 <tasks>
Felix Meschberger186cdd52009-08-21 07:28:02 +0000176 <delete file="${project.build.directory}/configadmin.jar" />
Felix Meschberger13e91512009-08-20 11:23:32 +0000177 </tasks>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182
Felix Meschberger819d0b72009-08-14 15:35:27 +0000183 <!--
184 Exclude Integration tests in (default) unit tests and
185 conversely enable integration tests for integration testing
186 only. Helper classes are completely excluded from testing.
187 -->
188 <plugin>
189 <artifactId>maven-surefire-plugin</artifactId>
190 <executions>
191 <execution>
192 <id>surefire-it</id>
193 <phase>integration-test</phase>
194 <goals>
195 <goal>test</goal>
196 </goals>
197 <configuration>
198 <excludes>
199 <exclude>**/cm/*</exclude>
200 <exclude>**/cm/file/*</exclude>
201 <exclude>**/cm/impl/**</exclude>
202 </excludes>
203 <includes>
204 <include>**/integration/*</include>
205 </includes>
206 </configuration>
207 </execution>
208 </executions>
209 <configuration>
210 <excludes>
211 <exclude>**/integration/**</exclude>
212 </excludes>
213 </configuration>
214 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000215 </plugins>
216 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000217
218 <!-- repositories for Pax Exam and BND tool -->
219 <repositories>
220 <repository>
221 <id>ops4j</id>
222 <name>ops4j</name>
223 <url>http://repository.ops4j.org/maven2</url>
224 <snapshots>
225 <enabled>false</enabled>
226 </snapshots>
227 </repository>
228 <repository>
229 <id>aqute</id>
230 <name>aqute</name>
231 <url>http://www.aqute.biz/repo</url>
232 <snapshots>
233 <enabled>false</enabled>
234 </snapshots>
235 </repository>
236 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000237</project>