blob: 242d73b4b4ff41af201c36d30568ec7f0aad612d [file] [log] [blame]
Guillaume Nodet916f28a2009-09-22 09:11:12 +00001<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">
Guillaume Nodet91fab3b2009-04-27 10:01:58 +00002
3 <!--
4
5 Licensed to the Apache Software Foundation (ASF) under one or more
6 contributor license agreements. See the NOTICE file distributed with
7 this work for additional information regarding copyright ownership.
8 The ASF licenses this file to You under the Apache License, Version 2.0
9 (the "License"); you may not use this file except in compliance with
10 the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 -->
20
21 <modelVersion>4.0.0</modelVersion>
22
23 <parent>
Gert Vanthienen607b8522009-05-02 19:57:13 +000024 <groupId>org.apache.felix.karaf</groupId>
Guillaume Nodetb9103c82009-05-11 14:33:35 +000025 <artifactId>karaf</artifactId>
Guillaume Nodet916f28a2009-09-22 09:11:12 +000026 <version>1.0.0</version>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000027 </parent>
28
Gert Vanthienen607b8522009-05-02 19:57:13 +000029 <groupId>org.apache.felix.karaf</groupId>
30 <artifactId>apache-felix-karaf</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000031 <packaging>pom</packaging>
Guillaume Nodet916f28a2009-09-22 09:11:12 +000032 <version>1.0.0</version>
Gert Vanthienen607b8522009-05-02 19:57:13 +000033 <name>Apache Felix Karaf :: Assembly</name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000034
Guillaume Nodet91a52c02009-09-18 20:14:54 +000035 <properties>
36 <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory>
37 </properties>
38
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000039 <dependencies>
40 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000041 <groupId>org.apache.felix.karaf</groupId>
42 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000043 </dependency>
44 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000045 <groupId>org.apache.felix.karaf</groupId>
46 <artifactId>org.apache.felix.karaf.client</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000047 </dependency>
48 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000049 <groupId>org.apache.felix.karaf.deployer</groupId>
Gert Vanthienen607b8522009-05-02 19:57:13 +000050 <artifactId>org.apache.felix.karaf.deployer.spring</artifactId>
Guillaume Nodet18c56a12009-04-30 09:10:03 +000051 </dependency>
52 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000053 <groupId>org.apache.felix.karaf.deployer</groupId>
54 <artifactId>org.apache.felix.karaf.deployer.blueprint</artifactId>
Guillaume Nodet18c56a12009-04-30 09:10:03 +000055 </dependency>
56 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000057 <groupId>org.apache.felix.karaf.deployer</groupId>
58 <artifactId>org.apache.felix.karaf.deployer.features</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000059 </dependency>
60 <dependency>
Guillaume Nodet2cb94d02009-08-07 09:55:51 +000061 <groupId>org.apache.felix.karaf.features</groupId>
62 <artifactId>org.apache.felix.karaf.features.core</artifactId>
63 </dependency>
64 <dependency>
65 <groupId>org.apache.felix.karaf.features</groupId>
66 <artifactId>org.apache.felix.karaf.features.command</artifactId>
67 </dependency>
68 <dependency>
69 <groupId>org.apache.felix.karaf.features</groupId>
70 <artifactId>org.apache.felix.karaf.features.management</artifactId>
71 </dependency>
72 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000073 <groupId>org.apache.felix.karaf.shell</groupId>
74 <artifactId>org.apache.felix.karaf.shell.console</artifactId>
Guillaume Nodetccfc3d82009-05-06 14:40:12 +000075 </dependency>
76 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000077 <groupId>org.apache.felix.karaf.shell</groupId>
78 <artifactId>org.apache.felix.karaf.shell.admin</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000079 </dependency>
80 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000081 <groupId>org.apache.felix.karaf.shell</groupId>
82 <artifactId>org.apache.felix.karaf.shell.obr</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000083 </dependency>
84 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000085 <groupId>org.apache.felix.karaf.shell</groupId>
86 <artifactId>org.apache.felix.karaf.shell.osgi</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000087 </dependency>
88 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000089 <groupId>org.apache.felix.karaf.shell</groupId>
90 <artifactId>org.apache.felix.karaf.shell.log</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000091 </dependency>
92 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000093 <groupId>org.apache.felix.karaf.shell</groupId>
94 <artifactId>org.apache.felix.karaf.shell.config</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000095 </dependency>
96 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000097 <groupId>org.apache.felix.karaf.shell</groupId>
98 <artifactId>org.apache.felix.karaf.shell.packages</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000099 </dependency>
100 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +0000101 <groupId>org.apache.felix.karaf.shell</groupId>
102 <artifactId>org.apache.felix.karaf.shell.commands</artifactId>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000103 </dependency>
104 <dependency>
Guillaume Nodet91a52c02009-09-18 20:14:54 +0000105 <groupId>org.apache.felix.karaf.shell</groupId>
106 <artifactId>org.apache.felix.karaf.shell.ssh</artifactId>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000107 </dependency>
108 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000109 <groupId>org.apache.felix.karaf.jaas</groupId>
110 <artifactId>org.apache.felix.karaf.jaas.boot</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000111 </dependency>
112 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000113 <groupId>org.apache.felix.karaf.jaas</groupId>
114 <artifactId>org.apache.felix.karaf.jaas.config</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000115 </dependency>
116 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000117 <groupId>org.apache.felix.karaf.jaas</groupId>
118 <artifactId>org.apache.felix.karaf.jaas.modules</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000119 </dependency>
120 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000121 <groupId>org.apache.felix.karaf</groupId>
122 <artifactId>org.apache.felix.karaf.management</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000123 </dependency>
124 <dependency>
125 <groupId>org.springframework.osgi</groupId>
126 <artifactId>spring-osgi-extender</artifactId>
127 </dependency>
128 <dependency>
129 <groupId>org.springframework.osgi</groupId>
130 <artifactId>spring-osgi-core</artifactId>
131 </dependency>
132 <dependency>
133 <groupId>org.springframework.osgi</groupId>
134 <artifactId>spring-osgi-io</artifactId>
135 </dependency>
136 <dependency>
Guillaume Nodet6a8e2f12009-08-24 07:27:30 +0000137 <groupId>org.springframework.osgi</groupId>
138 <artifactId>spring-osgi-annotation</artifactId>
139 </dependency>
140 <dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000141 <groupId>org.springframework</groupId>
142 <artifactId>spring-context</artifactId>
143 </dependency>
144 <dependency>
145 <groupId>org.springframework</groupId>
146 <artifactId>spring-beans</artifactId>
147 </dependency>
148 <dependency>
149 <groupId>org.springframework</groupId>
150 <artifactId>spring-core</artifactId>
151 </dependency>
152 <dependency>
153 <groupId>org.springframework</groupId>
154 <artifactId>spring-aop</artifactId>
155 </dependency>
156 <dependency>
157 <groupId>org.apache.felix</groupId>
158 <artifactId>org.apache.felix.bundlerepository</artifactId>
159 </dependency>
160 <dependency>
Guillaume Nodet30fdfb92009-08-31 07:19:00 +0000161 <groupId>org.apache.felix</groupId>
162 <artifactId>org.apache.felix.fileinstall</artifactId>
163 </dependency>
164 <dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000165 <groupId>org.apache.mina</groupId>
166 <artifactId>mina-core</artifactId>
167 </dependency>
168 <dependency>
Guillaume Nodetf9b2bf42009-07-10 06:56:47 +0000169 <groupId>jline</groupId>
170 <artifactId>jline</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000171 </dependency>
172 <dependency>
173 <groupId>org.apache.felix</groupId>
174 <artifactId>org.osgi.compendium</artifactId>
175 </dependency>
176 <dependency>
177 <groupId>org.apache.felix</groupId>
178 <artifactId>org.apache.felix.configadmin</artifactId>
179 </dependency>
180 <dependency>
181 <groupId>org.apache.felix</groupId>
Guillaume Nodetafcbf452009-06-11 08:36:21 +0000182 <artifactId>org.apache.felix.metatype</artifactId>
183 </dependency>
184 <dependency>
185 <groupId>org.apache.felix</groupId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000186 <artifactId>org.apache.felix.prefs</artifactId>
187 </dependency>
188 <dependency>
189 <groupId>org.ops4j.pax.logging</groupId>
190 <artifactId>pax-logging-api</artifactId>
191 </dependency>
192 <dependency>
193 <groupId>org.ops4j.pax.logging</groupId>
194 <artifactId>pax-logging-service</artifactId>
195 </dependency>
196 <dependency>
197 <groupId>org.ops4j.pax.url</groupId>
198 <artifactId>pax-url-mvn</artifactId>
199 </dependency>
200 <dependency>
201 <groupId>org.ops4j.pax.url</groupId>
202 <artifactId>pax-url-wrap</artifactId>
203 </dependency>
204 <dependency>
205 <groupId>org.apache.geronimo.specs</groupId>
206 <artifactId>geronimo-servlet_2.5_spec</artifactId>
207 </dependency>
208 <dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000209 <groupId>org.apache.sshd</groupId>
210 <artifactId>sshd-core</artifactId>
211 </dependency>
212 <dependency>
213 <groupId>org.osgi</groupId>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000214 <artifactId>org.osgi.impl.bundle.jmx</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000215 </dependency>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000216 <dependency>
217 <groupId>org.eclipse</groupId>
218 <artifactId>osgi</artifactId>
219 </dependency>
220 <dependency>
221 <groupId>org.apache.felix</groupId>
222 <artifactId>org.apache.felix.framework</artifactId>
223 </dependency>
Guillaume Nodetfcf2d342009-06-18 20:57:23 +0000224 <dependency>
Guillaume Nodet76d69022009-09-14 13:13:16 +0000225 <groupId>org.apache.geronimo.blueprint</groupId>
226 <artifactId>geronimo-blueprint</artifactId>
Guillaume Nodetfcf2d342009-06-18 20:57:23 +0000227 </dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000228 </dependencies>
229 <build>
230 <resources>
231 <resource>
232 <directory>${pom.basedir}/src/main/filtered-resources</directory>
233 <filtering>true</filtering>
234 <includes>
235 <include>**/*</include>
236 </includes>
237 </resource>
238 </resources>
Guillaume Nodet992a2af2009-08-27 15:03:40 +0000239 <filters>
240 <filter>target/filter.txt</filter>
241 </filters>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000242 <plugins>
243 <plugin>
244 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet992a2af2009-08-27 15:03:40 +0000245 <artifactId>maven-antrun-plugin</artifactId>
Guillaume Nodet992a2af2009-08-27 15:03:40 +0000246 <executions>
247 <execution>
248 <id>create-prop</id>
249 <phase>generate-resources</phase>
250 <configuration>
251 <tasks>
Guillaume Nodet916f28a2009-09-22 09:11:12 +0000252 <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" />
253 <property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" />
254 <property name="mv" value="${project.version}" />
255 <echo message="Maven version: ${mv}" />
256 <propertyregex property="ov.p1" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace="\1" defaultValue="0" />
257 <propertyregex property="ov.p2" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\2" defaultValue=".0" />
258 <propertyregex property="ov.p3" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\3" defaultValue=".0" />
259 <propertyregex property="ov.p4" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\4" defaultValue="" />
260 <propertyregex property="ov.p1a" input="${ov.p1}" regexp="(.+)" replace="\1" defaultValue="0" />
261 <propertyregex property="ov.p2a" input="${ov.p2}" regexp="(\..+)" replace="\1" defaultValue=".0" />
262 <propertyregex property="ov.p3a" input="${ov.p3}" regexp="(\..+)" replace="\1" defaultValue=".0" />
263 <propertyregex property="ov.p4a" input="${ov.p4}" regexp="(\..+)" replace="\1" defaultValue="" />
264 <property name="ov" value="${ov.p1a}${ov.p2a}${ov.p3a}${ov.p4a}" />
265 <echo message="OSGi version: ${ov}" />
266 <mkdir dir="target" />
267 <echo message="karaf.osgi.version = ${ov}" file="target/filter.txt" />
Guillaume Nodet992a2af2009-08-27 15:03:40 +0000268 </tasks>
269 </configuration>
270 <goals>
271 <goal>run</goal>
272 </goals>
273 </execution>
274 </executions>
Guillaume Nodet992a2af2009-08-27 15:03:40 +0000275 </plugin>
276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000278 <artifactId>maven-resources-plugin</artifactId>
279 <executions>
280 <execution>
281 <id>filter</id>
282 <phase>generate-resources</phase>
283 <goals>
284 <goal>resources</goal>
285 </goals>
286 </execution>
287 </executions>
288 </plugin>
289 <plugin>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-dependency-plugin</artifactId>
292 <executions>
293 <execution>
294 <id>copy</id>
295 <phase>generate-resources</phase>
296 <goals>
297 <goal>copy</goal>
298 </goals>
299 <configuration>
300 <artifactItems>
301 <artifactItem>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000302 <groupId>org.apache.felix.karaf</groupId>
303 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000304 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet874ecc82009-05-04 07:56:47 +0000305 <destFileName>karaf.jar</destFileName>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000306 </artifactItem>
307 <artifactItem>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000308 <groupId>org.apache.felix.karaf</groupId>
309 <artifactId>org.apache.felix.karaf.client</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000310 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet874ecc82009-05-04 07:56:47 +0000311 <destFileName>karaf-client.jar</destFileName>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000312 </artifactItem>
313 <artifactItem>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000314 <groupId>org.apache.felix.karaf.jaas</groupId>
315 <artifactId>org.apache.felix.karaf.jaas.boot</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000316 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet874ecc82009-05-04 07:56:47 +0000317 <destFileName>karaf-jaas-boot.jar</destFileName>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000318 </artifactItem>
319 </artifactItems>
320 </configuration>
321 </execution>
322 </executions>
323 </plugin>
324 <plugin>
325 <groupId>org.codehaus.mojo</groupId>
326 <artifactId>build-helper-maven-plugin</artifactId>
327 <executions>
328 <execution>
329 <id>attach-artifacts</id>
330 <phase>package</phase>
331 <goals>
332 <goal>attach-artifact</goal>
333 </goals>
334 <configuration>
335 <artifacts>
336 <artifact>
337 <file>target/classes/features.xml</file>
338 <type>xml</type>
339 <classifier>features</classifier>
340 </artifact>
341 </artifacts>
342 </configuration>
343 </execution>
344 </executions>
345 </plugin>
346 <plugin>
347 <groupId>org.apache.maven.plugins</groupId>
348 <artifactId>maven-assembly-plugin</artifactId>
349 <executions>
350 <execution>
Guillaume Nodet9b259a42009-09-21 14:02:52 +0000351 <id>make-assembly</id>
352 <phase>none</phase>
353 </execution>
354 <execution>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000355 <id>unix-bin</id>
356 <phase>package</phase>
357 <goals>
358 <goal>single</goal>
359 </goals>
360 <configuration>
361 <descriptors>
362 <descriptor>src/main/descriptors/unix-bin.xml</descriptor>
363 </descriptors>
364 <finalName>${pom.artifactId}-${pom.version}</finalName>
365 <tarLongFileMode>gnu</tarLongFileMode>
366 </configuration>
367 </execution>
368 <execution>
369 <id>windows-bin</id>
370 <phase>package</phase>
371 <goals>
372 <goal>single</goal>
373 </goals>
374 <configuration>
375 <descriptors>
376 <descriptor>src/main/descriptors/windows-bin.xml</descriptor>
377 </descriptors>
378 <finalName>${pom.artifactId}-${pom.version}</finalName>
379 <appendAssemblyId>true</appendAssemblyId>
Guillaume Nodet916f28a2009-09-22 09:11:12 +0000380 <assemblyId />
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000381 </configuration>
382 </execution>
383 <execution>
384 <id>unix-src</id>
385 <phase>package</phase>
386 <goals>
387 <goal>single</goal>
388 </goals>
389 <configuration>
390 <descriptors>
391 <descriptor>src/main/descriptors/unix-src.xml</descriptor>
392 </descriptors>
393 <tarLongFileMode>gnu</tarLongFileMode>
394 </configuration>
395 </execution>
396 <execution>
397 <id>windows-src</id>
398 <phase>package</phase>
399 <goals>
400 <goal>single</goal>
401 </goals>
402 <configuration>
403 <descriptors>
404 <descriptor>src/main/descriptors/windows-src.xml</descriptor>
405 </descriptors>
406 </configuration>
407 </execution>
408 </executions>
409 </plugin>
410 </plugins>
411 </build>
412
413 <profiles>
414 <profile>
415 <id>assembly-src</id>
416 <build>
417 <plugins>
418 <plugin>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-assembly-plugin</artifactId>
421 <executions>
422 <execution>
423 <id>unix-src</id>
424 <phase>package</phase>
425 <goals>
426 <goal>attached</goal>
427 </goals>
428 <configuration>
429 <descriptors>
430 <descriptor>src/main/descriptors/unix-src.xml</descriptor>
431 </descriptors>
432 </configuration>
433 </execution>
434 <execution>
435 <id>windows-src</id>
436 <phase>package</phase>
437 <goals>
438 <goal>attached</goal>
439 </goals>
440 <configuration>
441 <descriptors>
442 <descriptor>src/main/descriptors/windows-src.xml</descriptor>
443 </descriptors>
444 </configuration>
445 </execution>
446 </executions>
447 </plugin>
448 </plugins>
449 </build>
450 </profile>
451 </profiles>
452</project>