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