blob: 70ad9f742084dc2ebc632bf1ce0468c37978dced [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 Meschbergeradd2b4a2007-04-11 18:12:33 +000043 </dependency>
44 <dependency>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000045 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000046 <artifactId>org.osgi.compendium</artifactId>
Felix Meschberger6f13aa22009-09-17 13:11:21 +000047 <version>4.2.0</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000048 </dependency>
Felix Meschberger819d0b72009-08-14 15:35:27 +000049
50 <!-- Integration Testing with Pax Exam -->
51 <dependency>
52 <groupId>junit</groupId>
53 <artifactId>junit</artifactId>
54 <version>4.6</version>
Felix Meschbergerb93eea92010-03-06 17:56:13 +000055 <scope>test</scope>
Felix Meschberger819d0b72009-08-14 15:35:27 +000056 </dependency>
57 <dependency>
58 <groupId>org.ops4j.pax.exam</groupId>
59 <artifactId>pax-exam</artifactId>
60 <version>0.6.0</version>
61 <scope>test</scope>
62 </dependency>
63 <dependency>
64 <groupId>org.ops4j.pax.exam</groupId>
65 <artifactId>pax-exam-junit</artifactId>
66 <version>0.6.0</version>
67 <scope>test</scope>
68 </dependency>
69 <dependency>
70 <groupId>org.ops4j.pax.exam</groupId>
71 <artifactId>pax-exam-container-default</artifactId>
72 <version>0.6.0</version>
73 <scope>test</scope>
74 </dependency>
75 <dependency>
76 <groupId>org.ops4j.pax.swissbox</groupId>
77 <artifactId>pax-swissbox-tinybundles</artifactId>
78 <version>1.0.0</version>
79 <scope>test</scope>
80 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000081 </dependencies>
82
83 <build>
84 <plugins>
85 <plugin>
86 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000087 <artifactId>maven-bundle-plugin</artifactId>
Stuart McCulloch876ca722008-02-26 17:15:42 +000088 <version>1.4.0</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000089 <extensions>true</extensions>
90 <configuration>
91 <instructions>
92 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +000093 <Bundle-SymbolicName>
94 ${artifactId}
95 </Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +000096 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000097 <Export-Package>
Felix Meschberger432e3872008-03-07 14:58:57 +000098 org.apache.felix.cm;
99 org.apache.felix.cm.file;version=1.0,
Felix Meschberger6f13aa22009-09-17 13:11:21 +0000100 org.osgi.service.cm
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000101 </Export-Package>
102 <Private-Package>
Felix Meschbergeree867402008-06-13 08:33:54 +0000103 org.apache.felix.cm.impl,
104 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000105 </Private-Package>
106 <Bundle-Activator>
107 org.apache.felix.cm.impl.ConfigurationManager
108 </Bundle-Activator>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000109 <DynamicImport-Package>
110 org.osgi.service.log
111 </DynamicImport-Package>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000112 </instructions>
113 </configuration>
114 </plugin>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000115 <!--
116 configure default compilation for Java 1.3 and integration
117 test compilation for Java 5 (since integration tests use
118 Java Annotations for Pax Exam)
119 -->
120 <plugin>
121 <artifactId>maven-compiler-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>test-compile-java5</id>
125 <goals>
126 <goal>testCompile</goal>
127 </goals>
128 <configuration>
129 <source>1.5</source>
130 <target>1.5</target>
131 <testExcludes>
132 <testExclude>**/cm/*</testExclude>
133 <testExclude>**/cm/file/*</testExclude>
134 <testExclude>**/cm/impl/**</testExclude>
135 </testExcludes>
136 <testIncludes>
137 <testInclude>**/integration/**</testInclude>
138 </testIncludes>
139 </configuration>
140 </execution>
141 </executions>
142 <configuration>
143 <testExcludes>
144 <testExclude>**/integration/**</testExclude>
145 </testExcludes>
146 </configuration>
147 </plugin>
148
Felix Meschberger13e91512009-08-20 11:23:32 +0000149 <!-- Provide bundle for integration tests -->
150 <plugin>
151 <artifactId>maven-antrun-plugin</artifactId>
152 <version>1.3</version>
153 <executions>
154 <execution>
155 <id>configadmin-file-create</id>
156 <phase>pre-integration-test</phase>
157 <goals>
158 <goal>run</goal>
159 </goals>
160 <configuration>
161 <tasks>
Felix Meschberger186cdd52009-08-21 07:28:02 +0000162 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
Felix Meschberger13e91512009-08-20 11:23:32 +0000163 </tasks>
164 </configuration>
165 </execution>
166 <execution>
167 <id>configadmin-file-remove</id>
168 <phase>post-integration-test</phase>
169 <goals>
170 <goal>run</goal>
171 </goals>
172 <configuration>
173 <tasks>
Felix Meschberger186cdd52009-08-21 07:28:02 +0000174 <delete file="${project.build.directory}/configadmin.jar" />
Felix Meschberger13e91512009-08-20 11:23:32 +0000175 </tasks>
176 </configuration>
177 </execution>
178 </executions>
179 </plugin>
180
Felix Meschberger819d0b72009-08-14 15:35:27 +0000181 <!--
182 Exclude Integration tests in (default) unit tests and
183 conversely enable integration tests for integration testing
184 only. Helper classes are completely excluded from testing.
185 -->
186 <plugin>
187 <artifactId>maven-surefire-plugin</artifactId>
188 <executions>
189 <execution>
190 <id>surefire-it</id>
191 <phase>integration-test</phase>
192 <goals>
193 <goal>test</goal>
194 </goals>
195 <configuration>
196 <excludes>
197 <exclude>**/cm/*</exclude>
198 <exclude>**/cm/file/*</exclude>
199 <exclude>**/cm/impl/**</exclude>
200 </excludes>
201 <includes>
202 <include>**/integration/*</include>
203 </includes>
204 </configuration>
205 </execution>
206 </executions>
207 <configuration>
208 <excludes>
209 <exclude>**/integration/**</exclude>
210 </excludes>
211 </configuration>
212 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000213 </plugins>
214 </build>
Felix Meschberger819d0b72009-08-14 15:35:27 +0000215
216 <!-- repositories for Pax Exam and BND tool -->
217 <repositories>
218 <repository>
219 <id>ops4j</id>
220 <name>ops4j</name>
221 <url>http://repository.ops4j.org/maven2</url>
222 <snapshots>
223 <enabled>false</enabled>
224 </snapshots>
225 </repository>
226 <repository>
227 <id>aqute</id>
228 <name>aqute</name>
229 <url>http://www.aqute.biz/repo</url>
230 <snapshots>
231 <enabled>false</enabled>
232 </snapshots>
233 </repository>
234 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000235</project>