blob: 73e0f180983c940eaf67ba58ea5a6df2b9e15fd1 [file] [log] [blame]
Pierre De Rop96c881f2013-07-06 08:35:29 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
19<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21
22 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.apache.felix</groupId>
25 <artifactId>felix-parent</artifactId>
26 <version>2.1</version>
27 <relativePath>../../pom/pom.xml</relativePath>
28 </parent>
29
30 <groupId>org.apache.felix</groupId>
31 <artifactId>org.apache.felix.scr.bnd</artifactId>
32
33 <version>1.0.0-SNAPSHOT</version>
34 <packaging>jar</packaging>
35
36 <name>Bnd SCR Plugin</name>
37 <description>
38 Implements a Bnd scrplugin to generate Declarative Services
39 and Metatype Service descriptors from Java 5 annotations
40 and/or JavaDoc tags.
41 </description>
42
43 <dependencies>
44 <dependency>
45 <groupId>org.apache.felix</groupId>
46 <artifactId>org.apache.felix.scr.generator</artifactId>
47 <version>1.7.1-SNAPSHOT</version>
48 <scope>compile</scope>
49 </dependency>
50 <dependency>
51 <groupId>org.apache.felix</groupId>
52 <artifactId>org.apache.felix.scr.annotations</artifactId>
53 <version>1.9.5-SNAPSHOT</version>
54 <scope>compile</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.apache.felix</groupId>
58 <artifactId>org.apache.felix.scr.ds-annotations</artifactId>
59 <version>1.2.2</version>
60 <scope>compile</scope>
61 </dependency>
62 <dependency>
63 <groupId>org.ow2.asm</groupId>
64 <artifactId>asm-all</artifactId>
65 <version>4.0</version>
66 <scope>compile</scope>
67 </dependency>
68 <dependency>
69 <groupId>org.osgi</groupId>
70 <artifactId>org.osgi.core</artifactId>
71 <version>4.3.0</version>
72 <scope>compile</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.osgi</groupId>
76 <artifactId>org.osgi.compendium</artifactId>
77 <version>4.3.0</version>
78 <scope>compile</scope>
79 </dependency>
80 <dependency>
81 <groupId>biz.aQute.bnd</groupId>
82 <artifactId>bndlib</artifactId>
83 <version>2.1.0</version>
84 <scope>compile</scope>
85 </dependency>
86 </dependencies>
87
88 <build>
89 <plugins>
90 <!-- Use a shade plugin in order to append META-INF/service SPI resources into target artifact -->
91 <plugin>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-shade-plugin</artifactId>
94 <version>2.1</version>
95 <executions>
96 <execution>
97 <phase>package</phase>
98 <goals>
99 <goal>shade</goal>
100 </goals>
101 <configuration>
102 <transformers>
103 <transformer
104 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
105 </transformers>
106 </configuration>
107 </execution>
108 </executions>
109 </plugin>
110
111 <!-- unpack cmpdm,asm,scr generator and annotations in target artifact -->
112 <plugin>
113 <artifactId>maven-dependency-plugin</artifactId>
114 <executions>
115 <execution>
116 <goals>
117 <goal>unpack-dependencies</goal>
118 </goals>
119 <configuration>
120 <includeArtifactIds>
121 org.osgi.compendium,asm-all,org.apache.felix.scr.generator,org.apache.felix.scr.annotations,org.apache.felix.scr.ds-annotations
122 </includeArtifactIds>
123 <outputDirectory>
124 ${project.build.outputDirectory}
125 </outputDirectory>
126 <excludes>
127 **/MANIFEST.MF
128 </excludes>
129 </configuration>
130 </execution>
131 </executions>
132 </plugin>
133 <!-- JDK 1.5 needed for annotation support -->
134 <plugin>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-compiler-plugin</artifactId>
137 <configuration>
138 <source>1.5</source>
139 <target>1.5</target>
140 </configuration>
141 </plugin>
142 </plugins>
143 </build>
144</project>