Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 1 | <?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 | |
Clement Escoffier | 9471199 | 2013-10-08 14:24:52 +0000 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | |
| 24 | <parent> |
| 25 | <groupId>org.apache.felix</groupId> |
| 26 | <artifactId>felix-parent</artifactId> |
| 27 | <version>2.1</version> |
| 28 | <relativePath>../../../../pom/pom.xml</relativePath> |
| 29 | </parent> |
| 30 | |
| 31 | <packaging>pom</packaging> |
| 32 | |
| 33 | <name>Apache Felix iPOJO - Distribution - 10 minutes tutorial</name> |
| 34 | <artifactId>org.apache.felix.ipojo.distribution.10mintutorial</artifactId> |
Clement Escoffier | d84914a | 2013-10-08 14:26:37 +0000 | [diff] [blame] | 35 | <version>1.11.1-SNAPSHOT</version> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 36 | |
| 37 | |
| 38 | <description>This project builds the 10 minutes tutorial package</description> |
| 39 | |
| 40 | <properties> |
| 41 | <ipojo.ant.version>${project.version}</ipojo.ant.version> |
| 42 | <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-quickstart</id> |
| 55 | <phase>package</phase> |
| 56 | <goals> |
| 57 | <goal>unpack-dependencies</goal> |
| 58 | </goals> |
| 59 | <configuration> |
| 60 | <includeArtifactIds>org.apache.felix.ipojo.distribution.quickstart</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</outputDirectory> |
| 77 | </configuration> |
| 78 | </execution> |
| 79 | </executions> |
Clement Escoffier | 5d7f5b8 | 2013-10-02 17:46:31 +0000 | [diff] [blame] | 80 | |
| 81 | <dependencies> |
| 82 | </dependencies> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 83 | </plugin> |
| 84 | |
| 85 | <!-- |
| 86 | we also copy properties file to the distribution folder, |
| 87 | the properties are stored in src/main/resources/props |
| 88 | --> |
| 89 | <plugin> |
| 90 | <artifactId>maven-resources-plugin</artifactId> |
| 91 | <version>2.6</version> |
| 92 | <executions> |
| 93 | <execution> |
| 94 | <id>copy-skeleton</id> |
| 95 | <phase>package</phase> |
| 96 | <goals> |
| 97 | <goal>copy-resources</goal> |
| 98 | </goals> |
| 99 | <configuration> |
| 100 | <outputDirectory> |
| 101 | ${project.build.directory}/dist |
| 102 | </outputDirectory> |
| 103 | <resources> |
| 104 | <resource> |
| 105 | <directory>src/main/skeleton</directory> |
| 106 | <filtering>true</filtering> |
| 107 | </resource> |
| 108 | </resources> |
| 109 | <includeEmptyDirs>true</includeEmptyDirs> |
| 110 | </configuration> |
| 111 | </execution> |
| 112 | <execution> |
| 113 | <id>copy-solution</id> |
| 114 | <phase>package</phase> |
| 115 | <goals> |
| 116 | <goal>copy-resources</goal> |
| 117 | </goals> |
| 118 | <configuration> |
| 119 | <outputDirectory> |
| 120 | ${project.build.directory}/dist/solution |
| 121 | </outputDirectory> |
| 122 | <resources> |
| 123 | <resource> |
| 124 | <directory>src/main/solution</directory> |
| 125 | <filtering>true</filtering> |
| 126 | </resource> |
| 127 | </resources> |
| 128 | <includeEmptyDirs>true</includeEmptyDirs> |
| 129 | </configuration> |
| 130 | </execution> |
| 131 | <execution> |
| 132 | <id>copy-legal</id> |
| 133 | <phase>package</phase> |
| 134 | <goals> |
| 135 | <goal>copy-resources</goal> |
| 136 | </goals> |
| 137 | <configuration> |
| 138 | <outputDirectory> |
| 139 | ${project.build.directory}/dist/ |
| 140 | </outputDirectory> |
| 141 | <resources> |
| 142 | <resource> |
| 143 | <directory>${project.build.directory}/maven-shared-archive-resources/META-INF</directory> |
| 144 | <filtering>false</filtering> |
| 145 | </resource> |
| 146 | </resources> |
| 147 | <includeEmptyDirs>true</includeEmptyDirs> |
| 148 | </configuration> |
| 149 | </execution> |
| 150 | </executions> |
| 151 | </plugin> |
| 152 | <plugin> |
| 153 | <artifactId>maven-antrun-plugin</artifactId> |
| 154 | <version>1.7</version> |
| 155 | <executions> |
| 156 | <execution> |
| 157 | <phase>package</phase> |
| 158 | <configuration> |
| 159 | <target> |
Clement Escoffier | 9471199 | 2013-10-08 14:24:52 +0000 | [diff] [blame] | 160 | <ant dir="target/dist" target="clean" /> |
| 161 | <ant dir="target/dist" target="package" /> |
| 162 | <ant dir="target/dist" target="dist" /> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 163 | </target> |
| 164 | </configuration> |
| 165 | <goals> |
| 166 | <goal>run</goal> |
| 167 | </goals> |
| 168 | </execution> |
| 169 | </executions> |
Clement Escoffier | 5d7f5b8 | 2013-10-02 17:46:31 +0000 | [diff] [blame] | 170 | <dependencies> |
| 171 | <dependency> |
| 172 | <groupId>com.sun</groupId> |
| 173 | <artifactId>tools</artifactId> |
| 174 | <version>1.7.0</version> |
| 175 | <scope>system</scope> |
| 176 | <systemPath>${java.home}/../lib/tools.jar</systemPath> |
| 177 | </dependency> |
| 178 | </dependencies> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 179 | </plugin> |
| 180 | <plugin> |
| 181 | <groupId>org.codehaus.mojo</groupId> |
| 182 | <artifactId>build-helper-maven-plugin</artifactId> |
| 183 | <version>1.8</version> |
| 184 | <executions> |
| 185 | <execution> |
| 186 | <id>attach-artifacts</id> |
| 187 | <phase>package</phase> |
| 188 | <goals> |
| 189 | <goal>attach-artifact</goal> |
| 190 | </goals> |
| 191 | <configuration> |
| 192 | <artifacts> |
| 193 | <artifact> |
| 194 | <file>${project.build.directory}/dist/dist/tutorial.zip</file> |
| 195 | <type>zip</type> |
| 196 | </artifact> |
| 197 | </artifacts> |
| 198 | </configuration> |
| 199 | </execution> |
| 200 | </executions> |
| 201 | </plugin> |
| 202 | |
| 203 | <plugin> |
| 204 | <groupId>org.codehaus.mojo</groupId> |
| 205 | <artifactId>ianal-maven-plugin</artifactId> |
| 206 | <executions> |
| 207 | <execution> |
| 208 | <goals> |
| 209 | <goal>verify-legal-files</goal> |
| 210 | </goals> |
| 211 | <configuration> |
| 212 | <!-- as it's not possible to configure the plugin to check files contained in the root of |
| 213 | the zip file, we have to skip it --> |
| 214 | <skip>true</skip> |
| 215 | </configuration> |
| 216 | </execution> |
| 217 | </executions> |
| 218 | </plugin> |
| 219 | </plugins> |
| 220 | </build> |
| 221 | |
| 222 | <dependencies> |
| 223 | <dependency> |
| 224 | <groupId>org.apache.felix</groupId> |
| 225 | <artifactId>org.apache.felix.ipojo.ant</artifactId> |
Clement Escoffier | acc5fb0 | 2013-10-09 08:18:54 +0000 | [diff] [blame] | 226 | <version>1.11.1-SNAPSHOT</version> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 227 | </dependency> |
| 228 | <dependency> |
| 229 | <groupId>biz.aQute</groupId> |
| 230 | <artifactId>bnd</artifactId> |
| 231 | <version>${bnd.version}</version> |
| 232 | </dependency> |
| 233 | |
| 234 | <dependency> |
| 235 | <groupId>org.apache.felix</groupId> |
| 236 | <artifactId>org.apache.felix.ipojo.distribution.quickstart</artifactId> |
| 237 | <version>${project.version}</version> |
| 238 | <type>zip</type> |
| 239 | </dependency> |
| 240 | <dependency> |
| 241 | <groupId>org.apache.felix</groupId> |
| 242 | <artifactId>org.apache.felix.ipojo</artifactId> |
| 243 | <version>${project.version}</version> |
| 244 | </dependency> |
| 245 | <dependency> |
| 246 | <groupId>org.apache.felix</groupId> |
| 247 | <artifactId>org.apache.felix.ipojo.gogo</artifactId> |
| 248 | <version>${project.version}</version> |
| 249 | </dependency> |
| 250 | <dependency> |
| 251 | <groupId>org.apache.felix</groupId> |
| 252 | <artifactId>org.apache.felix.ipojo.annotations</artifactId> |
Clement Escoffier | 9471199 | 2013-10-08 14:24:52 +0000 | [diff] [blame] | 253 | <version>1.11.0</version> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 254 | </dependency> |
| 255 | </dependencies> |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 256 | </project> |