blob: 2ab81aeea9ff197504e186651fecfed3b6e5d068 [file] [log] [blame]
Clement Escoffier6f60df12013-07-02 16:58:45 +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>felix-parent</artifactId>
29 <version>2.1</version>
30 <relativePath>../../../../pom/pom.xml</relativePath>
31 </parent>
32
33 <packaging>pom</packaging>
34
35 <name>Apache Felix iPOJO - Distribution - 10 minutes tutorial</name>
36 <artifactId>org.apache.felix.ipojo.distribution.10mintutorial</artifactId>
37 <version>1.10.2-SNAPSHOT</version>
38
39
40 <description>This project builds the 10 minutes tutorial package</description>
41
42 <properties>
43 <ipojo.ant.version>${project.version}</ipojo.ant.version>
44 <bnd.version>1.50.0</bnd.version>
45 </properties>
46
47 <build>
48 <plugins>
49 <plugin>
50 <groupId>org.apache.maven.plugins</groupId>
51 <artifactId>maven-dependency-plugin</artifactId>
52 <version>2.7</version>
53 <executions>
54
55 <execution>
56 <id>unpack-quickstart</id>
57 <phase>package</phase>
58 <goals>
59 <goal>unpack-dependencies</goal>
60 </goals>
61 <configuration>
62 <includeArtifactIds>org.apache.felix.ipojo.distribution.quickstart</includeArtifactIds>
63 <outputDirectory>${project.build.directory}/dist</outputDirectory>
64 </configuration>
65 </execution>
66
67 <execution>
68 <id>copy-ant-tasks</id>
69 <phase>package</phase>
70 <goals>
71 <goal>copy-dependencies</goal>
72 </goals>
73 <configuration>
74 <includeArtifactIds>
75 org.apache.felix.ipojo.ant,
76 bnd
77 </includeArtifactIds>
78 <outputDirectory>${project.build.directory}/dist/tasks</outputDirectory>
79 </configuration>
80 </execution>
81 </executions>
82 </plugin>
83
84 <!--
85 we also copy properties file to the distribution folder,
86 the properties are stored in src/main/resources/props
87 -->
88 <plugin>
89 <artifactId>maven-resources-plugin</artifactId>
90 <version>2.6</version>
91 <executions>
92 <execution>
93 <id>copy-skeleton</id>
94 <phase>package</phase>
95 <goals>
96 <goal>copy-resources</goal>
97 </goals>
98 <configuration>
99 <outputDirectory>
100 ${project.build.directory}/dist
101 </outputDirectory>
102 <resources>
103 <resource>
104 <directory>src/main/skeleton</directory>
105 <filtering>true</filtering>
106 </resource>
107 </resources>
108 <includeEmptyDirs>true</includeEmptyDirs>
109 </configuration>
110 </execution>
111 <execution>
112 <id>copy-solution</id>
113 <phase>package</phase>
114 <goals>
115 <goal>copy-resources</goal>
116 </goals>
117 <configuration>
118 <outputDirectory>
119 ${project.build.directory}/dist/solution
120 </outputDirectory>
121 <resources>
122 <resource>
123 <directory>src/main/solution</directory>
124 <filtering>true</filtering>
125 </resource>
126 </resources>
127 <includeEmptyDirs>true</includeEmptyDirs>
128 </configuration>
129 </execution>
130 <execution>
131 <id>copy-legal</id>
132 <phase>package</phase>
133 <goals>
134 <goal>copy-resources</goal>
135 </goals>
136 <configuration>
137 <outputDirectory>
138 ${project.build.directory}/dist/
139 </outputDirectory>
140 <resources>
141 <resource>
142 <directory>${project.build.directory}/maven-shared-archive-resources/META-INF</directory>
143 <filtering>false</filtering>
144 </resource>
145 </resources>
146 <includeEmptyDirs>true</includeEmptyDirs>
147 </configuration>
148 </execution>
149 </executions>
150 </plugin>
151 <plugin>
152 <artifactId>maven-antrun-plugin</artifactId>
153 <version>1.7</version>
154 <executions>
155 <execution>
156 <phase>package</phase>
157 <configuration>
158 <target>
159 <ant dir="target/dist" target="clean"/>
160 <ant dir="target/dist" target="package"/>
161 <ant dir="target/dist" target="dist"/>
162 </target>
163 </configuration>
164 <goals>
165 <goal>run</goal>
166 </goals>
167 </execution>
168 </executions>
169 </plugin>
170 <plugin>
171 <groupId>org.codehaus.mojo</groupId>
172 <artifactId>build-helper-maven-plugin</artifactId>
173 <version>1.8</version>
174 <executions>
175 <execution>
176 <id>attach-artifacts</id>
177 <phase>package</phase>
178 <goals>
179 <goal>attach-artifact</goal>
180 </goals>
181 <configuration>
182 <artifacts>
183 <artifact>
184 <file>${project.build.directory}/dist/dist/tutorial.zip</file>
185 <type>zip</type>
186 </artifact>
187 </artifacts>
188 </configuration>
189 </execution>
190 </executions>
191 </plugin>
192
193 <plugin>
194 <groupId>org.codehaus.mojo</groupId>
195 <artifactId>ianal-maven-plugin</artifactId>
196 <executions>
197 <execution>
198 <goals>
199 <goal>verify-legal-files</goal>
200 </goals>
201 <configuration>
202 <!-- as it's not possible to configure the plugin to check files contained in the root of
203 the zip file, we have to skip it -->
204 <skip>true</skip>
205 </configuration>
206 </execution>
207 </executions>
208 </plugin>
209 </plugins>
210 </build>
211
212 <dependencies>
213 <dependency>
214 <groupId>org.apache.felix</groupId>
215 <artifactId>org.apache.felix.ipojo.ant</artifactId>
216 <version>${ipojo.ant.version}</version>
217 </dependency>
218 <dependency>
219 <groupId>biz.aQute</groupId>
220 <artifactId>bnd</artifactId>
221 <version>${bnd.version}</version>
222 </dependency>
223
224 <dependency>
225 <groupId>org.apache.felix</groupId>
226 <artifactId>org.apache.felix.ipojo.distribution.quickstart</artifactId>
227 <version>${project.version}</version>
228 <type>zip</type>
229 </dependency>
230 <dependency>
231 <groupId>org.apache.felix</groupId>
232 <artifactId>org.apache.felix.ipojo</artifactId>
233 <version>${project.version}</version>
234 </dependency>
235 <dependency>
236 <groupId>org.apache.felix</groupId>
237 <artifactId>org.apache.felix.ipojo.gogo</artifactId>
238 <version>${project.version}</version>
239 </dependency>
240 <dependency>
241 <groupId>org.apache.felix</groupId>
242 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
243 <version>${project.version}</version>
244 </dependency>
245 </dependencies>
246
247</project>