blob: 9dfc3db7e27c3eeb68f1ad43d1bfd2899850639e [file] [log] [blame]
Clement Escoffierd85236c2013-04-22 12:12:33 +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>org.apache.felix.ipojo.distributions</artifactId>
29 <version>1.9.0-SNAPSHOT</version>
30 </parent>
31
32 <artifactId>ten-minutes-tutorial</artifactId>
33 <version>1.9.0-SNAPSHOT</version>
34
35 <description>This project builds the 10 minutes tutorial package</description>
36
37
38 <properties>
39 <felix.version>4.2.1</felix.version>
Clement Escoffier4eede512013-06-30 07:29:15 +000040 <ipojo.ant.version>1.10.1</ipojo.ant.version>
41 <ipojo.runtime.version>1.10.1</ipojo.runtime.version>
Clement Escoffierd85236c2013-04-22 12:12:33 +000042 <bnd.version>1.50.0</bnd.version>
43 </properties>
44
45 <build>
46 <plugins>
47 <plugin>
48 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-dependency-plugin</artifactId>
50 <version>2.7</version>
51 <executions>
52
53 <execution>
54 <id>unpack-felix</id>
55 <phase>package</phase>
56 <goals>
57 <goal>unpack-dependencies</goal>
58 </goals>
59 <configuration>
60 <includeArtifactIds>org.apache.felix.main.distribution</includeArtifactIds>
61 <outputDirectory>${project.build.directory}/dist</outputDirectory>
62 </configuration>
63 </execution>
64
65 <execution>
66 <id>copy-ant-tasks</id>
67 <phase>package</phase>
68 <goals>
69 <goal>copy-dependencies</goal>
70 </goals>
71 <configuration>
72 <includeArtifactIds>
73 org.apache.felix.ipojo.ant,
74 bnd
75 </includeArtifactIds>
76 <outputDirectory>${project.build.directory}/dist/tasks
77 </outputDirectory>
78 </configuration>
79 </execution>
80
81 <execution>
82 <id>copy-bundles</id>
83 <phase>package</phase>
84 <goals>
85 <goal>copy-dependencies</goal>
86 </goals>
87 <configuration>
88 <includeArtifactIds>
89 org.apache.felix.ipojo.properties.handler,
90 org.apache.felix.ipojo.properties.consumer,
91 org.apache.felix.ipojo,
Clement Escoffier4eede512013-06-30 07:29:15 +000092 org.apache.felix.ipojo.gogo
Clement Escoffierd85236c2013-04-22 12:12:33 +000093 </includeArtifactIds>
94 <outputDirectory>${project.build.directory}/dist/felix-framework-${felix.version}/bundle
95 </outputDirectory>
96 </configuration>
97 </execution>
98 </executions>
99 </plugin>
100
101 <!--
102 we also copy properties file to the distribution folder,
103 the properties are stored in src/main/resources/props
104 -->
105 <plugin>
106 <artifactId>maven-resources-plugin</artifactId>
107 <version>2.6</version>
108 <executions>
109 <execution>
110 <id>copy-skeleton</id>
111 <phase>package</phase>
112 <goals>
113 <goal>copy-resources</goal>
114 </goals>
115 <configuration>
116 <outputDirectory>
117 ${project.build.directory}/dist
118 </outputDirectory>
119 <resources>
120 <resource>
121 <directory>src/main/skeleton</directory>
122 <filtering>true</filtering>
123 </resource>
124 </resources>
125 <includeEmptyDirs>true</includeEmptyDirs>
126 </configuration>
127 </execution>
128 <execution>
129 <id>copy-solution</id>
130 <phase>package</phase>
131 <goals>
132 <goal>copy-resources</goal>
133 </goals>
134 <configuration>
135 <outputDirectory>
136 ${project.build.directory}/dist/solution
137 </outputDirectory>
138 <resources>
139 <resource>
140 <directory>src/main/solution</directory>
141 <filtering>true</filtering>
142 </resource>
143 </resources>
144 <includeEmptyDirs>true</includeEmptyDirs>
145 </configuration>
146 </execution>
147 </executions>
148 </plugin>
149 <plugin>
150 <artifactId>maven-antrun-plugin</artifactId>
151 <version>1.7</version>
152 <executions>
153 <execution>
154 <phase>package</phase>
155 <configuration>
156 <target>
157 <ant dir="target/dist" target="clean"/>
158 <ant dir="target/dist" target="package"/>
159 <ant dir="target/dist" target="dist"/>
160 </target>
161 </configuration>
162 <goals>
163 <goal>run</goal>
164 </goals>
165 </execution>
166 </executions>
167 </plugin>
168 <plugin>
169 <groupId>org.codehaus.mojo</groupId>
170 <artifactId>build-helper-maven-plugin</artifactId>
171 <version>1.8</version>
172 <executions>
173 <execution>
174 <id>attach-artifacts</id>
175 <phase>package</phase>
176 <goals>
177 <goal>attach-artifact</goal>
178 </goals>
179 <configuration>
180 <artifacts>
181 <artifact>
182 <file>${project.build.directory}/dist/dist/tutorial.zip</file>
183 <type>zip</type>
184 </artifact>
185 </artifacts>
186 </configuration>
187 </execution>
188 </executions>
189 </plugin>
190 </plugins>
191 </build>
192
193 <dependencies>
194 <dependency>
195 <groupId>org.apache.felix</groupId>
196 <artifactId>org.apache.felix.ipojo.ant</artifactId>
197 <version>${ipojo.ant.version}</version>
198 </dependency>
199 <dependency>
200 <groupId>biz.aQute</groupId>
201 <artifactId>bnd</artifactId>
202 <version>${bnd.version}</version>
203 </dependency>
204
205 <dependency>
206 <groupId>org.apache.felix</groupId>
207 <artifactId>org.apache.felix.main.distribution</artifactId>
208 <type>zip</type>
209 </dependency>
210 <dependency>
211 <groupId>org.apache.felix</groupId>
212 <artifactId>org.apache.felix.ipojo</artifactId>
213 <version>${ipojo.runtime.version}</version>
214 </dependency>
215 <dependency>
216 <groupId>org.apache.felix</groupId>
Clement Escoffier4eede512013-06-30 07:29:15 +0000217 <artifactId>org.apache.felix.ipojo.gogo</artifactId>
Clement Escoffierd85236c2013-04-22 12:12:33 +0000218 </dependency>
219 <dependency>
220 <groupId>org.apache.felix</groupId>
221 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
222 </dependency>
223 </dependencies>
224
225 <dependencyManagement>
226 <dependencies>
227 <dependency>
228 <groupId>org.apache.felix</groupId>
229 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffier4eede512013-06-30 07:29:15 +0000230 <version>1.10.1</version>
Clement Escoffierd85236c2013-04-22 12:12:33 +0000231 </dependency>
232 <dependency>
233 <groupId>org.apache.felix</groupId>
Clement Escoffier4eede512013-06-30 07:29:15 +0000234 <artifactId>org.apache.felix.ipojo.gogo</artifactId>
235 <version>1.10.1</version>
Clement Escoffierd85236c2013-04-22 12:12:33 +0000236 </dependency>
237 <dependency>
238 <groupId>org.apache.felix</groupId>
239 <artifactId>org.apache.felix.main.distribution</artifactId>
240 <version>4.2.1</version>
241 <type>zip</type>
242 </dependency>
243 <dependency>
244 <groupId>org.apache.felix</groupId>
245 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
Clement Escoffier4eede512013-06-30 07:29:15 +0000246 <version>1.10.1</version>
Clement Escoffierd85236c2013-04-22 12:12:33 +0000247 </dependency>
248 </dependencies>
249 </dependencyManagement>
250
251</project>