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 | cb54b42 | 2014-07-28 13:05:44 +0000 | [diff] [blame] | 32 | <version>1.3.1-SNAPSHOT</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 | cb54b42 | 2014-07-28 13:05:44 +0000 | [diff] [blame] | 43 | <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 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 | 7e88c7e | 2014-07-28 13:20:26 +0000 | [diff] [blame] | 52 | <version>1.12.1-SNAPSHOT</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 | 7e88c7e | 2014-07-28 13:20:26 +0000 | [diff] [blame] | 58 | <version>1.9.9-SNAPSHOT</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> |
Carsten Ziegeler | fb3aa19 | 2014-05-02 07:55:11 +0000 | [diff] [blame] | 64 | <version>5.0.2</version> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 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> |
Pierre De Rop | 3ce5c0b | 2014-07-19 21:02:30 +0000 | [diff] [blame] | 104 | <!-- Don't include anything from bndlib --> |
| 105 | <artifactSet> |
| 106 | <excludes> |
| 107 | <exclude>biz.aQute.bnd:bndlib</exclude> |
| 108 | </excludes> |
| 109 | </artifactSet> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 110 | </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 Rop | a0f5944 | 2013-08-10 14:23:23 +0000 | [diff] [blame] | 125 | 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] | 126 | </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> |