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