blob: bf00d398ff7ac5f1b14e842f1995e66666c2592f [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 Ziegeler003fce62014-03-12 09:12:30 +000032 <version>1.0.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 Ziegeler003fce62014-03-12 09:12: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
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 Ziegelere1b4a932014-03-12 09:14:20 +000052 <version>1.9.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>
Carsten Ziegelere1b4a932014-03-12 09:14:20 +000058 <version>1.9.9-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>
64 <version>4.0</version>
65 <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>
104 </configuration>
105 </execution>
106 </executions>
107 </plugin>
108
109 <!-- unpack cmpdm,asm,scr generator and annotations in target artifact -->
110 <plugin>
111 <artifactId>maven-dependency-plugin</artifactId>
112 <executions>
113 <execution>
114 <goals>
115 <goal>unpack-dependencies</goal>
116 </goals>
117 <configuration>
118 <includeArtifactIds>
Pierre De Ropa0f59442013-08-10 14:23:23 +0000119 org.osgi.compendium,asm-all,org.apache.felix.scr.generator,org.apache.felix.scr.annotations
Pierre De Rop96c881f2013-07-06 08:35:29 +0000120 </includeArtifactIds>
121 <outputDirectory>
122 ${project.build.outputDirectory}
123 </outputDirectory>
124 <excludes>
125 **/MANIFEST.MF
126 </excludes>
127 </configuration>
128 </execution>
129 </executions>
130 </plugin>
131 <!-- JDK 1.5 needed for annotation support -->
132 <plugin>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-compiler-plugin</artifactId>
135 <configuration>
136 <source>1.5</source>
137 <target>1.5</target>
138 </configuration>
139 </plugin>
140 </plugins>
141 </build>
142</project>