blob: dc39cc05b51edf5157878d670086ec7f0e83ac28 [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 Meschbergerfb05f002009-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 Meschberger99a126d2009-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 Meschberger806d25b2009-09-17 13:11:21 +000040 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000041 <artifactId>org.osgi.core</artifactId>
Felix Meschberger806d25b2009-09-17 13:11:21 +000042 <version>4.0.0</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000043 </dependency>
44 <dependency>
Felix Meschberger806d25b2009-09-17 13:11:21 +000045 <groupId>org.osgi</groupId>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000046 <artifactId>org.osgi.compendium</artifactId>
Felix Meschberger806d25b2009-09-17 13:11:21 +000047 <version>4.2.0</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000048 </dependency>
Felix Meschberger3121d7a2009-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>
55 </dependency>
56 <dependency>
57 <groupId>org.ops4j.pax.exam</groupId>
58 <artifactId>pax-exam</artifactId>
59 <version>0.6.0</version>
60 <scope>test</scope>
61 </dependency>
62 <dependency>
63 <groupId>org.ops4j.pax.exam</groupId>
64 <artifactId>pax-exam-junit</artifactId>
65 <version>0.6.0</version>
66 <scope>test</scope>
67 </dependency>
68 <dependency>
69 <groupId>org.ops4j.pax.exam</groupId>
70 <artifactId>pax-exam-container-default</artifactId>
71 <version>0.6.0</version>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.ops4j.pax.swissbox</groupId>
76 <artifactId>pax-swissbox-tinybundles</artifactId>
77 <version>1.0.0</version>
78 <scope>test</scope>
79 </dependency>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000080 </dependencies>
81
82 <build>
83 <plugins>
84 <plugin>
85 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000086 <artifactId>maven-bundle-plugin</artifactId>
Stuart McCulloch876ca722008-02-26 17:15:42 +000087 <version>1.4.0</version>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000088 <extensions>true</extensions>
89 <configuration>
90 <instructions>
91 <Bundle-Category>osgi</Bundle-Category>
Felix Meschberger1af21822007-09-04 13:35:05 +000092 <Bundle-SymbolicName>
93 ${artifactId}
94 </Bundle-SymbolicName>
Carsten Ziegeler90f0b9f2008-04-17 06:33:59 +000095 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +000096 <Export-Package>
Felix Meschberger432e3872008-03-07 14:58:57 +000097 org.apache.felix.cm;
98 org.apache.felix.cm.file;version=1.0,
Felix Meschberger806d25b2009-09-17 13:11:21 +000099 org.osgi.service.cm
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000100 </Export-Package>
101 <Private-Package>
Felix Meschberger48f6e7a2008-06-13 08:33:54 +0000102 org.apache.felix.cm.impl,
103 org.osgi.util.tracker
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000104 </Private-Package>
105 <Bundle-Activator>
106 org.apache.felix.cm.impl.ConfigurationManager
107 </Bundle-Activator>
Felix Meschberger85b355d2007-08-31 07:17:38 +0000108 <DynamicImport-Package>
109 org.osgi.service.log
110 </DynamicImport-Package>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000111 </instructions>
112 </configuration>
113 </plugin>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000114 <!--
115 configure default compilation for Java 1.3 and integration
116 test compilation for Java 5 (since integration tests use
117 Java Annotations for Pax Exam)
118 -->
119 <plugin>
120 <artifactId>maven-compiler-plugin</artifactId>
121 <executions>
122 <execution>
123 <id>test-compile-java5</id>
124 <goals>
125 <goal>testCompile</goal>
126 </goals>
127 <configuration>
128 <source>1.5</source>
129 <target>1.5</target>
130 <testExcludes>
131 <testExclude>**/cm/*</testExclude>
132 <testExclude>**/cm/file/*</testExclude>
133 <testExclude>**/cm/impl/**</testExclude>
134 </testExcludes>
135 <testIncludes>
136 <testInclude>**/integration/**</testInclude>
137 </testIncludes>
138 </configuration>
139 </execution>
140 </executions>
141 <configuration>
142 <testExcludes>
143 <testExclude>**/integration/**</testExclude>
144 </testExcludes>
145 </configuration>
146 </plugin>
147
Felix Meschbergered509ef2009-08-20 11:23:32 +0000148 <!-- Provide bundle for integration tests -->
149 <plugin>
150 <artifactId>maven-antrun-plugin</artifactId>
151 <version>1.3</version>
152 <executions>
153 <execution>
154 <id>configadmin-file-create</id>
155 <phase>pre-integration-test</phase>
156 <goals>
157 <goal>run</goal>
158 </goals>
159 <configuration>
160 <tasks>
Felix Meschberger590e9472009-08-21 07:28:02 +0000161 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/configadmin.jar" />
Felix Meschbergered509ef2009-08-20 11:23:32 +0000162 </tasks>
163 </configuration>
164 </execution>
165 <execution>
166 <id>configadmin-file-remove</id>
167 <phase>post-integration-test</phase>
168 <goals>
169 <goal>run</goal>
170 </goals>
171 <configuration>
172 <tasks>
Felix Meschberger590e9472009-08-21 07:28:02 +0000173 <delete file="${project.build.directory}/configadmin.jar" />
Felix Meschbergered509ef2009-08-20 11:23:32 +0000174 </tasks>
175 </configuration>
176 </execution>
177 </executions>
178 </plugin>
179
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000180 <!--
181 Exclude Integration tests in (default) unit tests and
182 conversely enable integration tests for integration testing
183 only. Helper classes are completely excluded from testing.
184 -->
185 <plugin>
186 <artifactId>maven-surefire-plugin</artifactId>
187 <executions>
188 <execution>
189 <id>surefire-it</id>
190 <phase>integration-test</phase>
191 <goals>
192 <goal>test</goal>
193 </goals>
194 <configuration>
195 <excludes>
196 <exclude>**/cm/*</exclude>
197 <exclude>**/cm/file/*</exclude>
198 <exclude>**/cm/impl/**</exclude>
199 </excludes>
200 <includes>
201 <include>**/integration/*</include>
202 </includes>
203 </configuration>
204 </execution>
205 </executions>
206 <configuration>
207 <excludes>
208 <exclude>**/integration/**</exclude>
209 </excludes>
210 </configuration>
211 </plugin>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000212 </plugins>
213 </build>
Felix Meschberger3121d7a2009-08-14 15:35:27 +0000214
215 <!-- repositories for Pax Exam and BND tool -->
216 <repositories>
217 <repository>
218 <id>ops4j</id>
219 <name>ops4j</name>
220 <url>http://repository.ops4j.org/maven2</url>
221 <snapshots>
222 <enabled>false</enabled>
223 </snapshots>
224 </repository>
225 <repository>
226 <id>aqute</id>
227 <name>aqute</name>
228 <url>http://www.aqute.biz/repo</url>
229 <snapshots>
230 <enabled>false</enabled>
231 </snapshots>
232 </repository>
233 </repositories>
Felix Meschbergeradd2b4a2007-04-11 18:12:33 +0000234</project>