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 | --> |
| 19 | <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"> |
| 21 | |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.apache.felix</groupId> |
| 25 | <artifactId>felix-parent</artifactId> |
| 26 | <version>2.1</version> |
| 27 | <relativePath>../../pom/pom.xml</relativePath> |
| 28 | </parent> |
| 29 | |
| 30 | <groupId>org.apache.felix</groupId> |
| 31 | <artifactId>org.apache.felix.scr.bnd</artifactId> |
| 32 | |
| 33 | <version>1.0.0-SNAPSHOT</version> |
| 34 | <packaging>jar</packaging> |
| 35 | |
| 36 | <name>Bnd SCR Plugin</name> |
| 37 | <description> |
| 38 | 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 | |
| 43 | <dependencies> |
| 44 | <dependency> |
| 45 | <groupId>org.apache.felix</groupId> |
| 46 | <artifactId>org.apache.felix.scr.generator</artifactId> |
Carsten Ziegeler | 41d63d4 | 2013-08-02 14:00:08 +0000 | [diff] [blame] | 47 | <version>1.8.0</version> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 48 | <scope>compile</scope> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.apache.felix</groupId> |
| 52 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
Carsten Ziegeler | 41d63d4 | 2013-08-02 14:00:08 +0000 | [diff] [blame] | 53 | <version>1.9.6</version> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 54 | <scope>compile</scope> |
| 55 | </dependency> |
| 56 | <dependency> |
Pierre De Rop | 96c881f | 2013-07-06 08:35:29 +0000 | [diff] [blame] | 57 | <groupId>org.ow2.asm</groupId> |
| 58 | <artifactId>asm-all</artifactId> |
| 59 | <version>4.0</version> |
| 60 | <scope>compile</scope> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>org.osgi</groupId> |
| 64 | <artifactId>org.osgi.core</artifactId> |
| 65 | <version>4.3.0</version> |
| 66 | <scope>compile</scope> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.osgi</groupId> |
| 70 | <artifactId>org.osgi.compendium</artifactId> |
| 71 | <version>4.3.0</version> |
| 72 | <scope>compile</scope> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>biz.aQute.bnd</groupId> |
| 76 | <artifactId>bndlib</artifactId> |
| 77 | <version>2.1.0</version> |
| 78 | <scope>compile</scope> |
| 79 | </dependency> |
| 80 | </dependencies> |
| 81 | |
| 82 | <build> |
| 83 | <plugins> |
| 84 | <!-- Use a shade plugin in order to append META-INF/service SPI resources into target artifact --> |
| 85 | <plugin> |
| 86 | <groupId>org.apache.maven.plugins</groupId> |
| 87 | <artifactId>maven-shade-plugin</artifactId> |
| 88 | <version>2.1</version> |
| 89 | <executions> |
| 90 | <execution> |
| 91 | <phase>package</phase> |
| 92 | <goals> |
| 93 | <goal>shade</goal> |
| 94 | </goals> |
| 95 | <configuration> |
| 96 | <transformers> |
| 97 | <transformer |
| 98 | implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 99 | </transformers> |
| 100 | </configuration> |
| 101 | </execution> |
| 102 | </executions> |
| 103 | </plugin> |
| 104 | |
| 105 | <!-- unpack cmpdm,asm,scr generator and annotations in target artifact --> |
| 106 | <plugin> |
| 107 | <artifactId>maven-dependency-plugin</artifactId> |
| 108 | <executions> |
| 109 | <execution> |
| 110 | <goals> |
| 111 | <goal>unpack-dependencies</goal> |
| 112 | </goals> |
| 113 | <configuration> |
| 114 | <includeArtifactIds> |
Pierre De Rop | a0f5944 | 2013-08-10 14:23:23 +0000 | [diff] [blame^] | 115 | 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] | 116 | </includeArtifactIds> |
| 117 | <outputDirectory> |
| 118 | ${project.build.outputDirectory} |
| 119 | </outputDirectory> |
| 120 | <excludes> |
| 121 | **/MANIFEST.MF |
| 122 | </excludes> |
| 123 | </configuration> |
| 124 | </execution> |
| 125 | </executions> |
| 126 | </plugin> |
| 127 | <!-- JDK 1.5 needed for annotation support --> |
| 128 | <plugin> |
| 129 | <groupId>org.apache.maven.plugins</groupId> |
| 130 | <artifactId>maven-compiler-plugin</artifactId> |
| 131 | <configuration> |
| 132 | <source>1.5</source> |
| 133 | <target>1.5</target> |
| 134 | </configuration> |
| 135 | </plugin> |
| 136 | </plugins> |
| 137 | </build> |
| 138 | </project> |