blob: f5eef4ea778531315b3f8f2938f6b0de44ef6726 [file] [log] [blame]
Clement Escoffier04a11662013-07-21 17:24:32 +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>ipojo-maven-tutorial</artifactId>
29 <version>@project.version@</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>compile</phase>
69 <goals>
70 <goal>unpack-dependencies</goal>
71 </goals>
72 <configuration>
73 <includeArtifactIds>org.apache.felix.ipojo.distribution.quickstart</includeArtifactIds>
74 <outputDirectory>\${project.build.directory}/tmp</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 </includeArtifactIds>
90 <outputDirectory>\${project.build.directory}/bundle</outputDirectory>
91 </configuration>
92 </execution>
93 </executions>
94 </plugin>
95
96 <plugin>
97 <artifactId>maven-resources-plugin</artifactId>
98 <version>2.6</version>
99 <executions>
100 <execution>
101 <goals>
102 <goal>copy-resources</goal>
103 </goals>
104 <phase>compile</phase>
105 <id>copy-distribution</id>
106 <configuration>
107 <outputDirectory>\${project.build.directory}</outputDirectory>
108 <resources>
109 <resource>
110 <directory>\${project.build.directory}/tmp/ipojo-distribution-\${project.version}</directory>
111 <filtering>false</filtering>
112 </resource>
113 </resources>
114 </configuration>
115 </execution>
116 </executions>
117 </plugin>
118
119 </plugins>
120 </build>
121
122
123</project>