blob: c3f8ae541a125c0fee58cc53898e7ee5087fa5ee [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
36 <dependencies>
37 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000038 <groupId>org.apache.felix.karaf</groupId>
39 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000040 </dependency>
41 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000042 <groupId>org.apache.felix.karaf</groupId>
43 <artifactId>org.apache.felix.karaf.client</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.deployer</groupId>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000047 <artifactId>org.apache.felix.karaf.deployer.spring</artifactId>
Guillaume Nodet2e6afd12009-04-30 09:10:03 +000048 </dependency>
49 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000050 <groupId>org.apache.felix.karaf.deployer</groupId>
51 <artifactId>org.apache.felix.karaf.deployer.blueprint</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.features</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000056 </dependency>
57 <dependency>
Guillaume Nodete692a962009-08-07 09:55:51 +000058 <groupId>org.apache.felix.karaf.features</groupId>
59 <artifactId>org.apache.felix.karaf.features.core</artifactId>
60 </dependency>
61 <dependency>
62 <groupId>org.apache.felix.karaf.features</groupId>
63 <artifactId>org.apache.felix.karaf.features.command</artifactId>
64 </dependency>
65 <dependency>
66 <groupId>org.apache.felix.karaf.features</groupId>
67 <artifactId>org.apache.felix.karaf.features.management</artifactId>
68 </dependency>
69 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000070 <groupId>org.apache.felix.karaf.gshell</groupId>
Guillaume Nodet129433d2009-07-09 08:29:14 +000071 <artifactId>org.apache.felix.karaf.gshell.console</artifactId>
Guillaume Nodet22d03c62009-05-06 14:40:12 +000072 </dependency>
73 <dependency>
74 <groupId>org.apache.felix.karaf.gshell</groupId>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000075 <artifactId>org.apache.felix.karaf.gshell.admin</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000076 </dependency>
77 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000078 <groupId>org.apache.felix.karaf.gshell</groupId>
79 <artifactId>org.apache.felix.karaf.gshell.obr</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000080 </dependency>
81 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000082 <groupId>org.apache.felix.karaf.gshell</groupId>
83 <artifactId>org.apache.felix.karaf.gshell.osgi</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000084 </dependency>
85 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000086 <groupId>org.apache.felix.karaf.gshell</groupId>
87 <artifactId>org.apache.felix.karaf.gshell.log</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000088 </dependency>
89 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000090 <groupId>org.apache.felix.karaf.gshell</groupId>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000091 <artifactId>org.apache.felix.karaf.gshell.config</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000092 </dependency>
93 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000094 <groupId>org.apache.felix.karaf.gshell</groupId>
95 <artifactId>org.apache.felix.karaf.gshell.packages</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000096 </dependency>
97 <dependency>
Guillaume Nodet129433d2009-07-09 08:29:14 +000098 <groupId>org.apache.felix.karaf.gshell</groupId>
99 <artifactId>org.apache.felix.karaf.gshell.commands</artifactId>
100 </dependency>
101 <dependency>
102 <groupId>org.apache.felix.karaf.gshell</groupId>
103 <artifactId>org.apache.felix.karaf.gshell.ssh</artifactId>
104 </dependency>
105 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000106 <groupId>org.apache.felix.karaf.jaas</groupId>
107 <artifactId>org.apache.felix.karaf.jaas.boot</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +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.config</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.modules</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</groupId>
119 <artifactId>org.apache.felix.karaf.management</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000120 </dependency>
121 <dependency>
122 <groupId>org.springframework.osgi</groupId>
123 <artifactId>spring-osgi-extender</artifactId>
124 </dependency>
125 <dependency>
126 <groupId>org.springframework.osgi</groupId>
127 <artifactId>spring-osgi-core</artifactId>
128 </dependency>
129 <dependency>
130 <groupId>org.springframework.osgi</groupId>
131 <artifactId>spring-osgi-io</artifactId>
132 </dependency>
133 <dependency>
Guillaume Nodet99676532009-08-24 07:27:30 +0000134 <groupId>org.springframework.osgi</groupId>
135 <artifactId>spring-osgi-annotation</artifactId>
136 </dependency>
137 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000138 <groupId>org.springframework</groupId>
139 <artifactId>spring-context</artifactId>
140 </dependency>
141 <dependency>
142 <groupId>org.springframework</groupId>
143 <artifactId>spring-beans</artifactId>
144 </dependency>
145 <dependency>
146 <groupId>org.springframework</groupId>
147 <artifactId>spring-core</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>org.springframework</groupId>
151 <artifactId>spring-aop</artifactId>
152 </dependency>
153 <dependency>
154 <groupId>org.apache.felix</groupId>
155 <artifactId>org.apache.felix.bundlerepository</artifactId>
156 </dependency>
157 <dependency>
Guillaume Nodetdce21f42009-08-31 07:19:00 +0000158 <groupId>org.apache.felix</groupId>
159 <artifactId>org.apache.felix.fileinstall</artifactId>
160 </dependency>
161 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000162 <groupId>org.apache.mina</groupId>
163 <artifactId>mina-core</artifactId>
164 </dependency>
165 <dependency>
Guillaume Nodetcb2db1b2009-07-10 06:56:47 +0000166 <groupId>jline</groupId>
167 <artifactId>jline</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000168 </dependency>
169 <dependency>
170 <groupId>org.apache.felix</groupId>
171 <artifactId>org.osgi.compendium</artifactId>
172 </dependency>
173 <dependency>
174 <groupId>org.apache.felix</groupId>
175 <artifactId>org.apache.felix.configadmin</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>org.apache.felix</groupId>
Guillaume Nodet75848652009-06-11 08:36:21 +0000179 <artifactId>org.apache.felix.metatype</artifactId>
180 </dependency>
181 <dependency>
182 <groupId>org.apache.felix</groupId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000183 <artifactId>org.apache.felix.prefs</artifactId>
184 </dependency>
185 <dependency>
186 <groupId>org.ops4j.pax.logging</groupId>
187 <artifactId>pax-logging-api</artifactId>
188 </dependency>
189 <dependency>
190 <groupId>org.ops4j.pax.logging</groupId>
191 <artifactId>pax-logging-service</artifactId>
192 </dependency>
193 <dependency>
194 <groupId>org.ops4j.pax.url</groupId>
195 <artifactId>pax-url-mvn</artifactId>
196 </dependency>
197 <dependency>
198 <groupId>org.ops4j.pax.url</groupId>
199 <artifactId>pax-url-wrap</artifactId>
200 </dependency>
201 <dependency>
202 <groupId>org.apache.geronimo.specs</groupId>
203 <artifactId>geronimo-servlet_2.5_spec</artifactId>
204 </dependency>
205 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000206 <groupId>org.apache.sshd</groupId>
207 <artifactId>sshd-core</artifactId>
208 </dependency>
209 <dependency>
210 <groupId>org.osgi</groupId>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000211 <artifactId>org.osgi.impl.bundle.jmx</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000212 </dependency>
Guillaume Nodetb417d982009-05-05 15:46:15 +0000213 <dependency>
214 <groupId>org.eclipse</groupId>
215 <artifactId>osgi</artifactId>
216 </dependency>
217 <dependency>
218 <groupId>org.apache.felix</groupId>
219 <artifactId>org.apache.felix.framework</artifactId>
220 </dependency>
Guillaume Nodet6b2946d2009-06-18 20:57:23 +0000221 <dependency>
222 <groupId>org.apache.geronimo</groupId>
223 <artifactId>blueprint-bundle</artifactId>
224 </dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000225 </dependencies>
226 <build>
227 <resources>
228 <resource>
229 <directory>${pom.basedir}/src/main/filtered-resources</directory>
230 <filtering>true</filtering>
231 <includes>
232 <include>**/*</include>
233 </includes>
234 </resource>
235 </resources>
Guillaume Nodet88896e32009-08-27 15:03:40 +0000236 <filters>
237 <filter>target/filter.txt</filter>
238 </filters>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000239 <plugins>
240 <plugin>
241 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet88896e32009-08-27 15:03:40 +0000242 <artifactId>maven-antrun-plugin</artifactId>
243 <version>1.2</version>
244 <executions>
245 <execution>
246 <id>create-prop</id>
247 <phase>generate-resources</phase>
248 <configuration>
249 <tasks>
250 <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
251 <property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp"/>
252 <property name="mv" value="${project.version}"/>
253 <echo message="Maven version: ${mv}" />
254 <propertyregex property="ov.p1" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace="\1" defaultValue="0"/>
255 <propertyregex property="ov.p2" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\2" defaultValue=".0"/>
256 <propertyregex property="ov.p3" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\3" defaultValue=".0"/>
257 <propertyregex property="ov.p4" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\4" defaultValue=""/>
258 <propertyregex property="ov.p1a" input="${ov.p1}" regexp="(.+)" replace="\1" defaultValue="0"/>
259 <propertyregex property="ov.p2a" input="${ov.p2}" regexp="(\..+)" replace="\1" defaultValue=".0"/>
260 <propertyregex property="ov.p3a" input="${ov.p3}" regexp="(\..+)" replace="\1" defaultValue=".0"/>
261 <propertyregex property="ov.p4a" input="${ov.p4}" regexp="(\..+)" replace="\1" defaultValue=""/>
262 <property name="ov" value="${ov.p1a}${ov.p2a}${ov.p3a}${ov.p4a}"/>
263 <echo message="OSGi version: ${ov}" />
264 <mkdir dir="target"/>
265 <echo message="karaf.osgi.version = ${ov}" file="target/filter.txt"/>
266 </tasks>
267 </configuration>
268 <goals>
269 <goal>run</goal>
270 </goals>
271 </execution>
272 </executions>
273 <dependencies>
274 <dependency>
275 <groupId>ant-contrib</groupId>
276 <artifactId>ant-contrib</artifactId>
277 <version>1.0b3</version>
278 </dependency>
279 <dependency>
280 <groupId>ant</groupId>
281 <artifactId>ant-optional</artifactId>
282 <version>1.5.3-1</version>
283 </dependency>
284 </dependencies>
285 </plugin>
286 <plugin>
287 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000288 <artifactId>maven-resources-plugin</artifactId>
289 <executions>
290 <execution>
291 <id>filter</id>
292 <phase>generate-resources</phase>
293 <goals>
294 <goal>resources</goal>
295 </goals>
296 </execution>
297 </executions>
298 </plugin>
299 <plugin>
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-dependency-plugin</artifactId>
302 <executions>
303 <execution>
304 <id>copy</id>
305 <phase>generate-resources</phase>
306 <goals>
307 <goal>copy</goal>
308 </goals>
309 <configuration>
310 <artifactItems>
311 <artifactItem>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000312 <groupId>org.apache.felix.karaf</groupId>
313 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000314 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet1becb5b2009-05-04 07:56:47 +0000315 <destFileName>karaf.jar</destFileName>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000316 </artifactItem>
317 <artifactItem>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000318 <groupId>org.apache.felix.karaf</groupId>
319 <artifactId>org.apache.felix.karaf.client</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000320 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet1becb5b2009-05-04 07:56:47 +0000321 <destFileName>karaf-client.jar</destFileName>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000322 </artifactItem>
323 <artifactItem>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000324 <groupId>org.apache.felix.karaf.jaas</groupId>
325 <artifactId>org.apache.felix.karaf.jaas.boot</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000326 <outputDirectory>target/dependencies</outputDirectory>
Guillaume Nodet1becb5b2009-05-04 07:56:47 +0000327 <destFileName>karaf-jaas-boot.jar</destFileName>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000328 </artifactItem>
329 </artifactItems>
330 </configuration>
331 </execution>
332 </executions>
333 </plugin>
334 <plugin>
335 <groupId>org.codehaus.mojo</groupId>
336 <artifactId>build-helper-maven-plugin</artifactId>
337 <executions>
338 <execution>
339 <id>attach-artifacts</id>
340 <phase>package</phase>
341 <goals>
342 <goal>attach-artifact</goal>
343 </goals>
344 <configuration>
345 <artifacts>
346 <artifact>
347 <file>target/classes/features.xml</file>
348 <type>xml</type>
349 <classifier>features</classifier>
350 </artifact>
351 </artifacts>
352 </configuration>
353 </execution>
354 </executions>
355 </plugin>
356 <plugin>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-assembly-plugin</artifactId>
359 <executions>
360 <execution>
361 <id>unix-bin</id>
362 <phase>package</phase>
363 <goals>
364 <goal>single</goal>
365 </goals>
366 <configuration>
367 <descriptors>
368 <descriptor>src/main/descriptors/unix-bin.xml</descriptor>
369 </descriptors>
370 <finalName>${pom.artifactId}-${pom.version}</finalName>
371 <tarLongFileMode>gnu</tarLongFileMode>
372 </configuration>
373 </execution>
374 <execution>
375 <id>windows-bin</id>
376 <phase>package</phase>
377 <goals>
378 <goal>single</goal>
379 </goals>
380 <configuration>
381 <descriptors>
382 <descriptor>src/main/descriptors/windows-bin.xml</descriptor>
383 </descriptors>
384 <finalName>${pom.artifactId}-${pom.version}</finalName>
385 <appendAssemblyId>true</appendAssemblyId>
386 <assemblyId/>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000387 </configuration>
388 </execution>
389 <execution>
390 <id>unix-src</id>
391 <phase>package</phase>
392 <goals>
393 <goal>single</goal>
394 </goals>
395 <configuration>
396 <descriptors>
397 <descriptor>src/main/descriptors/unix-src.xml</descriptor>
398 </descriptors>
399 <tarLongFileMode>gnu</tarLongFileMode>
400 </configuration>
401 </execution>
402 <execution>
403 <id>windows-src</id>
404 <phase>package</phase>
405 <goals>
406 <goal>single</goal>
407 </goals>
408 <configuration>
409 <descriptors>
410 <descriptor>src/main/descriptors/windows-src.xml</descriptor>
411 </descriptors>
412 </configuration>
413 </execution>
414 </executions>
415 </plugin>
416 </plugins>
417 </build>
418
419 <profiles>
420 <profile>
421 <id>assembly-src</id>
422 <build>
423 <plugins>
424 <plugin>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-assembly-plugin</artifactId>
427 <executions>
428 <execution>
429 <id>unix-src</id>
430 <phase>package</phase>
431 <goals>
432 <goal>attached</goal>
433 </goals>
434 <configuration>
435 <descriptors>
436 <descriptor>src/main/descriptors/unix-src.xml</descriptor>
437 </descriptors>
438 </configuration>
439 </execution>
440 <execution>
441 <id>windows-src</id>
442 <phase>package</phase>
443 <goals>
444 <goal>attached</goal>
445 </goals>
446 <configuration>
447 <descriptors>
448 <descriptor>src/main/descriptors/windows-src.xml</descriptor>
449 </descriptors>
450 </configuration>
451 </execution>
452 </executions>
453 </plugin>
454 </plugins>
455 </build>
456 </profile>
457 </profiles>
458</project>