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