Merge "BUG-2953 : Unable to read from datastore root with clustering enabled"
[controller.git] / karaf / 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.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.5.0-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12
13   <dependencies>
14     <dependency>
15       <!-- scope is compile so all features (there is only one) are installed
16             into startup.properties and the feature repo itself is not installed -->
17       <groupId>org.apache.karaf.features</groupId>
18       <artifactId>framework</artifactId>
19       <version>${karaf.version}</version>
20       <type>kar</type>
21     </dependency>
22     <dependency>
23       <groupId>org.opendaylight.controller</groupId>
24       <artifactId>karaf.branding</artifactId>
25       <scope>compile</scope>
26     </dependency>
27
28     <!-- Resources needed -->
29     <dependency>
30       <groupId>org.opendaylight.controller</groupId>
31       <artifactId>opendaylight-karaf-resources</artifactId>
32       <version>${project.version}</version>
33     </dependency>
34
35     <!-- scope is not runtime so the feature repo is pulled into the local
36     repo on build and thus you actually run.  Failure to do so can lead
37     to very confusing errors for devs -->
38     <dependency>
39       <groupId>org.apache.karaf.features</groupId>
40       <artifactId>standard</artifactId>
41       <version>${karaf.version}</version>
42       <classifier>features</classifier>
43       <type>xml</type>
44     </dependency>
45
46     <!--
47           controller provided features:
48           Note: Nothing should go here that is not locked
49           down with testing... ie, no broken feature repos
50     -->
51
52     <!-- AD-SAL Related Features -->
53     <dependency>
54       <groupId>org.opendaylight.controller</groupId>
55       <artifactId>features-base</artifactId>
56       <classifier>features</classifier>
57       <type>xml</type>
58       <scope>runtime</scope>
59     </dependency>
60     <dependency>
61       <groupId>org.opendaylight.controller</groupId>
62       <artifactId>features-adsal</artifactId>
63       <classifier>features</classifier>
64       <type>xml</type>
65       <scope>runtime</scope>
66     </dependency>
67     <dependency>
68       <groupId>org.opendaylight.controller</groupId>
69       <artifactId>features-nsf</artifactId>
70       <classifier>features</classifier>
71       <type>xml</type>
72       <scope>runtime</scope>
73     </dependency>
74     <!-- MD-SAL Related Features -->
75     <dependency>
76       <groupId>org.opendaylight.controller</groupId>
77       <artifactId>features-mdsal</artifactId>
78       <classifier>features</classifier>
79       <type>xml</type>
80       <scope>runtime</scope>
81     </dependency>
82       <dependency>
83           <groupId>org.opendaylight.controller</groupId>
84           <artifactId>features-extras</artifactId>
85           <version>${project.version}</version>
86           <classifier>features</classifier>
87           <type>xml</type>
88           <scope>runtime</scope>
89       </dependency>
90     <dependency>
91       <groupId>org.opendaylight.controller</groupId>
92       <artifactId>features-restconf</artifactId>
93       <version>1.2.0-SNAPSHOT</version>
94       <classifier>features</classifier>
95       <type>xml</type>
96       <scope>runtime</scope>
97     </dependency>
98     <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
99     <dependency>
100       <groupId>org.opendaylight.controller</groupId>
101       <artifactId>features-netconf-connector</artifactId>
102       <classifier>features</classifier>
103       <type>xml</type>
104     </dependency>
105   </dependencies>
106
107   <build>
108     <pluginManagement>
109       <plugins>
110         <plugin>
111           <groupId>org.eclipse.m2e</groupId>
112           <artifactId>lifecycle-mapping</artifactId>
113           <version>1.0.0</version>
114           <configuration>
115             <lifecycleMappingMetadata>
116               <pluginExecutions>
117                 <pluginExecution>
118                   <pluginExecutionFilter>
119                     <groupId>org.apache.felix</groupId>
120                     <artifactId>maven-bundle-plugin</artifactId>
121                     <versionRange>[0,)</versionRange>
122                     <goals>
123                       <goal>cleanVersions</goal>
124                     </goals>
125                   </pluginExecutionFilter>
126                   <action>
127                     <ignore></ignore>
128                   </action>
129                 </pluginExecution>
130                 <pluginExecution>
131                   <pluginExecutionFilter>
132                     <groupId>org.apache.maven.plugins</groupId>
133                     <artifactId>maven-dependency-plugin</artifactId>
134                     <versionRange>[0,)</versionRange>
135                     <goals>
136                       <goal>copy</goal>
137                       <goal>unpack</goal>
138                     </goals>
139                   </pluginExecutionFilter>
140                   <action>
141                     <ignore></ignore>
142                   </action>
143                 </pluginExecution>
144                 <pluginExecution>
145                   <pluginExecutionFilter>
146                     <groupId>org.apache.karaf.tooling</groupId>
147                     <artifactId>karaf-maven-plugin</artifactId>
148                     <versionRange>[0,)</versionRange>
149                     <goals>
150                       <goal>commands-generate-help</goal>
151                     </goals>
152                   </pluginExecutionFilter>
153                   <action>
154                     <ignore></ignore>
155                   </action>
156                 </pluginExecution>
157                 <pluginExecution>
158                   <pluginExecutionFilter>
159                     <groupId>org.fusesource.scalate</groupId>
160                     <artifactId>maven-scalate-plugin</artifactId>
161                     <versionRange>[0,)</versionRange>
162                     <goals>
163                       <goal>sitegen</goal>
164                     </goals>
165                   </pluginExecutionFilter>
166                   <action>
167                     <ignore></ignore>
168                   </action>
169                 </pluginExecution>
170                 <pluginExecution>
171                   <pluginExecutionFilter>
172                     <groupId>org.apache.servicemix.tooling</groupId>
173                     <artifactId>depends-maven-plugin</artifactId>
174                     <versionRange>[0,)</versionRange>
175                     <goals>
176                       <goal>generate-depends-file</goal>
177                     </goals>
178                   </pluginExecutionFilter>
179                   <action>
180                     <ignore></ignore>
181                   </action>
182                 </pluginExecution>
183               </pluginExecutions>
184             </lifecycleMappingMetadata>
185           </configuration>
186         </plugin>
187       </plugins>
188     </pluginManagement>
189     <plugins>
190       <plugin>
191         <groupId>org.apache.karaf.tooling</groupId>
192         <artifactId>karaf-maven-plugin</artifactId>
193         <version>${karaf.version}</version>
194         <extensions>true</extensions>
195         <configuration>
196           <!-- no startupFeatures -->
197           <bootFeatures>
198             <feature>standard</feature>
199           </bootFeatures>
200           <!-- no installedFeatures -->
201         </configuration>
202         <executions>
203           <execution>
204             <id>process-resources</id>
205             <goals>
206               <goal>install-kars</goal>
207             </goals>
208             <phase>process-resources</phase>
209           </execution>
210           <execution>
211             <id>package</id>
212             <goals>
213               <goal>instance-create-archive</goal>
214             </goals>
215           </execution>
216         </executions>
217       </plugin>
218       <plugin>
219         <groupId>org.apache.maven.plugins</groupId>
220         <artifactId>maven-checkstyle-plugin</artifactId>
221         <configuration>
222           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
223         </configuration>
224       </plugin>
225       <plugin>
226         <groupId>org.apache.maven.plugins</groupId>
227         <artifactId>maven-dependency-plugin</artifactId>
228         <version>2.6</version>
229         <executions>
230           <execution>
231             <id>copy</id>
232             <goals>
233               <goal>copy</goal>
234             </goals>
235             <!-- here the phase you need -->
236             <phase>generate-resources</phase>
237             <configuration>
238               <artifactItems>
239                 <artifactItem>
240                   <groupId>org.opendaylight.controller</groupId>
241                   <artifactId>karaf.branding</artifactId>
242                   <version>${karaf.branding.version}</version>
243                   <outputDirectory>target/assembly/lib</outputDirectory>
244                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
245                 </artifactItem>
246                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
247               <artifactItem>
248                   <groupId>org.bouncycastle</groupId>
249                   <artifactId>bcprov-jdk15on</artifactId>
250                   <version>${bouncycastle.version}</version>
251                   <outputDirectory>target/assembly/lib/ext</outputDirectory>
252                   <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
253               </artifactItem>
254               </artifactItems>
255             </configuration>
256           </execution>
257           <execution>
258             <id>unpack-karaf-resources</id>
259             <goals>
260               <goal>unpack-dependencies</goal>
261             </goals>
262             <phase>prepare-package</phase>
263             <configuration>
264              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
265              <groupId>org.opendaylight.controller</groupId>
266              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
267              <excludes>META-INF\/**</excludes>
268              <excludeTransitive>true</excludeTransitive>
269              <ignorePermissions>false</ignorePermissions>
270             </configuration>
271           </execution>
272         </executions>
273       </plugin>
274       <plugin>
275         <groupId>org.apache.maven.plugins</groupId>
276         <artifactId>maven-antrun-plugin</artifactId>
277         <executions>
278             <execution>
279                 <phase>prepare-package</phase>
280                 <goals>
281                     <goal>run</goal>
282                 </goals>
283                 <configuration>
284                   <tasks>
285                     <chmod perm="755">
286                         <fileset dir="${project.build.directory}/assembly/bin">
287                           <include name="karaf"/>
288                           <include name="instance"/>
289                           <include name="start"/>
290                           <include name="stop"/>
291                           <include name="status"/>
292                           <include name="client"/>
293                           <include name="shell"/>
294                         </fileset>
295                     </chmod>
296                   </tasks>
297                 </configuration>
298             </execution>
299         </executions>
300       </plugin>
301     </plugins>
302   </build>
303   <scm>
304     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
305     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
306     <tag>HEAD</tag>
307     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
308   </scm>
309 </project>