blob: d8ae1910954ba5a7c2e1910e79311d5a9ac7be15 [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>
Carsten Ziegeler25023882015-07-27 06:14:56 +000025 <version>3</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000026 <relativePath>../../pom/pom.xml</relativePath>
27 </parent>
28
29 <groupId>org.apache.felix</groupId>
30 <artifactId>org.apache.felix.scr.bnd</artifactId>
31
Carsten Ziegeler9be13102015-04-23 15:38:30 +000032 <version>1.4.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 Ziegeler9be13102015-04-23 15:38:30 +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
Carsten Ziegeler25023882015-07-27 06:14:56 +000048 <properties>
49 <felix.java.version>6</felix.java.version>
50 </properties>
51
Pierre De Rop96c881f2013-07-06 08:35:29 +000052 <dependencies>
53 <dependency>
54 <groupId>org.apache.felix</groupId>
55 <artifactId>org.apache.felix.scr.generator</artifactId>
Carsten Ziegeler5a8a3bf2015-04-23 15:53:25 +000056 <version>1.13.1-SNAPSHOT</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000057 <scope>compile</scope>
58 </dependency>
59 <dependency>
60 <groupId>org.apache.felix</groupId>
61 <artifactId>org.apache.felix.scr.annotations</artifactId>
Carsten Ziegeler5a8a3bf2015-04-23 15:53:25 +000062 <version>1.9.13-SNAPSHOT</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000063 <scope>compile</scope>
64 </dependency>
65 <dependency>
Pierre De Rop96c881f2013-07-06 08:35:29 +000066 <groupId>org.ow2.asm</groupId>
67 <artifactId>asm-all</artifactId>
Carsten Ziegelerfb3aa192014-05-02 07:55:11 +000068 <version>5.0.2</version>
Pierre De Rop96c881f2013-07-06 08:35:29 +000069 <scope>compile</scope>
70 </dependency>
71 <dependency>
72 <groupId>org.osgi</groupId>
73 <artifactId>org.osgi.core</artifactId>
74 <version>4.3.0</version>
75 <scope>compile</scope>
76 </dependency>
77 <dependency>
78 <groupId>org.osgi</groupId>
79 <artifactId>org.osgi.compendium</artifactId>
80 <version>4.3.0</version>
81 <scope>compile</scope>
82 </dependency>
83 <dependency>
84 <groupId>biz.aQute.bnd</groupId>
85 <artifactId>bndlib</artifactId>
86 <version>2.1.0</version>
87 <scope>compile</scope>
88 </dependency>
89 </dependencies>
90
91 <build>
92 <plugins>
93 <!-- Use a shade plugin in order to append META-INF/service SPI resources into target artifact -->
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-shade-plugin</artifactId>
97 <version>2.1</version>
98 <executions>
99 <execution>
100 <phase>package</phase>
101 <goals>
102 <goal>shade</goal>
103 </goals>
104 <configuration>
105 <transformers>
Carsten Ziegeler564b0d22014-03-12 09:12:15 +0000106 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
Pierre De Rop96c881f2013-07-06 08:35:29 +0000107 </transformers>
Pierre De Rop3ce5c0b2014-07-19 21:02:30 +0000108 <!-- Don't include anything from bndlib -->
109 <artifactSet>
110 <excludes>
111 <exclude>biz.aQute.bnd:bndlib</exclude>
112 </excludes>
113 </artifactSet>
Pierre De Rop96c881f2013-07-06 08:35:29 +0000114 </configuration>
115 </execution>
116 </executions>
117 </plugin>
118
119 <!-- unpack cmpdm,asm,scr generator and annotations in target artifact -->
120 <plugin>
121 <artifactId>maven-dependency-plugin</artifactId>
122 <executions>
123 <execution>
124 <goals>
125 <goal>unpack-dependencies</goal>
126 </goals>
127 <configuration>
128 <includeArtifactIds>
Pierre De Ropa0f59442013-08-10 14:23:23 +0000129 org.osgi.compendium,asm-all,org.apache.felix.scr.generator,org.apache.felix.scr.annotations
Pierre De Rop96c881f2013-07-06 08:35:29 +0000130 </includeArtifactIds>
131 <outputDirectory>
132 ${project.build.outputDirectory}
133 </outputDirectory>
134 <excludes>
135 **/MANIFEST.MF
136 </excludes>
137 </configuration>
138 </execution>
139 </executions>
140 </plugin>
Pierre De Rop96c881f2013-07-06 08:35:29 +0000141 </plugins>
142 </build>
143</project>