Bug 1822 - Adding the missing karaf distribution
[ovsdb.git] / distribution / opendaylight-karaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.ovsdb</groupId>
6     <artifactId>commons</artifactId>
7     <version>1.2.0-SNAPSHOT</version>
8     <relativePath>../../commons/parent/</relativePath>
9   </parent>
10   <artifactId>distribution-karaf</artifactId>
11   <groupId>org.opendaylight.ovsdb</groupId>
12   <version>1.0-SNAPSHOT</version>
13   <packaging>pom</packaging>
14   <prerequisites>
15     <maven>3.0</maven>
16   </prerequisites>
17   <properties>
18     <branding.version>1.0.0-SNAPSHOT</branding.version>
19     <karaf.resources.version>1.4.2-SNAPSHOT</karaf.resources.version>
20     <karaf.version>3.0.1</karaf.version>
21     <feature.ovsdb.version>1.0.0-SNAPSHOT</feature.ovsdb.version>
22     <feature.ovsdb.openstack.version>1.0.0-SNAPSHOT</feature.ovsdb.openstack.version>
23   </properties>
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     <dependency>
58       <groupId>org.opendaylight.ovsdb</groupId>
59       <artifactId>features-ovsdb</artifactId>
60       <version>${feature.ovsdb.version}</version>
61       <classifier>features</classifier>
62       <type>xml</type>
63       <scope>runtime</scope>
64     </dependency>
65
66     <dependency>
67       <groupId>org.opendaylight.ovsdb</groupId>
68       <artifactId>features-openflow-nxm</artifactId>
69       <version>0.0.3-SNAPSHOT</version>
70       <classifier>features</classifier>
71       <type>xml</type>
72       <scope>runtime</scope>
73     </dependency>
74
75     <dependency>
76       <groupId>org.opendaylight.ovsdb</groupId>
77       <artifactId>features-ovs-sfc</artifactId>
78       <version>0.0.1-SNAPSHOT</version>
79       <classifier>features</classifier>
80       <type>xml</type>
81       <scope>runtime</scope>
82     </dependency>
83   </dependencies>
84
85   <build>
86     <pluginManagement>
87       <plugins>
88         <plugin>
89           <groupId>org.eclipse.m2e</groupId>
90           <artifactId>lifecycle-mapping</artifactId>
91           <version>1.0.0</version>
92           <configuration>
93             <lifecycleMappingMetadata>
94               <pluginExecutions>
95                 <pluginExecution>
96                   <pluginExecutionFilter>
97                     <groupId>org.apache.felix</groupId>
98                     <artifactId>maven-bundle-plugin</artifactId>
99                     <versionRange>[0,)</versionRange>
100                     <goals>
101                       <goal>cleanVersions</goal>
102                     </goals>
103                   </pluginExecutionFilter>
104                   <action>
105                     <ignore></ignore>
106                   </action>
107                 </pluginExecution>
108                 <pluginExecution>
109                   <pluginExecutionFilter>
110                     <groupId>org.apache.maven.plugins</groupId>
111                     <artifactId>maven-dependency-plugin</artifactId>
112                     <versionRange>[0,)</versionRange>
113                     <goals>
114                       <goal>copy</goal>
115                       <goal>unpack</goal>
116                     </goals>
117                   </pluginExecutionFilter>
118                   <action>
119                     <ignore></ignore>
120                   </action>
121                 </pluginExecution>
122                 <pluginExecution>
123                   <pluginExecutionFilter>
124                     <groupId>org.apache.karaf.tooling</groupId>
125                     <artifactId>karaf-maven-plugin</artifactId>
126                     <versionRange>[0,)</versionRange>
127                     <goals>
128                       <goal>commands-generate-help</goal>
129                     </goals>
130                   </pluginExecutionFilter>
131                   <action>
132                     <ignore></ignore>
133                   </action>
134                 </pluginExecution>
135                 <pluginExecution>
136                   <pluginExecutionFilter>
137                     <groupId>org.fusesource.scalate</groupId>
138                     <artifactId>maven-scalate-plugin</artifactId>
139                     <versionRange>[0,)</versionRange>
140                     <goals>
141                       <goal>sitegen</goal>
142                     </goals>
143                   </pluginExecutionFilter>
144                   <action>
145                     <ignore></ignore>
146                   </action>
147                 </pluginExecution>
148                 <pluginExecution>
149                   <pluginExecutionFilter>
150                     <groupId>org.apache.servicemix.tooling</groupId>
151                     <artifactId>depends-maven-plugin</artifactId>
152                     <versionRange>[0,)</versionRange>
153                     <goals>
154                       <goal>generate-depends-file</goal>
155                     </goals>
156                   </pluginExecutionFilter>
157                   <action>
158                     <ignore></ignore>
159                   </action>
160                 </pluginExecution>
161               </pluginExecutions>
162             </lifecycleMappingMetadata>
163           </configuration>
164         </plugin>
165       </plugins>
166     </pluginManagement>
167     <plugins>
168       <plugin>
169         <groupId>org.apache.karaf.tooling</groupId>
170         <artifactId>karaf-maven-plugin</artifactId>
171         <version>${karaf.version}</version>
172         <extensions>true</extensions>
173         <configuration>
174           <bootFeatures>
175             <feature>standard</feature>
176               <feature>odl-base-all</feature>
177               <feature>odl-adsal-northbound</feature>
178               <feature>odl-openflow-nxm-extensions</feature>
179               <feature>odl-nsf-all</feature>
180           </bootFeatures>
181         </configuration>
182         <executions>
183           <execution>
184             <id>process-resources</id>
185             <goals>
186               <goal>install-kars</goal>
187             </goals>
188             <phase>process-resources</phase>
189           </execution>
190           <execution>
191             <id>package</id>
192             <goals>
193               <goal>instance-create-archive</goal>
194             </goals>
195           </execution>
196         </executions>
197       </plugin>
198       <plugin>
199         <groupId>org.apache.maven.plugins</groupId>
200         <artifactId>maven-dependency-plugin</artifactId>
201         <version>2.6</version>
202         <executions>
203           <execution>
204             <id>copy</id>
205             <goals>
206               <goal>copy</goal>
207             </goals>
208             <phase>generate-resources</phase>
209             <configuration>
210               <artifactItems>
211                 <artifactItem>
212                   <groupId>org.opendaylight.controller</groupId>
213                   <artifactId>karaf.branding</artifactId>
214                   <version>${karaf.branding.version}</version>
215                   <outputDirectory>target/assembly/lib</outputDirectory>
216                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
217                 </artifactItem>
218               </artifactItems>
219             </configuration>
220           </execution>
221           <execution>
222             <id>unpack-karaf-resources</id>
223             <goals>
224               <goal>unpack-dependencies</goal>
225             </goals>
226             <phase>prepare-package</phase>
227             <configuration>
228              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
229              <groupId>org.opendaylight.controller</groupId>
230              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
231              <excludes>META-INF\/**</excludes>
232              <excludeTransitive>true</excludeTransitive>
233              <ignorePermissions>false</ignorePermissions>
234             </configuration>
235           </execution>
236         </executions>
237       </plugin>
238       <plugin>
239         <groupId>org.apache.maven.plugins</groupId>
240         <artifactId>maven-antrun-plugin</artifactId>
241         <executions>
242             <execution>
243                 <phase>prepare-package</phase>
244                 <goals>
245                     <goal>run</goal>
246                 </goals>
247                 <configuration>
248                   <tasks>
249                     <chmod perm="755">
250                         <fileset dir="${project.build.directory}/assembly/bin">
251                           <include name="karaf" />
252                           <include name="instance" />
253                           <include name="start" />
254                           <include name="stop" />
255                           <include name="status" />
256                           <include name="client" />
257                           <include name="shell" />
258                         </fileset>
259                     </chmod>
260                   </tasks>
261                 </configuration>
262             </execution>
263         </executions>
264       </plugin>
265     </plugins>
266   </build>
267   <scm>
268     <connection>scm:git:ssh://git.opendaylight.org:29418/.git</connection>
269     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/oovsdbvsdb.git</developerConnection>
270     <tag>HEAD</tag>
271     <url>https://git.opendaylight.org/gerrit/gitweb?p=ovsdb.git;a=summary</url>
272   </scm>
273 </project>