Clement Escoffier | 7ebc457 | 2013-07-21 17:21: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>felix-parent</artifactId> |
| 29 | <version>2.1</version> |
| 30 | <relativePath>../../../../pom/pom.xml</relativePath> |
| 31 | </parent> |
| 32 | |
| 33 | |
| 34 | <packaging>pom</packaging> |
| 35 | |
| 36 | <name>Apache Felix iPOJO - Distribution - Maven Tutorial</name> |
| 37 | <artifactId>org.apache.felix.ipojo.distribution.maventutorial</artifactId> |
| 38 | <version>1.10.2-SNAPSHOT</version> |
| 39 | |
| 40 | |
| 41 | <description>This project builds the iPOJO Maven tutorial package</description> |
| 42 | |
| 43 | |
| 44 | <build> |
| 45 | <plugins> |
| 46 | <!-- |
| 47 | The build is configured to filter the skeleton and generate a distribution out of it. |
| 48 | --> |
| 49 | |
| 50 | <plugin> |
| 51 | <artifactId>maven-resources-plugin</artifactId> |
| 52 | <version>2.6</version> |
| 53 | <executions> |
| 54 | <execution> |
| 55 | <goals> |
| 56 | <goal>copy-resources</goal> |
| 57 | </goals> |
| 58 | <phase>compile</phase> |
| 59 | <id>copy-skeleton</id> |
| 60 | <configuration> |
| 61 | <outputDirectory>${project.build.directory}/maven-tutorial</outputDirectory> |
| 62 | <delimiters> |
| 63 | <!-- we use a specific delimiter to avoid filtering internal properties --> |
| 64 | <delimiter>@</delimiter> |
| 65 | </delimiters> |
| 66 | <escapeString>\</escapeString> |
| 67 | <resources> |
| 68 | <resource> |
| 69 | <directory>src/main/skeleton</directory> |
| 70 | <filtering>true</filtering> |
| 71 | </resource> |
| 72 | </resources> |
| 73 | </configuration> |
| 74 | </execution> |
| 75 | </executions> |
| 76 | </plugin> |
| 77 | |
| 78 | <plugin> |
| 79 | <artifactId>maven-assembly-plugin</artifactId> |
| 80 | <version>2.4</version> |
| 81 | <configuration> |
| 82 | <attach>true</attach> |
| 83 | </configuration> |
| 84 | <executions> |
| 85 | <execution> |
| 86 | <id>build-distribution</id> |
| 87 | <goals> |
| 88 | <goal>single</goal> |
| 89 | </goals> |
| 90 | <phase>package</phase> |
| 91 | <configuration> |
| 92 | <descriptors> |
| 93 | <descriptor>src/main/assembly/distribution.xml</descriptor> |
| 94 | </descriptors> |
| 95 | |
| 96 | <appendAssemblyId>false</appendAssemblyId> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | </executions> |
| 100 | </plugin> |
| 101 | </plugins> |
| 102 | </build> |
| 103 | </project> |