Move karaf shell commands to the config subsystem
[lispflowmapping.git] / commons / parent / 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/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4
5   <!-- NOTE: Tags we removed: SCM: We don't use maven to pull and push code, so
6              the SCM section does not appear to be needed. See http://maven.apache.org/scm/maven-scm-plugin/usage.html
7
8        NOTE: Our ultimate goal is to remove this pom, and move everything in here
9              up to ODL parent or the root of this project, depending on
10              its relevance. Only the logical root should reference this file. -->
11
12   <parent>
13     <!-- We want to inherit of ODL parent so we can inherit common third party
14          versions etc instead of redefining them here. Also we get some common definitions
15          for plugin configuration etc. -->
16     <groupId>org.opendaylight.odlparent</groupId>
17     <artifactId>odlparent</artifactId>
18     <version>1.6.0-SNAPSHOT</version>
19     <relativePath/>
20   </parent>
21
22   <groupId>org.opendaylight.lispflowmapping</groupId>
23   <artifactId>lispflowmapping-commons</artifactId>
24   <version>1.3.0-SNAPSHOT</version>
25   <packaging>pom</packaging>
26   <name>Parent POM</name>
27
28   <properties>
29     <branding.version>1.2.0-SNAPSHOT</branding.version>
30     <build.suffix>1.0.0</build.suffix>
31     <config.version>0.4.0-SNAPSHOT</config.version>
32     <dlux.loader.version>0.3.0-SNAPSHOT</dlux.loader.version>
33     <dlux.core.version>0.3.0-SNAPSHOT</dlux.core.version>
34     <forwardingrulesmanager.version>0.5.0</forwardingrulesmanager.version>
35     <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
36     <karaf.empty.version>1.6.0-SNAPSHOT</karaf.empty.version>
37     <karaf.resources.version>1.6.0-SNAPSHOT</karaf.resources.version>
38     <lispflowmapping.version>1.3.0-SNAPSHOT</lispflowmapping.version>
39     <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
40     <neutron.version>0.6.0-SNAPSHOT</neutron.version>
41     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
42     <nsf.version>0.6.0-SNAPSHOT</nsf.version>
43     <restconf.version>1.3.0-SNAPSHOT</restconf.version>
44     <sal.version>0.10.0-SNAPSHOT</sal.version>
45     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
46     <statisticsmanager.version>0.5.0</statisticsmanager.version>
47     <xtend.dstdir>src/main/xtend-gen</xtend.dstdir>
48     <yang.src.path>src/main/yang</yang.src.path>
49     <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
50   </properties>
51
52   <dependencyManagement>
53     <dependencies>
54       <!-- NOTE: The "Type" jar is considered default. You only need to specify
55                  the type when it is something other than jar. -->
56       <dependency>
57        <groupId>org.opendaylight.yangtools</groupId>
58        <artifactId>yangtools-artifacts</artifactId>
59        <version>0.8.0-SNAPSHOT</version>
60        <type>pom</type>
61       <scope>import</scope>
62       </dependency>
63       <dependency>
64         <groupId>org.opendaylight.mdsal</groupId>
65         <artifactId>mdsal-artifacts</artifactId>
66         <version>2.0.0-SNAPSHOT</version>
67         <type>pom</type>
68        <scope>import</scope>
69       </dependency>
70       <dependency>
71         <groupId>org.opendaylight.mdsal.model</groupId>
72         <artifactId>mdsal-model-artifacts</artifactId>
73         <version>0.8.0-SNAPSHOT</version>
74         <type>pom</type>
75         <scope>import</scope>
76       </dependency>
77       <dependency>
78         <groupId>junit-addons</groupId>
79         <artifactId>junit-addons</artifactId>
80         <version>1.4</version>
81       </dependency>
82       <dependency>
83         <groupId>org.hamcrest</groupId>
84         <artifactId>hamcrest-core</artifactId>
85         <version>${hamcrest.version}</version>
86       </dependency>
87       <dependency>
88         <groupId>org.jmock</groupId>
89         <artifactId>jmock</artifactId>
90         <version>2.6.0</version>
91       </dependency>
92       <dependency>
93         <groupId>org.jmock</groupId>
94         <artifactId>jmock-legacy</artifactId>
95         <version>2.6.0</version>
96       </dependency>
97       <dependency>
98         <groupId>org.opendaylight.controller</groupId>
99         <artifactId>config-api</artifactId>
100         <version>0.4.0-SNAPSHOT</version>
101       </dependency>
102       <dependency>
103         <groupId>org.opendaylight.controller</groupId>
104         <artifactId>config-manager</artifactId>
105         <version>${config.version}</version>
106       </dependency>
107       <dependency>
108         <groupId>org.opendaylight.controller</groupId>
109         <artifactId>config-util</artifactId>
110         <version>0.4.0-SNAPSHOT</version>
111       </dependency>
112
113       <dependency>
114         <groupId>org.opendaylight.controller</groupId>
115         <artifactId>karaf.branding</artifactId>
116         <version>${branding.version}</version>
117         <scope>compile</scope>
118       </dependency>
119       <dependency>
120         <groupId>org.opendaylight.controller</groupId>
121         <artifactId>netty-event-executor-config</artifactId>
122         <version>${config.version}</version>
123       </dependency>
124       <dependency>
125         <groupId>org.opendaylight.controller</groupId>
126         <artifactId>opendaylight-karaf-empty</artifactId>
127         <version>${karaf.empty.version}</version>
128         <type>zip</type>
129       </dependency>
130
131       <dependency>
132         <groupId>org.opendaylight.controller</groupId>
133         <artifactId>opendaylight-karaf-resources</artifactId>
134         <version>${karaf.resources.version}</version>
135       </dependency>
136       <dependency>
137         <groupId>org.opendaylight.controller</groupId>
138         <artifactId>sal-binding-api</artifactId>
139         <version>${mdsal.version}</version>
140       </dependency>
141       <dependency>
142         <groupId>org.opendaylight.controller</groupId>
143         <artifactId>sal-binding-broker-impl</artifactId>
144         <version>${mdsal.version}</version>
145       </dependency>
146       <dependency>
147         <groupId>org.opendaylight.controller</groupId>
148         <artifactId>sal-binding-config</artifactId>
149         <version>${mdsal.version}</version>
150       </dependency>
151       <dependency>
152         <groupId>org.opendaylight.controller</groupId>
153         <artifactId>sal-broker-impl</artifactId>
154         <version>${mdsal.version}</version>
155       </dependency>
156       <dependency>
157         <groupId>org.opendaylight.controller</groupId>
158         <artifactId>sal-common-util</artifactId>
159         <version>${mdsal.version}</version>
160       </dependency>
161       <dependency>
162         <groupId>org.opendaylight.controller</groupId>
163         <artifactId>threadpool-config-api</artifactId>
164         <version>${config.version}</version>
165       </dependency>
166       <dependency>
167         <groupId>org.opendaylight.controller</groupId>
168         <artifactId>threadpool-config-impl</artifactId>
169         <version>0.4.0-SNAPSHOT</version>
170       </dependency>
171       <dependency>
172         <groupId>org.opendaylight.lispflowmapping</groupId>
173         <artifactId>common.build.tools</artifactId>
174         <version>${lispflowmapping.version}</version>
175       </dependency>
176       <dependency>
177         <groupId>org.opendaylight.lispflowmapping</groupId>
178         <artifactId>lispflowmapping-code-commons</artifactId>
179         <version>${lispflowmapping.version}</version>
180       </dependency>
181       <dependency>
182         <groupId>org.opendaylight.lispflowmapping</groupId>
183         <artifactId>lispflowmapping-commons</artifactId>
184         <version>${lispflowmapping.version}</version>
185       </dependency>
186       <dependency>
187         <groupId>org.opendaylight.lispflowmapping</groupId>
188         <artifactId>mappingservice.api</artifactId>
189         <version>${lispflowmapping.version}</version>
190       </dependency>
191       <dependency>
192         <groupId>org.opendaylight.lispflowmapping</groupId>
193         <artifactId>mappingservice.implementation</artifactId>
194         <version>${lispflowmapping.version}</version>
195       </dependency>
196       <dependency>
197         <groupId>org.opendaylight.lispflowmapping</groupId>
198         <artifactId>mappingservice.inmemorydb</artifactId>
199         <version>${lispflowmapping.version}</version>
200       </dependency>
201       <dependency>
202         <groupId>org.opendaylight.lispflowmapping</groupId>
203         <artifactId>mappingservice.neutron</artifactId>
204         <version>${lispflowmapping.version}</version>
205       </dependency>
206       <dependency>
207         <groupId>org.opendaylight.lispflowmapping</groupId>
208         <artifactId>mappingservice.northbound</artifactId>
209         <version>${lispflowmapping.version}</version>
210       </dependency>
211       <dependency>
212         <groupId>org.opendaylight.lispflowmapping</groupId>
213         <artifactId>mappingservice.shell</artifactId>
214         <version>${lispflowmapping.version}</version>
215       </dependency>
216       <dependency>
217         <groupId>org.opendaylight.lispflowmapping</groupId>
218         <artifactId>mappingservice.southbound</artifactId>
219         <version>${lispflowmapping.version}</version>
220       </dependency>
221       <dependency>
222         <groupId>org.opendaylight.lispflowmapping</groupId>
223         <artifactId>mappingservice.lisp-proto</artifactId>
224         <version>${lispflowmapping.version}</version>
225       </dependency>
226       <dependency>
227         <groupId>org.opendaylight.lispflowmapping</groupId>
228         <artifactId>common.unittest.tools</artifactId>
229         <version>${lispflowmapping.version}</version>
230         <scope>test</scope>
231       </dependency>
232       <dependency>
233         <groupId>org.opendaylight.yangtools</groupId>
234         <artifactId>mockito-configuration</artifactId>
235         <version>${yangtools.version}</version>
236         <scope>test</scope>
237       </dependency>
238       <dependency>
239         <groupId>org.opendaylight.lispflowmapping</groupId>
240         <artifactId>ui-lispflowmapping</artifactId>
241         <version>${lispflowmapping.version}</version>
242       </dependency>
243     </dependencies>
244   </dependencyManagement>
245   <build>
246     <pluginManagement>
247       <plugins>
248         <plugin>
249           <!-- This configures the sort pom plugin to sort properties, dependencies
250                etc during a build. It helps to ensure consistent poms that are easy to read.
251                While the configuration should exist at a root level it is still up to the
252                individual projects to invoke it by defining the plugin in the build->plugins
253                section. -->
254           <groupId>com.google.code.sortpom</groupId>
255           <artifactId>maven-sortpom-plugin</artifactId>
256           <version>2.2.1</version>
257           <configuration>
258             <createBackupFile>false</createBackupFile>
259             <encoding>${project.build.sourceEncoding}</encoding>
260             <keepBlankLines>true</keepBlankLines>
261             <lineSeparator>\n</lineSeparator>
262             <nrOfIndentSpace>2</nrOfIndentSpace>
263             <predefinedSortOrder>custom_1</predefinedSortOrder>
264             <sortDependencies>scope,groupId,artifactId</sortDependencies>
265             <sortPlugins>groupId,artifactId</sortPlugins>
266             <sortProperties>true</sortProperties>
267           </configuration>
268           <executions>
269             <execution>
270               <goals>
271                 <goal>sort</goal>
272               </goals>
273               <phase>verify</phase>
274             </execution>
275           </executions>
276         </plugin>
277         <plugin>
278           <groupId>org.apache.maven.plugins</groupId>
279           <artifactId>maven-assembly-plugin</artifactId>
280           <version>2.4</version>
281         </plugin>
282         <plugin>
283           <!-- TODO move up to ODL parent. -->
284           <!-- This is required to make sure that we delete the files which are
285                being generated under the src/main directory since by default only files
286                under target get cleaned up. Because the clean plugin is automatically invoked
287                you do NOT need to specify it in the build->plugin section. You would only
288                want to override this if you have additional folders which need to be cleaned
289                up. -->
290           <artifactId>maven-clean-plugin</artifactId>
291           <configuration>
292             <filesets>
293               <fileset>
294                 <directory>${xtend.dstdir}</directory>
295                 <includes>
296                   <include>**</include>
297                 </includes>
298               </fileset>
299               <fileset>
300                 <directory>${jmxGeneratorPath}</directory>
301                 <includes>
302                   <include>**</include>
303                 </includes>
304               </fileset>
305               <fileset>
306                 <directory>${salGeneratorPath}</directory>
307                 <includes>
308                   <include>**</include>
309                 </includes>
310               </fileset>
311             </filesets>
312           </configuration>
313         </plugin>
314         <plugin>
315           <!-- Configures the java doc generation. Generally you should not have
316                to override this unless you need to exclude other packages etc. -->
317           <groupId>org.apache.maven.plugins</groupId>
318           <artifactId>maven-javadoc-plugin</artifactId>
319           <configuration>
320             <doclet>org.jboss.apiviz.APIviz</doclet>
321             <docletArtifact>
322               <groupId>org.jboss.apiviz</groupId>
323               <artifactId>apiviz</artifactId>
324               <version>1.3.2.GA</version>
325             </docletArtifact>
326             <finalName>${project.artifactId}-${project.version}</finalName>
327             <useStandardDocletOptions>true</useStandardDocletOptions>
328             <charset>UTF-8</charset>
329             <encoding>UTF-8</encoding>
330             <docencoding>UTF-8</docencoding>
331             <breakiterator>true</breakiterator>
332             <version>true</version>
333             <author>true</author>
334             <keywords>true</keywords>
335             <excludePackageNames>net.sf.jnetlib.*:cern.*:corejava:*.internal:edu.uci.*</excludePackageNames>
336             <failOnError>false</failOnError>
337           </configuration>
338         </plugin>
339         <plugin>
340           <groupId>org.apache.maven.plugins</groupId>
341           <artifactId>maven-jxr-plugin</artifactId>
342           <version>2.3</version>
343           <configuration>
344             <aggregate>true</aggregate>
345             <linkJavadoc>true</linkJavadoc>
346             <javadocDir>target/apidocs</javadocDir>
347           </configuration>
348         </plugin>
349         <plugin>
350           <!-- TODO: This should be in ODL parent -->
351           <groupId>org.codehaus.mojo</groupId>
352           <artifactId>build-helper-maven-plugin</artifactId>
353           <executions>
354             <execution>
355               <id>add-source</id>
356               <goals>
357                 <goal>add-source</goal>
358               </goals>
359               <phase>generate-sources</phase>
360               <configuration>
361                 <sources>
362                   <source>${yang.src.path}</source>
363                   <source>${jmxGeneratorPath}</source>
364                   <source>${salGeneratorPath}</source>
365                   <source>${xtend.dstdir}</source>
366                 </sources>
367               </configuration>
368             </execution>
369           </executions>
370         </plugin>
371
372         <plugin>
373           <groupId>org.eclipse.m2e</groupId>
374           <artifactId>lifecycle-mapping</artifactId>
375           <version>1.0.0</version>
376           <configuration>
377             <lifecycleMappingMetadata>
378               <pluginExecutions>
379                 <pluginExecution>
380                   <pluginExecutionFilter>
381                     <groupId>org.codehaus.mojo</groupId>
382                     <artifactId>properties-maven-plugin</artifactId>
383                     <versionRange>[0.0,)</versionRange>
384                     <goals>
385                       <goal>set-system-properties</goal>
386                     </goals>
387                   </pluginExecutionFilter>
388                   <action>
389                     <ignore></ignore>
390                   </action>
391                 </pluginExecution>
392                 <pluginExecution>
393                   <pluginExecutionFilter>
394                     <groupId>org.jacoco</groupId>
395                     <artifactId>jacoco-maven-plugin</artifactId>
396                     <versionRange>[0.0,)</versionRange>
397                     <goals>
398                       <goal>prepare-agent</goal>
399                       <goal>pre-test</goal>
400                       <goal>post-test</goal>
401                     </goals>
402                   </pluginExecutionFilter>
403                   <action>
404                     <ignore></ignore>
405                   </action>
406                 </pluginExecution>
407                 <pluginExecution>
408                   <pluginExecutionFilter>
409                     <groupId>org.ops4j.pax.exam</groupId>
410                     <artifactId>maven-paxexam-plugin</artifactId>
411                     <versionRange>[1.2.4,)</versionRange>
412                     <goals>
413                       <goal>generate-depends-file</goal>
414                     </goals>
415                   </pluginExecutionFilter>
416                   <action>
417                     <ignore></ignore>
418                   </action>
419                 </pluginExecution>
420                 <pluginExecution>
421                   <pluginExecutionFilter>
422                     <groupId>org.apache.maven.plugins</groupId>
423                     <artifactId>maven-checkstyle-plugin</artifactId>
424                     <versionRange>[2.0,)</versionRange>
425                     <goals>
426                       <goal>check</goal>
427                     </goals>
428                   </pluginExecutionFilter>
429                   <action>
430                     <ignore></ignore>
431                   </action>
432                 </pluginExecution>
433                 <pluginExecution>
434                   <pluginExecutionFilter>
435                     <groupId>org.opendaylight.yangtools</groupId>
436                     <artifactId>yang-maven-plugin</artifactId>
437                     <versionRange>[0.5,)</versionRange>
438                     <goals>
439                       <goal>generate-sources</goal>
440                     </goals>
441                   </pluginExecutionFilter>
442                   <action>
443                     <ignore></ignore>
444                   </action>
445                 </pluginExecution>
446               </pluginExecutions>
447             </lifecycleMappingMetadata>
448           </configuration>
449         </plugin>
450         <plugin>
451           <!-- here we are defining the default generators for yang You may need
452                to override this in child poms if you want to define additional generators,
453                such as the JMX generator etc. -->
454           <groupId>org.opendaylight.yangtools</groupId>
455           <artifactId>yang-maven-plugin</artifactId>
456           <version>${yangtools.version}</version>
457           <dependencies>
458             <dependency>
459               <groupId>org.opendaylight.mdsal</groupId>
460               <artifactId>maven-sal-api-gen-plugin</artifactId>
461               <version>${yangtools.version}</version>
462             </dependency>
463           </dependencies>
464           <executions>
465             <execution>
466               <goals>
467                 <goal>generate-sources</goal>
468               </goals>
469               <configuration>
470                 <yangFilesRootDir>${yang.src.path}</yangFilesRootDir>
471                 <codeGenerators>
472                   <generator>
473                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
474                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
475                   </generator>
476                 </codeGenerators>
477                 <inspectDependencies>true</inspectDependencies>
478               </configuration>
479             </execution>
480           </executions>
481         </plugin>
482       </plugins>
483     </pluginManagement>
484     <plugins>
485       <plugin>
486         <groupId>org.codehaus.mojo</groupId>
487         <artifactId>build-helper-maven-plugin</artifactId>
488       </plugin>
489     </plugins>
490   </build>
491
492   <reporting>
493     <outputDirectory>${project.build.directory}/site</outputDirectory>
494     <excludeDefaults>true</excludeDefaults>
495     <plugins>
496       <plugin>
497         <groupId>org.apache.maven.plugins</groupId>
498         <artifactId>maven-javadoc-plugin</artifactId>
499         <version>2.8.1</version>
500         <configuration>
501           <doclet>org.jboss.apiviz.APIviz</doclet>
502           <docletArtifact>
503             <groupId>org.jboss.apiviz</groupId>
504             <artifactId>apiviz</artifactId>
505             <version>1.3.2.GA</version>
506           </docletArtifact>
507           <finalName>${project.artifactId}-${build.suffix}</finalName>
508           <useStandardDocletOptions>true</useStandardDocletOptions>
509           <charset>UTF-8</charset>
510           <encoding>UTF-8</encoding>
511           <docencoding>UTF-8</docencoding>
512           <breakiterator>true</breakiterator>
513           <version>true</version>
514           <author>true</author>
515           <keywords>true</keywords>
516           <excludePackageNames>*.internal:edu.uci.*</excludePackageNames>
517         </configuration>
518       </plugin>
519       <plugin>
520         <groupId>org.apache.maven.plugins</groupId>
521         <artifactId>maven-jxr-plugin</artifactId>
522         <version>2.3</version>
523         <configuration>
524           <aggregate>true</aggregate>
525           <linkJavadoc>true</linkJavadoc>
526         </configuration>
527       </plugin>
528       <plugin>
529         <groupId>org.apache.maven.plugins</groupId>
530         <artifactId>maven-project-info-reports-plugin</artifactId>
531         <version>${projectinfo}</version>
532         <configuration>
533           <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
534           <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
535         </configuration>
536         <reportSets>
537           <reportSet>
538             <reports>
539               <report>index</report>
540               <report>project-team</report>
541               <report>license</report>
542               <report>mailing-list</report>
543               <report>plugin-management</report>
544               <report>cim</report>
545               <report>issue-tracking</report>
546               <report>scm</report>
547               <report>summary</report>
548             </reports>
549           </reportSet>
550         </reportSets>
551       </plugin>
552     </plugins>
553   </reporting>
554
555   <distributionManagement>
556     <!-- Note: We want the nexus proxy property here because want to enable
557          devs to upload this artifact using mvn deploy to other maven repositories. -->
558     <!-- OpenDayLight Released artifact -->
559     <repository>
560       <id>opendaylight-release</id>
561       <url>${nexusproxy}/repositories/opendaylight.release/</url>
562     </repository>
563     <!-- OpenDayLight Snapshot artifact -->
564     <snapshotRepository>
565       <id>opendaylight-snapshot</id>
566       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
567     </snapshotRepository>
568     <!-- Site deployment -->
569   </distributionManagement>
570
571 </project>