blob: 1c7eb17e0dd2688d825156c563cad50c1cedb343 [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-->
Carsten Ziegeler564b0d22014-03-12 09:12:15 +000019<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Pierre De Rop96c881f2013-07-06 08:35:29 +000020
21 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.apache.felix</groupId>
24 <artifactId>felix-parent</artifactId>
25 <version>2.1</version>
26 <relativePath>../../pom/pom.xml</relativePath>
27 </parent>
28
29 <groupId>org.apache.felix</groupId>
30 <artifactId>org.apache.felix.scr.bnd</artifactId>
31
Carsten Ziegelercb54b422014-07-28 13:05:44 +000032 <version>1.3.1-SNAPSHOT</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000033 <packaging>jar</packaging>
34
35 <name>Bnd SCR Plugin</name>
36 <description>
37 Implements a Bnd scrplugin to generate Declarative Services
38 and Metatype Service descriptors from Java 5 annotations
39 and/or JavaDoc tags.
40 </description>
41
Carsten Ziegelere0dd8dd2014-03-12 08:28:17 +000042 <scm>
Carsten Ziegelercb54b422014-07-28 13:05:44 +000043 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/scrplugin/bnd-scr-plugin</connection>
44 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scrplugin/bnd-scr-plugin</developerConnection>
45 <url>http://svn.apache.org/repos/asf/felix/scrplugin/bnd-scr-plugin</url>
Carsten Ziegelere0dd8dd2014-03-12 08:28:17 +000046 </scm>
47
Pierre De Rop96c881f2013-07-06 08:35:29 +000048 <dependencies>
49 <dependency>
50 <groupId>org.apache.felix</groupId>
51 <artifactId>org.apache.felix.scr.generator</artifactId>
Carsten Ziegeler7e88c7e2014-07-28 13:20:26 +000052 <version>1.12.1-SNAPSHOT</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000053 <scope>compile</scope>
54 </dependency>
55 <dependency>
56 <groupId>org.apache.felix</groupId>
57 <artifactId>org.apache.felix.scr.annotations</artifactId>
Pierre De Rop63991772015-03-26 14:15:06 +000058 <version>1.9.11-SNAPSHOT</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000059 <scope>compile</scope>
60 </dependency>
61 <dependency>
Pierre De Rop96c881f2013-07-06 08:35:29 +000062 <groupId>org.ow2.asm</groupId>
63 <artifactId>asm-all</artifactId>
Carsten Ziegelerfb3aa192014-05-02 07:55:11 +000064 <version>5.0.2</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000065 <scope>compile</scope>
66 </dependency>
67 <dependency>
68 <groupId>org.osgi</groupId>
69 <artifactId>org.osgi.core</artifactId>
70 <version>4.3.0</version>
71 <scope>compile</scope>
72 </dependency>
73 <dependency>
74 <groupId>org.osgi</groupId>
75 <artifactId>org.osgi.compendium</artifactId>
76 <version>4.3.0</version>
77 <scope>compile</scope>
78 </dependency>
79 <dependency>
80 <groupId>biz.aQute.bnd</groupId>
81 <artifactId>bndlib</artifactId>
82 <version>2.1.0</version>
83 <scope>compile</scope>
84 </dependency>
85 </dependencies>
86
87 <build>
88 <plugins>
89 <!-- Use a shade plugin in order to append META-INF/service SPI resources into target artifact -->
90 <plugin>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-shade-plugin</artifactId>
93 <version>2.1</version>
94 <executions>
95 <execution>
96 <phase>package</phase>
97 <goals>
98 <goal>shade</goal>
99 </goals>
100 <configuration>
101 <transformers>
Carsten Ziegeler564b0d22014-03-12 09:12:15 +0000102 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
Pierre De Rop96c881f2013-07-06 08:35:29 +0000103 </transformers>
Pierre De Rop3ce5c0b2014-07-19 21:02:30 +0000104 <!-- Don't include anything from bndlib -->
105 <artifactSet>
106 <excludes>
107 <exclude>biz.aQute.bnd:bndlib</exclude>
108 </excludes>
109 </artifactSet>
Pierre De Rop96c881f2013-07-06 08:35:29 +0000110 </configuration>
111 </execution>
112 </executions>
113 </plugin>
114
115 <!-- unpack cmpdm,asm,scr generator and annotations in target artifact -->
116 <plugin>
117 <artifactId>maven-dependency-plugin</artifactId>
118 <executions>
119 <execution>
120 <goals>
121 <goal>unpack-dependencies</goal>
122 </goals>
123 <configuration>
124 <includeArtifactIds>
Pierre De Ropa0f59442013-08-10 14:23:23 +0000125 org.osgi.compendium,asm-all,org.apache.felix.scr.generator,org.apache.felix.scr.annotations
Pierre De Rop96c881f2013-07-06 08:35:29 +0000126 </includeArtifactIds>
127 <outputDirectory>
128 ${project.build.outputDirectory}
129 </outputDirectory>
130 <excludes>
131 **/MANIFEST.MF
132 </excludes>
133 </configuration>
134 </execution>
135 </executions>
136 </plugin>
137 <!-- JDK 1.5 needed for annotation support -->
138 <plugin>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-compiler-plugin</artifactId>
141 <configuration>
142 <source>1.5</source>
143 <target>1.5</target>
144 </configuration>
145 </plugin>
146 </plugins>
147 </build>
148</project>