Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 1 | <!-- |
| 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 Ziegeler | 564b0d2 | 2014-03-12 09:12:15 +0000 | [diff] [blame^] | 19 | <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 Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 20 | |
| 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 Ziegeler | 564b0d2 | 2014-03-12 09:12:15 +0000 | [diff] [blame^] | 32 | <version>1.0.0</version> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 33 | <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 Ziegeler | e0dd8dd | 2014-03-12 08:28:17 +0000 | [diff] [blame] | 42 | <scm> |
Carsten Ziegeler | 564b0d2 | 2014-03-12 09:12:15 +0000 | [diff] [blame^] | 43 | <connection>scm:svn:http://svn.apache.org/repos/asf/felix/releases/org.apache.felix.scr.bnd-1.0.0</connection> |
| 44 | <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.scr.bnd-1.0.0</developerConnection> |
| 45 | <url>scm:svn:https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.scr.bnd-1.0.0</url> |
Carsten Ziegeler | e0dd8dd | 2014-03-12 08:28:17 +0000 | [diff] [blame] | 46 | </scm> |
| 47 | |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 48 | <dependencies> |
| 49 | <dependency> |
| 50 | <groupId>org.apache.felix</groupId> |
| 51 | <artifactId>org.apache.felix.scr.generator</artifactId> |
Carsten Ziegeler | ab1e1b4 | 2014-03-12 09:11:48 +0000 | [diff] [blame] | 52 | <version>1.9.0</version> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 53 | <scope>compile</scope> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.apache.felix</groupId> |
| 57 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
Carsten Ziegeler | ab1e1b4 | 2014-03-12 09:11:48 +0000 | [diff] [blame] | 58 | <version>1.9.8</version> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 59 | <scope>compile</scope> |
| 60 | </dependency> |
| 61 | <dependency> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 62 | <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 Ziegeler | 564b0d2 | 2014-03-12 09:12:15 +0000 | [diff] [blame^] | 102 | <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 103 | </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 Rop | a0f5944 | 2013-08-10 14:23:23 +0000 | [diff] [blame] | 119 | org.osgi.compendium,asm-all,org.apache.felix.scr.generator,org.apache.felix.scr.annotations |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 120 | </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> |