blob: 364015b53c9f617704b3f8b83c324ec768324069 [file] [log] [blame]
Clement Escoffier01c0d7b2013-07-02 08:47:10 +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>
Clement Escoffier7ebc4572013-07-21 17:21:33 +000030 <relativePath>../../../../pom/pom.xml</relativePath>
Clement Escoffier01c0d7b2013-07-02 08:47:10 +000031 </parent>
32
33
34 <packaging>pom</packaging>
35
36 <name>Apache Felix iPOJO - Distribution - Quickstart</name>
37 <artifactId>org.apache.felix.ipojo.distribution.quickstart</artifactId>
38 <version>1.10.2-SNAPSHOT</version>
39
40 <properties>
41 <!-- Felix version -->
42 <felix.version>4.2.1</felix.version>
43
44 <!-- The location where the felix distribution is downloaded and expanded -->
45 <felix.destination>${project.build.directory}/felix-distribution</felix.destination>
46
47 <!-- The location where the legal files are generated -->
48 <legal.files>${project.build.directory}/maven-shared-archive-resources/META-INF</legal.files>
49
50 <!-- The base directory of the distribution -->
51 <distribution.baseDirectory>ipojo-distribution-${project.version}</distribution.baseDirectory>
52 </properties>
53
54 <description>
55 A distribution of Felix including iPOJO core and gogo commands
56 </description>
57
58 <dependencies>
59 <dependency>
60 <groupId>org.apache.felix</groupId>
61 <artifactId>org.apache.felix.main.distribution</artifactId>
62 <version>${felix.version}</version>
63 <type>zip</type>
64 </dependency>
65 <dependency>
66 <groupId>org.apache.felix</groupId>
67 <artifactId>org.apache.felix.ipojo</artifactId>
68 <version>${project.version}</version>
69 </dependency>
70 <dependency>
71 <groupId>org.apache.felix</groupId>
72 <artifactId>org.apache.felix.ipojo.gogo</artifactId>
73 <version>${project.version}</version>
74 </dependency>
75 </dependencies>
76
77 <build>
78 <plugins>
79 <!--
80 The build is configured to download and unpack the felix distribution to the felix-distribution folder.
81 The assembly copy the unpacked file, stripping the base directory of the distribution
82 -->
83
84 <plugin>
85 <artifactId>maven-dependency-plugin</artifactId>
86 <version>2.8</version>
87 <executions>
88 <execution>
89 <id>copy-felix-distribution</id>
90 <phase>package</phase>
91 <goals>
92 <goal>unpack-dependencies</goal>
93 </goals>
94 <configuration>
95 <includeGroupIds>org.apache.felix</includeGroupIds>
96 <includeTypes>zip</includeTypes>
Clement Escoffier7ebc4572013-07-21 17:21:33 +000097 <includeArtifactIds>org.apache.felix.main.distribution</includeArtifactIds>
Clement Escoffier01c0d7b2013-07-02 08:47:10 +000098 <outputDirectory>${felix.destination}</outputDirectory>
99 </configuration>
100 </execution>
101 </executions>
102 </plugin>
103
104 <plugin>
105 <artifactId>maven-assembly-plugin</artifactId>
106 <version>2.4</version>
107 <configuration>
108 <attach>true</attach>
109 </configuration>
110 <executions>
111 <execution>
112 <id>build-distribution</id>
113 <goals>
114 <goal>single</goal>
115 </goals>
116 <phase>package</phase>
117 <configuration>
118 <descriptors>
119 <descriptor>src/main/assembly/distribution.xml</descriptor>
120 </descriptors>
121
122 <appendAssemblyId>false</appendAssemblyId>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
127
128 <plugin>
129 <groupId>org.codehaus.mojo</groupId>
130 <artifactId>ianal-maven-plugin</artifactId>
131 <executions>
132 <execution>
133 <goals>
134 <goal>verify-legal-files</goal>
135 </goals>
136 <configuration>
137 <searchPaths>
138 <searchPath>${distribution.baseDirectory}</searchPath>
139 </searchPaths>
140 </configuration>
141 </execution>
142 </executions>
143 </plugin>
144 </plugins>
145 </build>
146</project>