Clement Escoffier | 699100c | 2013-04-21 11:41:27 +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>maven-tutorial</artifactId> |
| 29 | <version>1.9.0-SNAPSHOT</version> |
| 30 | <relativePath>../../pom.xml</relativePath> |
| 31 | </parent> |
| 32 | |
| 33 | <artifactId>hello.felix.annotations</artifactId> |
| 34 | |
| 35 | <description>A project building a Felix with the annotated Hello service and client</description> |
| 36 | |
| 37 | <packaging>pom</packaging> |
| 38 | |
| 39 | <dependencies> |
| 40 | <!-- our project --> |
| 41 | <dependency> |
| 42 | <groupId>${project.groupId}</groupId> |
| 43 | <artifactId>hello.service</artifactId> |
| 44 | <version>${project.version}</version> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>${project.groupId}</groupId> |
| 48 | <artifactId>hello.impl.annotations</artifactId> |
| 49 | <version>${project.version}</version> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>${project.groupId}</groupId> |
| 53 | <artifactId>hello.client.annotations</artifactId> |
| 54 | <version>${project.version}</version> |
| 55 | </dependency> |
| 56 | </dependencies> |
| 57 | |
| 58 | <build> |
| 59 | <plugins> |
| 60 | <plugin> |
| 61 | <groupId>org.apache.maven.plugins</groupId> |
| 62 | <artifactId>maven-dependency-plugin</artifactId> |
| 63 | <version>2.7</version> |
| 64 | <executions> |
| 65 | |
| 66 | <execution> |
| 67 | <id>unpack-felix</id> |
| 68 | <phase>package</phase> |
| 69 | <goals> |
| 70 | <goal>unpack-dependencies</goal> |
| 71 | </goals> |
| 72 | <configuration> |
| 73 | <includeArtifactIds>org.apache.felix.main.distribution</includeArtifactIds> |
| 74 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 75 | </configuration> |
| 76 | </execution> |
| 77 | |
| 78 | <execution> |
| 79 | <id>copy-bundles</id> |
| 80 | <phase>package</phase> |
| 81 | <goals> |
| 82 | <goal>copy-dependencies</goal> |
| 83 | </goals> |
| 84 | <configuration> |
| 85 | <includeArtifactIds> |
| 86 | hello.service, |
| 87 | hello.impl.annotations, |
| 88 | hello.client.annotations, |
| 89 | org.apache.felix.log,org.apache.felix.ipojo, |
| 90 | org.apache.felix.ipojo.arch.gogo |
| 91 | </includeArtifactIds> |
| 92 | <outputDirectory>${project.build.directory}/felix-framework-${felix.version}/bundle |
| 93 | </outputDirectory> |
| 94 | </configuration> |
| 95 | </execution> |
| 96 | </executions> |
| 97 | </plugin> |
| 98 | |
| 99 | </plugins> |
| 100 | </build> |
| 101 | |
| 102 | |
| 103 | </project> |