blob: f2dca782c5130052bfbbc10886408e0427727154 [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
4 <!--
5
6 Licensed to the Apache Software Foundation (ASF) under one or more
7 contributor license agreements. See the NOTICE file distributed with
8 this work for additional information regarding copyright ownership.
9 The ASF licenses this file to You under the Apache License, Version 2.0
10 (the "License"); you may not use this file except in compliance with
11 the License. You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 -->
21
22 <modelVersion>4.0.0</modelVersion>
23
24 <parent>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000025 <groupId>org.apache.felix.karaf</groupId>
Guillaume Nodet60dbfd72009-05-11 14:33:35 +000026 <artifactId>karaf</artifactId>
Guillaume Nodetadc9d282009-08-25 09:03:55 +000027 <version>0.9.0-SNAPSHOT</version>
Guillaume Nodet05fac962009-04-27 10:01:58 +000028 </parent>
29
Gert Vanthienenf54a8392009-05-02 19:57:13 +000030 <groupId>org.apache.felix.karaf</groupId>
31 <artifactId>apache-felix-karaf</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000032 <packaging>pom</packaging>
Guillaume Nodetadc9d282009-08-25 09:03:55 +000033 <version>0.9.0-SNAPSHOT</version>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000034 <name>Apache Felix Karaf :: Assembly</name>
Guillaume Nodet05fac962009-04-27 10:01:58 +000035
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000036 <properties>
37 <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory>
38 </properties>
39
Guillaume Nodet05fac962009-04-27 10:01:58 +000040 <dependencies>
41 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000042 <groupId>org.apache.felix.karaf</groupId>
43 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000044 </dependency>
45 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000046 <groupId>org.apache.felix.karaf</groupId>
47 <artifactId>org.apache.felix.karaf.client</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000048 </dependency>
49 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000050 <groupId>org.apache.felix.karaf.deployer</groupId>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000051 <artifactId>org.apache.felix.karaf.deployer.spring</artifactId>
Guillaume Nodet2e6afd12009-04-30 09:10:03 +000052 </dependency>
53 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000054 <groupId>org.apache.felix.karaf.deployer</groupId>
55 <artifactId>org.apache.felix.karaf.deployer.blueprint</artifactId>
Guillaume Nodet2e6afd12009-04-30 09:10:03 +000056 </dependency>
57 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000058 <groupId>org.apache.felix.karaf.deployer</groupId>
59 <artifactId>org.apache.felix.karaf.deployer.features</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000060 </dependency>
61 <dependency>
Guillaume Nodete692a962009-08-07 09:55:51 +000062 <groupId>org.apache.felix.karaf.features</groupId>
63 <artifactId>org.apache.felix.karaf.features.core</artifactId>
64 </dependency>
65 <dependency>
66 <groupId>org.apache.felix.karaf.features</groupId>
67 <artifactId>org.apache.felix.karaf.features.command</artifactId>
68 </dependency>
69 <dependency>
70 <groupId>org.apache.felix.karaf.features</groupId>
71 <artifactId>org.apache.felix.karaf.features.management</artifactId>
72 </dependency>
73 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000074 <groupId>org.apache.felix.karaf.shell</groupId>
75 <artifactId>org.apache.felix.karaf.shell.console</artifactId>
Guillaume Nodet22d03c62009-05-06 14:40:12 +000076 </dependency>
77 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000078 <groupId>org.apache.felix.karaf.shell</groupId>
79 <artifactId>org.apache.felix.karaf.shell.admin</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000080 </dependency>
81 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000082 <groupId>org.apache.felix.karaf.shell</groupId>
83 <artifactId>org.apache.felix.karaf.shell.obr</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000084 </dependency>
85 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000086 <groupId>org.apache.felix.karaf.shell</groupId>
87 <artifactId>org.apache.felix.karaf.shell.osgi</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000088 </dependency>
89 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000090 <groupId>org.apache.felix.karaf.shell</groupId>
91 <artifactId>org.apache.felix.karaf.shell.log</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000092 </dependency>
93 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000094 <groupId>org.apache.felix.karaf.shell</groupId>
95 <artifactId>org.apache.felix.karaf.shell.config</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000096 </dependency>
97 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000098 <groupId>org.apache.felix.karaf.shell</groupId>
99 <artifactId>org.apache.felix.karaf.shell.packages</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000100 </dependency>
101 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +0000102 <groupId>org.apache.felix.karaf.shell</groupId>
103 <artifactId>org.apache.felix.karaf.shell.commands</artifactId>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000104 </dependency>
105 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +0000106 <groupId>org.apache.felix.karaf.shell</groupId>
107 <artifactId>org.apache.felix.karaf.shell.ssh</artifactId>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000108 </dependency>
109 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000110 <groupId>org.apache.felix.karaf.jaas</groupId>
111 <artifactId>org.apache.felix.karaf.jaas.boot</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000112 </dependency>
113 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000114 <groupId>org.apache.felix.karaf.jaas</groupId>
115 <artifactId>org.apache.felix.karaf.jaas.config</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000116 </dependency>
117 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000118 <groupId>org.apache.felix.karaf.jaas</groupId>
119 <artifactId>org.apache.felix.karaf.jaas.modules</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000120 </dependency>
121 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000122 <groupId>org.apache.felix.karaf</groupId>
123 <artifactId>org.apache.felix.karaf.management</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000124 </dependency>
125 <dependency>
126 <groupId>org.springframework.osgi</groupId>
127 <artifactId>spring-osgi-extender</artifactId>
128 </dependency>
129 <dependency>
130 <groupId>org.springframework.osgi</groupId>
131 <artifactId>spring-osgi-core</artifactId>
132 </dependency>
133 <dependency>
134 <groupId>org.springframework.osgi</groupId>
135 <artifactId>spring-osgi-io</artifactId>
136 </dependency>
137 <dependency>
Guillaume Nodet99676532009-08-24 07:27:30 +0000138 <groupId>org.springframework.osgi</groupId>
139 <artifactId>spring-osgi-annotation</artifactId>
140 </dependency>
141 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000142 <groupId>org.springframework</groupId>
143 <artifactId>spring-context</artifactId>
144 </dependency>
145 <dependency>
146 <groupId>org.springframework</groupId>
147 <artifactId>spring-beans</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>org.springframework</groupId>
151 <artifactId>spring-core</artifactId>
152 </dependency>
153 <dependency>
154 <groupId>org.springframework</groupId>
155 <artifactId>spring-aop</artifactId>
156 </dependency>
157 <dependency>
158 <groupId>org.apache.felix</groupId>
159 <artifactId>org.apache.felix.bundlerepository</artifactId>
160 </dependency>
161 <dependency>
Guillaume Nodetdce21f42009-08-31 07:19:00 +0000162 <groupId>org.apache.felix</groupId>
163 <artifactId>org.apache.felix.fileinstall</artifactId>
164 </dependency>
165 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000166 <groupId>org.apache.mina</groupId>
167 <artifactId>mina-core</artifactId>
168 </dependency>
169 <dependency>
Guillaume Nodetcb2db1b2009-07-10 06:56:47 +0000170 <groupId>jline</groupId>
171 <artifactId>jline</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000172 </dependency>
173 <dependency>
174 <groupId>org.apache.felix</groupId>
175 <artifactId>org.osgi.compendium</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>org.apache.felix</groupId>
179 <artifactId>org.apache.felix.configadmin</artifactId>
180 </dependency>
181 <dependency>
182 <groupId>org.apache.felix</groupId>
Guillaume Nodet75848652009-06-11 08:36:21 +0000183 <artifactId>org.apache.felix.metatype</artifactId>
184 </dependency>
185 <dependency>
186 <groupId>org.apache.felix</groupId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000187 <artifactId>org.apache.felix.prefs</artifactId>
188 </dependency>
189 <dependency>
190 <groupId>org.ops4j.pax.logging</groupId>
191 <artifactId>pax-logging-api</artifactId>
192 </dependency>
193 <dependency>
194 <groupId>org.ops4j.pax.logging</groupId>
195 <artifactId>pax-logging-service</artifactId>
196 </dependency>
197 <dependency>
198 <groupId>org.ops4j.pax.url</groupId>
199 <artifactId>pax-url-mvn</artifactId>
200 </dependency>
201 <dependency>
202 <groupId>org.ops4j.pax.url</groupId>
203 <artifactId>pax-url-wrap</artifactId>
204 </dependency>
205 <dependency>
206 <groupId>org.apache.geronimo.specs</groupId>
207 <artifactId>geronimo-servlet_2.5_spec</artifactId>
208 </dependency>
209 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000210 <groupId>org.apache.sshd</groupId>
211 <artifactId>sshd-core</artifactId>
212 </dependency>
213 <dependency>
214 <groupId>org.osgi</groupId>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000215 <artifactId>org.osgi.impl.bundle.jmx</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000216 </dependency>
Guillaume Nodetb417d982009-05-05 15:46:15 +0000217 <dependency>
218 <groupId>org.eclipse</groupId>
219 <artifactId>osgi</artifactId>
220 </dependency>
221 <dependency>
222 <groupId>org.apache.felix</groupId>
223 <artifactId>org.apache.felix.framework</artifactId>
224 </dependency>
Guillaume Nodet6b2946d2009-06-18 20:57:23 +0000225 <dependency>
Guillaume Nodet60dc3482009-09-14 13:13:16 +0000226 <groupId>org.apache.geronimo.blueprint</groupId>
227 <artifactId>geronimo-blueprint</artifactId>
Guillaume Nodet6b2946d2009-06-18 20:57:23 +0000228 </dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000229 </dependencies>
230 <build>
231 <resources>
232 <resource>
233 <directory>${pom.basedir}/src/main/filtered-resources</directory>
234 <filtering>true</filtering>
235 <includes>
236 <include>**/*</include>
237 </includes>
238 </resource>
239 </resources>
Guillaume Nodet88896e32009-08-27 15:03:40 +0000240 <filters>
241 <filter>target/filter.txt</filter>
242 </filters>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000243 <plugins>
244 <plugin>
245 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet88896e32009-08-27 15:03:40 +0000246 <artifactId>maven-antrun-plugin</artifactId>
Guillaume Nodet88896e32009-08-27 15:03:40 +0000247 <executions>
248 <execution>
249 <id>create-prop</id>
250 <phase>generate-resources</phase>
251 <configuration>
252 <tasks>
253 <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
254 <property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp"/>
255 <property name="mv" value="${project.version}"/>
256 <echo message="Maven version: ${mv}" />
257 <propertyregex property="ov.p1" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace="\1" defaultValue="0"/>
258 <propertyregex property="ov.p2" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\2" defaultValue=".0"/>
259 <propertyregex property="ov.p3" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\3" defaultValue=".0"/>
260 <propertyregex property="ov.p4" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\4" defaultValue=""/>
261 <propertyregex property="ov.p1a" input="${ov.p1}" regexp="(.+)" replace="\1" defaultValue="0"/>
262 <propertyregex property="ov.p2a" input="${ov.p2}" regexp="(\..+)" replace="\1" defaultValue=".0"/>
263 <propertyregex property="ov.p3a" input="${ov.p3}" regexp="(\..+)" replace="\1" defaultValue=".0"/>
264 <propertyregex property="ov.p4a" input="${ov.p4}" regexp="(\..+)" replace="\1" defaultValue=""/>
265 <property name="ov" value="${ov.p1a}${ov.p2a}${ov.p3a}${ov.p4a}"/>
266 <echo message="OSGi version: ${ov}" />
267 <mkdir dir="target"/>
268 <echo message="karaf.osgi.version = ${ov}" file="target/filter.txt"/>
269 </tasks>
270 </configuration>
271 <goals>
272 <goal>run</goal>
273 </goals>
274 </execution>
275 </executions>
Guillaume Nodet88896e32009-08-27 15:03:40 +0000276 </plugin>
277 <plugin>
278 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000279 <artifactId>maven-resources-plugin</artifactId>
280 <executions>
281 <execution>
282 <id>filter</id>
283 <phase>generate-resources</phase>
284 <goals>
285 <goal>resources</goal>
286 </goals>
287 </execution>
288 </executions>
289 </plugin>
290 <plugin>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-dependency-plugin</artifactId>
293 <executions>
294 <execution>
295 <id>copy</id>
296 <phase>generate-resources</phase>
297 <goals>
298 <goal>copy</goal>
299 </goals>
300 <configuration>
301 <artifactItems>
302 <artifactItem>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000303 <groupId>org.apache.felix.karaf</groupId>
304 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000305 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet1becb5b2009-05-04 07:56:47 +0000306 <destFileName>karaf.jar</destFileName>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000307 </artifactItem>
308 <artifactItem>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000309 <groupId>org.apache.felix.karaf</groupId>
310 <artifactId>org.apache.felix.karaf.client</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000311 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet1becb5b2009-05-04 07:56:47 +0000312 <destFileName>karaf-client.jar</destFileName>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000313 </artifactItem>
314 <artifactItem>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000315 <groupId>org.apache.felix.karaf.jaas</groupId>
316 <artifactId>org.apache.felix.karaf.jaas.boot</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000317 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet1becb5b2009-05-04 07:56:47 +0000318 <destFileName>karaf-jaas-boot.jar</destFileName>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000319 </artifactItem>
320 </artifactItems>
321 </configuration>
322 </execution>
323 </executions>
324 </plugin>
325 <plugin>
326 <groupId>org.codehaus.mojo</groupId>
327 <artifactId>build-helper-maven-plugin</artifactId>
328 <executions>
329 <execution>
330 <id>attach-artifacts</id>
331 <phase>package</phase>
332 <goals>
333 <goal>attach-artifact</goal>
334 </goals>
335 <configuration>
336 <artifacts>
337 <artifact>
338 <file>target/classes/features.xml</file>
339 <type>xml</type>
340 <classifier>features</classifier>
341 </artifact>
342 </artifacts>
343 </configuration>
344 </execution>
345 </executions>
346 </plugin>
347 <plugin>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-assembly-plugin</artifactId>
350 <executions>
351 <execution>
352 <id>unix-bin</id>
353 <phase>package</phase>
354 <goals>
355 <goal>single</goal>
356 </goals>
357 <configuration>
358 <descriptors>
359 <descriptor>src/main/descriptors/unix-bin.xml</descriptor>
360 </descriptors>
361 <finalName>${pom.artifactId}-${pom.version}</finalName>
362 <tarLongFileMode>gnu</tarLongFileMode>
363 </configuration>
364 </execution>
365 <execution>
366 <id>windows-bin</id>
367 <phase>package</phase>
368 <goals>
369 <goal>single</goal>
370 </goals>
371 <configuration>
372 <descriptors>
373 <descriptor>src/main/descriptors/windows-bin.xml</descriptor>
374 </descriptors>
375 <finalName>${pom.artifactId}-${pom.version}</finalName>
376 <appendAssemblyId>true</appendAssemblyId>
377 <assemblyId/>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000378 </configuration>
379 </execution>
380 <execution>
381 <id>unix-src</id>
382 <phase>package</phase>
383 <goals>
384 <goal>single</goal>
385 </goals>
386 <configuration>
387 <descriptors>
388 <descriptor>src/main/descriptors/unix-src.xml</descriptor>
389 </descriptors>
390 <tarLongFileMode>gnu</tarLongFileMode>
391 </configuration>
392 </execution>
393 <execution>
394 <id>windows-src</id>
395 <phase>package</phase>
396 <goals>
397 <goal>single</goal>
398 </goals>
399 <configuration>
400 <descriptors>
401 <descriptor>src/main/descriptors/windows-src.xml</descriptor>
402 </descriptors>
403 </configuration>
404 </execution>
405 </executions>
406 </plugin>
407 </plugins>
408 </build>
409
410 <profiles>
411 <profile>
412 <id>assembly-src</id>
413 <build>
414 <plugins>
415 <plugin>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-assembly-plugin</artifactId>
418 <executions>
419 <execution>
420 <id>unix-src</id>
421 <phase>package</phase>
422 <goals>
423 <goal>attached</goal>
424 </goals>
425 <configuration>
426 <descriptors>
427 <descriptor>src/main/descriptors/unix-src.xml</descriptor>
428 </descriptors>
429 </configuration>
430 </execution>
431 <execution>
432 <id>windows-src</id>
433 <phase>package</phase>
434 <goals>
435 <goal>attached</goal>
436 </goals>
437 <configuration>
438 <descriptors>
439 <descriptor>src/main/descriptors/windows-src.xml</descriptor>
440 </descriptors>
441 </configuration>
442 </execution>
443 </executions>
444 </plugin>
445 </plugins>
446 </build>
447 </profile>
448 </profiles>
449</project>