blob: f0511f512525b3aebf196370ebb8f29400f055a5 [file] [log] [blame]
Pierre De Ropd050bd32015-10-25 22:31:43 +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
Pierre De Rop96c881f2013-07-06 08:35:29 +000010 http://www.apache.org/licenses/LICENSE-2.0
Pierre De Ropd050bd32015-10-25 22:31:43 +000011
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.
Pierre De Rop96c881f2013-07-06 08:35:29 +000018-->
Pierre De Ropd050bd32015-10-25 22:31:43 +000019<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">
Pierre De Rop96c881f2013-07-06 08:35:29 +000021
Pierre De Ropd050bd32015-10-25 22:31:43 +000022 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.apache.felix</groupId>
25 <artifactId>felix-parent</artifactId>
26 <version>3</version>
27 <relativePath>../../pom/pom.xml</relativePath>
28 </parent>
Pierre De Rop96c881f2013-07-06 08:35:29 +000029
Pierre De Ropd050bd32015-10-25 22:31:43 +000030 <groupId>org.apache.felix</groupId>
31 <artifactId>org.apache.felix.scr.bnd</artifactId>
Pierre De Rop96c881f2013-07-06 08:35:29 +000032
Pierre De Ropd050bd32015-10-25 22:31:43 +000033 <version>1.4.1-SNAPSHOT</version>
34 <packaging>jar</packaging>
Pierre De Rop96c881f2013-07-06 08:35:29 +000035
Pierre De Ropd050bd32015-10-25 22:31:43 +000036 <name>Bnd SCR Plugin</name>
37 <description>
Pierre De Rop96c881f2013-07-06 08:35:29 +000038 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
Carsten Ziegelere0dd8dd2014-03-12 08:28:17 +000043 <scm>
Carsten Ziegeler9be13102015-04-23 15:38:30 +000044 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/scrplugin/bnd-scr-plugin</connection>
45 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/scrplugin/bnd-scr-plugin</developerConnection>
46 <url>http://svn.apache.org/repos/asf/felix/scrplugin/bnd-scr-plugin</url>
Carsten Ziegelere0dd8dd2014-03-12 08:28:17 +000047 </scm>
48
Carsten Ziegeler25023882015-07-27 06:14:56 +000049 <properties>
50 <felix.java.version>6</felix.java.version>
51 </properties>
52
Pierre De Ropd050bd32015-10-25 22:31:43 +000053 <dependencies>
54 <dependency>
55 <groupId>org.apache.felix</groupId>
56 <artifactId>org.apache.felix.scr.generator</artifactId>
57 <version>1.13.1-SNAPSHOT</version>
58 <scope>compile</scope>
59 </dependency>
60 <dependency>
61 <groupId>org.apache.felix</groupId>
62 <artifactId>org.apache.felix.scr.annotations</artifactId>
63 <version>1.9.13-SNAPSHOT</version>
64 <scope>compile</scope>
65 </dependency>
66 <!-- bndlib is provided at runtime (it neither needs to be considered by the maven-shade-plugin nor as transitive dependency by Maven) -->
67 <dependency>
68 <groupId>biz.aQute.bnd</groupId>
69 <artifactId>bndlib</artifactId>
70 <version>2.1.0</version>
71 <scope>provided</scope>
72 </dependency>
73 </dependencies>
Pierre De Rop96c881f2013-07-06 08:35:29 +000074
Pierre De Ropd050bd32015-10-25 22:31:43 +000075 <build>
76 <plugins>
77 <!-- Use a shade plugin in order to append META-INF/service SPI resources into target artifact -->
78 <plugin>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-shade-plugin</artifactId>
81 <version>2.4.1</version>
82 <executions>
83 <execution>
84 <phase>package</phase>
85 <goals>
86 <goal>shade</goal>
87 </goals>
88 <configuration>
89 <transformers>
90 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
91 </transformers>
92 <!-- exclude provided dependencies -->
93 <artifactSet>
94 <excludes>
95 <!-- Don't include anything from bndlib (as this is always part of the classpath) -->
96 <exclude>biz.aQute.bnd:bndlib</exclude>
97 </excludes>
98 </artifactSet>
99 <filters>
100 <filter>
101 <artifact>org.osgi</artifact>
102 <!-- exclude everything which is already included in bndlib -->
103 <excludes>
104 <exclude>org/osgi/resource</exclude>
105 <exclude>org/osgi/service/component/annotations</exclude>
106 <exclude>org/osgi/service/metatype/annotations</exclude>
107 <exclude>org/osgi/service/repository</exclude>
108 </excludes>
109 </filter>
110 </filters>
111 </configuration>
112 </execution>
113 </executions>
114 </plugin>
115 </plugins>
116 </build>
Pierre De Rop96c881f2013-07-06 08:35:29 +0000117</project>