Incrementing versions by 0.1.0 for post-helium develop branch
[lispflowmapping.git] / distribution-karaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <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/xsd/maven-4.0.0.xsd">
10   <modelVersion>4.0.0</modelVersion>
11   <parent>
12     <groupId>org.opendaylight.lispflowmapping</groupId>
13     <artifactId>lispflowmapping-commons</artifactId>
14     <version>1.2.0-SNAPSHOT</version>
15     <relativePath>../commons/parent</relativePath>
16   </parent>
17   <artifactId>distribution-karaf</artifactId>
18   <name>LISP Flow Mapping Project - Karaf Distribution</name>
19   <groupId>org.opendaylight.lispflowmapping</groupId>
20   <packaging>pom</packaging>
21   <prerequisites>
22     <maven>3.0</maven>
23   </prerequisites>
24
25   <dependencies>
26     <!-- Basic Karaf dependencies -->
27     <dependency>
28       <groupId>org.apache.karaf.features</groupId>
29       <artifactId>framework</artifactId>
30       <version>${karaf.version}</version>
31       <type>kar</type>
32     </dependency>
33     <dependency>
34       <groupId>org.apache.karaf.features</groupId>
35       <artifactId>standard</artifactId>
36       <version>${karaf.version}</version>
37       <classifier>features</classifier>
38       <type>xml</type>
39       <scope>runtime</scope>
40     </dependency>
41
42     <!-- ODL Branding -->
43     <dependency>
44       <groupId>org.opendaylight.controller</groupId>
45       <artifactId>karaf.branding</artifactId>
46       <version>${branding.version}</version>
47       <scope>compile</scope>
48     </dependency>
49
50     <!-- ODL Resources needed for karaf -->
51     <dependency>
52       <groupId>org.opendaylight.controller</groupId>
53       <artifactId>opendaylight-karaf-resources</artifactId>
54       <version>${karaf.resources.version}</version>
55     </dependency>
56
57     <!-- Project local feautures -->
58     <!--
59     <dependency>
60       <groupId>org.opendaylight.controller</groupId>
61       <artifactId>features-mdsal</artifactId>
62       <classifier>features</classifier>
63       <type>xml</type>
64       <scope>runtime</scope>
65     </dependency>
66     -->
67     <dependency>
68       <groupId>org.opendaylight.lispflowmapping</groupId>
69       <artifactId>features-lispflowmapping</artifactId>
70       <version>${lispflowmapping.version}</version>
71       <classifier>features</classifier>
72       <type>xml</type>
73       <scope>runtime</scope>
74     </dependency>
75   </dependencies>
76
77   <build>
78     <pluginManagement>
79       <plugins>
80         <plugin>
81           <groupId>org.eclipse.m2e</groupId>
82           <artifactId>lifecycle-mapping</artifactId>
83           <version>1.0.0</version>
84           <configuration>
85             <lifecycleMappingMetadata>
86               <pluginExecutions>
87                 <pluginExecution>
88                   <pluginExecutionFilter>
89                     <groupId>org.apache.felix</groupId>
90                     <artifactId>maven-bundle-plugin</artifactId>
91                     <versionRange>[0,)</versionRange>
92                     <goals>
93                       <goal>cleanVersions</goal>
94                     </goals>
95                   </pluginExecutionFilter>
96                   <action>
97                     <ignore></ignore>
98                   </action>
99                 </pluginExecution>
100                 <pluginExecution>
101                   <pluginExecutionFilter>
102                     <groupId>org.apache.maven.plugins</groupId>
103                     <artifactId>maven-dependency-plugin</artifactId>
104                     <versionRange>[0,)</versionRange>
105                     <goals>
106                       <goal>copy</goal>
107                       <goal>unpack</goal>
108                     </goals>
109                   </pluginExecutionFilter>
110                   <action>
111                     <ignore></ignore>
112                   </action>
113                 </pluginExecution>
114                 <pluginExecution>
115                   <pluginExecutionFilter>
116                     <groupId>org.apache.karaf.tooling</groupId>
117                     <artifactId>karaf-maven-plugin</artifactId>
118                     <versionRange>[0,)</versionRange>
119                     <goals>
120                       <goal>commands-generate-help</goal>
121                     </goals>
122                   </pluginExecutionFilter>
123                   <action>
124                     <ignore></ignore>
125                   </action>
126                 </pluginExecution>
127                 <pluginExecution>
128                   <pluginExecutionFilter>
129                     <groupId>org.fusesource.scalate</groupId>
130                     <artifactId>maven-scalate-plugin</artifactId>
131                     <versionRange>[0,)</versionRange>
132                     <goals>
133                       <goal>sitegen</goal>
134                     </goals>
135                   </pluginExecutionFilter>
136                   <action>
137                     <ignore></ignore>
138                   </action>
139                 </pluginExecution>
140                 <pluginExecution>
141                   <pluginExecutionFilter>
142                     <groupId>org.apache.servicemix.tooling</groupId>
143                     <artifactId>depends-maven-plugin</artifactId>
144                     <versionRange>[0,)</versionRange>
145                     <goals>
146                       <goal>generate-depends-file</goal>
147                     </goals>
148                   </pluginExecutionFilter>
149                   <action>
150                     <ignore></ignore>
151                   </action>
152                 </pluginExecution>
153               </pluginExecutions>
154             </lifecycleMappingMetadata>
155           </configuration>
156         </plugin>
157       </plugins>
158     </pluginManagement>
159     <plugins>
160       <plugin>
161         <groupId>org.apache.karaf.tooling</groupId>
162         <artifactId>karaf-maven-plugin</artifactId>
163         <version>${karaf.version}</version>
164         <extensions>true</extensions>
165         <configuration>
166           <bootFeatures>
167             <feature>standard</feature>
168             <feature>odl-restconf</feature>
169             <feature>odl-lispflowmapping-all</feature>
170           </bootFeatures>
171         </configuration>
172         <executions>
173           <execution>
174             <id>process-resources</id>
175             <goals>
176               <goal>install-kars</goal>
177             </goals>
178             <phase>process-resources</phase>
179           </execution>
180           <execution>
181             <id>package</id>
182             <goals>
183               <goal>instance-create-archive</goal>
184             </goals>
185           </execution>
186         </executions>
187       </plugin>
188       <plugin>
189         <groupId>org.apache.maven.plugins</groupId>
190         <artifactId>maven-dependency-plugin</artifactId>
191         <version>2.6</version>
192         <executions>
193           <execution>
194             <id>copy</id>
195             <goals>
196               <goal>copy</goal>
197             </goals>
198             <phase>generate-resources</phase>
199             <configuration>
200               <artifactItems>
201                 <artifactItem>
202                   <groupId>org.opendaylight.controller</groupId>
203                   <artifactId>karaf.branding</artifactId>
204                   <version>${karaf.branding.version}</version>
205                   <outputDirectory>target/assembly/lib</outputDirectory>
206                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
207                 </artifactItem>
208               </artifactItems>
209             </configuration>
210           </execution>
211           <execution>
212             <id>unpack-karaf-resources</id>
213             <goals>
214               <goal>unpack-dependencies</goal>
215             </goals>
216             <phase>prepare-package</phase>
217             <configuration>
218              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
219              <groupId>org.opendaylight.controller</groupId>
220              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
221              <excludes>META-INF\/**</excludes>
222              <excludeTransitive>true</excludeTransitive>
223              <ignorePermissions>false</ignorePermissions>
224             </configuration>
225           </execution>
226         </executions>
227       </plugin>
228       <plugin>
229         <groupId>org.apache.maven.plugins</groupId>
230         <artifactId>maven-antrun-plugin</artifactId>
231         <executions>
232             <execution>
233                 <phase>prepare-package</phase>
234                 <goals>
235                     <goal>run</goal>
236                 </goals>
237                 <configuration>
238                   <tasks>
239                     <chmod perm="755">
240                         <fileset dir="${project.build.directory}/assembly/bin">
241                           <include name="karaf" />
242                           <include name="instance" />
243                           <include name="start" />
244                           <include name="stop" />
245                           <include name="status" />
246                           <include name="client" />
247                           <include name="shell" />
248                         </fileset>
249                     </chmod>
250                   </tasks>
251                 </configuration>
252             </execution>
253         </executions>
254       </plugin>
255     </plugins>
256   </build>
257   <scm>
258     <connection>scm:git:https://git.opendaylight.org/gerrit/p/lispflowmapping.git</connection>
259     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/lispflowmapping.git</developerConnection>
260     <tag>HEAD</tag>
261     <url>https://git.opendaylight.org/gerrit/gitweb?p=lispflowmapping.git;a=summary</url>
262   </scm>
263 </project>