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