blob: ba34f237e9fdb5938ac1ee9a4b85fb710d106093 [file] [log] [blame]
Clement Escoffierb7fd6702013-04-21 09:32:28 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
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 -->
20
21<project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25
26 <parent>
27 <groupId>org.apache.felix</groupId>
28 <artifactId>ipojo-handler-tutorial</artifactId>
29 <version>1.9.0-SNAPSHOT</version>
30 </parent>
31
Clement Escoffierb7fd6702013-04-21 09:32:28 +000032 <artifactId>Property-Handler-In-Felix</artifactId>
33 <version>1.9.0-SNAPSHOT</version>
34
35 <packaging>pom</packaging>
36
37 <dependencies>
Clement Escoffierb7fd6702013-04-21 09:32:28 +000038 <!-- our project -->
39 <dependency>
40 <groupId>${project.groupId}</groupId>
41 <artifactId>org.apache.felix.ipojo.properties.handler</artifactId>
42 <version>${project.version}</version>
43 </dependency>
44 <dependency>
45 <groupId>${project.groupId}</groupId>
46 <artifactId>org.apache.felix.ipojo.properties.consumer</artifactId>
47 <version>${project.version}</version>
48 </dependency>
49 </dependencies>
50
51 <build>
52 <plugins>
53 <plugin>
54 <groupId>org.apache.maven.plugins</groupId>
55 <artifactId>maven-dependency-plugin</artifactId>
56 <version>2.7</version>
57 <executions>
58
59 <execution>
60 <id>unpack-felix</id>
61 <phase>package</phase>
62 <goals>
63 <goal>unpack-dependencies</goal>
64 </goals>
65 <configuration>
66 <includeArtifactIds>org.apache.felix.main.distribution</includeArtifactIds>
67 <outputDirectory>${project.build.directory}</outputDirectory>
68 </configuration>
69 </execution>
70
71 <execution>
72 <id>copy-bundles</id>
73 <phase>package</phase>
74 <goals>
75 <goal>copy-dependencies</goal>
76 </goals>
77 <configuration>
78 <includeArtifactIds>
79 org.apache.felix.ipojo.properties.handler,
80 org.apache.felix.ipojo.properties.consumer,
81 org.apache.felix.ipojo,
82 org.apache.felix.ipojo.arch.gogo
83 </includeArtifactIds>
84 <outputDirectory>${project.build.directory}/felix-framework-${felix.version}/bundle
85 </outputDirectory>
86 </configuration>
87 </execution>
88 </executions>
89 </plugin>
90
91 <!--
92 we also copy properties file to the distribution folder,
93 the properties are stored in src/main/resources/props
94 -->
95 <plugin>
96 <artifactId>maven-resources-plugin</artifactId>
97 <version>2.6</version>
98 <executions>
99 <execution>
100 <id>copy-resources</id>
101 <phase>package</phase>
102 <goals>
103 <goal>copy-resources</goal>
104 </goals>
105 <configuration>
106 <outputDirectory>
107 ${project.build.directory}/felix-framework-${felix.version}/props
108 </outputDirectory>
109 <resources>
110 <resource>
111 <directory>src/main/resources/props</directory>
112 </resource>
113 </resources>
114 </configuration>
115 </execution>
116 </executions>
117 </plugin>
118 </plugins>
119 </build>
120</project>