blob: dac5110c8165c279aaae1d74a366af4f17943cf2 [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
32 <groupId>org.apache.felix</groupId>
33 <artifactId>Property-Handler-In-Felix</artifactId>
34 <version>1.9.0-SNAPSHOT</version>
35
36 <packaging>pom</packaging>
37
38 <dependencies>
39 <dependency>
40 <groupId>org.apache.felix</groupId>
41 <artifactId>org.apache.felix.main.distribution</artifactId>
42 <type>zip</type>
43 </dependency>
44 <dependency>
45 <groupId>org.apache.felix</groupId>
46 <artifactId>org.apache.felix.ipojo</artifactId>
47 </dependency>
48 <dependency>
49 <groupId>org.apache.felix</groupId>
50 <artifactId>org.apache.felix.ipojo.arch.gogo</artifactId>
51 </dependency>
52
53 <dependency>
54 <groupId>org.apache.felix</groupId>
55 <artifactId>org.apache.felix.log</artifactId>
56 <version>1.0.1</version>
57 </dependency>
58
59 <!-- our project -->
60 <dependency>
61 <groupId>${project.groupId}</groupId>
62 <artifactId>org.apache.felix.ipojo.properties.handler</artifactId>
63 <version>${project.version}</version>
64 </dependency>
65 <dependency>
66 <groupId>${project.groupId}</groupId>
67 <artifactId>org.apache.felix.ipojo.properties.consumer</artifactId>
68 <version>${project.version}</version>
69 </dependency>
70 </dependencies>
71
72 <build>
73 <plugins>
74 <plugin>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-dependency-plugin</artifactId>
77 <version>2.7</version>
78 <executions>
79
80 <execution>
81 <id>unpack-felix</id>
82 <phase>package</phase>
83 <goals>
84 <goal>unpack-dependencies</goal>
85 </goals>
86 <configuration>
87 <includeArtifactIds>org.apache.felix.main.distribution</includeArtifactIds>
88 <outputDirectory>${project.build.directory}</outputDirectory>
89 </configuration>
90 </execution>
91
92 <execution>
93 <id>copy-bundles</id>
94 <phase>package</phase>
95 <goals>
96 <goal>copy-dependencies</goal>
97 </goals>
98 <configuration>
99 <includeArtifactIds>
100 org.apache.felix.ipojo.properties.handler,
101 org.apache.felix.ipojo.properties.consumer,
102 org.apache.felix.ipojo,
103 org.apache.felix.ipojo.arch.gogo
104 </includeArtifactIds>
105 <outputDirectory>${project.build.directory}/felix-framework-${felix.version}/bundle
106 </outputDirectory>
107 </configuration>
108 </execution>
109 </executions>
110 </plugin>
111
112 <!--
113 we also copy properties file to the distribution folder,
114 the properties are stored in src/main/resources/props
115 -->
116 <plugin>
117 <artifactId>maven-resources-plugin</artifactId>
118 <version>2.6</version>
119 <executions>
120 <execution>
121 <id>copy-resources</id>
122 <phase>package</phase>
123 <goals>
124 <goal>copy-resources</goal>
125 </goals>
126 <configuration>
127 <outputDirectory>
128 ${project.build.directory}/felix-framework-${felix.version}/props
129 </outputDirectory>
130 <resources>
131 <resource>
132 <directory>src/main/resources/props</directory>
133 </resource>
134 </resources>
135 </configuration>
136 </execution>
137 </executions>
138 </plugin>
139 </plugins>
140 </build>
141</project>