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