blob: c0767b6b0e1fd55403c215d6107ef918ad384e91 [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>
Clement Escoffier5d7f5b82013-10-02 17:46:31 +000082
83 <dependencies>
84 </dependencies>
Clement Escoffier6f60df12013-07-02 16:58:45 +000085 </plugin>
86
87 <!--
88 we also copy properties file to the distribution folder,
89 the properties are stored in src/main/resources/props
90 -->
91 <plugin>
92 <artifactId>maven-resources-plugin</artifactId>
93 <version>2.6</version>
94 <executions>
95 <execution>
96 <id>copy-skeleton</id>
97 <phase>package</phase>
98 <goals>
99 <goal>copy-resources</goal>
100 </goals>
101 <configuration>
102 <outputDirectory>
103 ${project.build.directory}/dist
104 </outputDirectory>
105 <resources>
106 <resource>
107 <directory>src/main/skeleton</directory>
108 <filtering>true</filtering>
109 </resource>
110 </resources>
111 <includeEmptyDirs>true</includeEmptyDirs>
112 </configuration>
113 </execution>
114 <execution>
115 <id>copy-solution</id>
116 <phase>package</phase>
117 <goals>
118 <goal>copy-resources</goal>
119 </goals>
120 <configuration>
121 <outputDirectory>
122 ${project.build.directory}/dist/solution
123 </outputDirectory>
124 <resources>
125 <resource>
126 <directory>src/main/solution</directory>
127 <filtering>true</filtering>
128 </resource>
129 </resources>
130 <includeEmptyDirs>true</includeEmptyDirs>
131 </configuration>
132 </execution>
133 <execution>
134 <id>copy-legal</id>
135 <phase>package</phase>
136 <goals>
137 <goal>copy-resources</goal>
138 </goals>
139 <configuration>
140 <outputDirectory>
141 ${project.build.directory}/dist/
142 </outputDirectory>
143 <resources>
144 <resource>
145 <directory>${project.build.directory}/maven-shared-archive-resources/META-INF</directory>
146 <filtering>false</filtering>
147 </resource>
148 </resources>
149 <includeEmptyDirs>true</includeEmptyDirs>
150 </configuration>
151 </execution>
152 </executions>
153 </plugin>
154 <plugin>
155 <artifactId>maven-antrun-plugin</artifactId>
156 <version>1.7</version>
157 <executions>
158 <execution>
159 <phase>package</phase>
160 <configuration>
161 <target>
162 <ant dir="target/dist" target="clean"/>
163 <ant dir="target/dist" target="package"/>
164 <ant dir="target/dist" target="dist"/>
165 </target>
166 </configuration>
167 <goals>
168 <goal>run</goal>
169 </goals>
170 </execution>
171 </executions>
Clement Escoffier5d7f5b82013-10-02 17:46:31 +0000172 <dependencies>
173 <dependency>
174 <groupId>com.sun</groupId>
175 <artifactId>tools</artifactId>
176 <version>1.7.0</version>
177 <scope>system</scope>
178 <systemPath>${java.home}/../lib/tools.jar</systemPath>
179 </dependency>
180 </dependencies>
Clement Escoffier6f60df12013-07-02 16:58:45 +0000181 </plugin>
182 <plugin>
183 <groupId>org.codehaus.mojo</groupId>
184 <artifactId>build-helper-maven-plugin</artifactId>
185 <version>1.8</version>
186 <executions>
187 <execution>
188 <id>attach-artifacts</id>
189 <phase>package</phase>
190 <goals>
191 <goal>attach-artifact</goal>
192 </goals>
193 <configuration>
194 <artifacts>
195 <artifact>
196 <file>${project.build.directory}/dist/dist/tutorial.zip</file>
197 <type>zip</type>
198 </artifact>
199 </artifacts>
200 </configuration>
201 </execution>
202 </executions>
203 </plugin>
204
205 <plugin>
206 <groupId>org.codehaus.mojo</groupId>
207 <artifactId>ianal-maven-plugin</artifactId>
208 <executions>
209 <execution>
210 <goals>
211 <goal>verify-legal-files</goal>
212 </goals>
213 <configuration>
214 <!-- as it's not possible to configure the plugin to check files contained in the root of
215 the zip file, we have to skip it -->
216 <skip>true</skip>
217 </configuration>
218 </execution>
219 </executions>
220 </plugin>
221 </plugins>
222 </build>
223
224 <dependencies>
225 <dependency>
226 <groupId>org.apache.felix</groupId>
227 <artifactId>org.apache.felix.ipojo.ant</artifactId>
228 <version>${ipojo.ant.version}</version>
229 </dependency>
230 <dependency>
231 <groupId>biz.aQute</groupId>
232 <artifactId>bnd</artifactId>
233 <version>${bnd.version}</version>
234 </dependency>
235
236 <dependency>
237 <groupId>org.apache.felix</groupId>
238 <artifactId>org.apache.felix.ipojo.distribution.quickstart</artifactId>
239 <version>${project.version}</version>
240 <type>zip</type>
241 </dependency>
242 <dependency>
243 <groupId>org.apache.felix</groupId>
244 <artifactId>org.apache.felix.ipojo</artifactId>
245 <version>${project.version}</version>
246 </dependency>
247 <dependency>
248 <groupId>org.apache.felix</groupId>
249 <artifactId>org.apache.felix.ipojo.gogo</artifactId>
250 <version>${project.version}</version>
251 </dependency>
252 <dependency>
253 <groupId>org.apache.felix</groupId>
254 <artifactId>org.apache.felix.ipojo.annotations</artifactId>
255 <version>${project.version}</version>
256 </dependency>
257 </dependencies>
258
259</project>