Merge "Bug 6051: Temporarly disable Neutron in build"
[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     <nsf.version>0.7.0-SNAPSHOT</nsf.version>
42     <restconf.version>1.4.0-SNAPSHOT</restconf.version>
43     <sal.version>0.11.0-SNAPSHOT</sal.version>
44     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
45     <statisticsmanager.version>0.5.0</statisticsmanager.version>
46     <yang.src.path>src/main/yang</yang.src.path>
47     <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
48   </properties>
49
50   <dependencyManagement>
51     <dependencies>
52       <!-- NOTE: The "Type" jar is considered default. You only need to specify
53                  the type when it is something other than jar. -->
54       <dependency>
55        <groupId>org.opendaylight.yangtools</groupId>
56        <artifactId>yangtools-artifacts</artifactId>
57        <version>1.0.0-SNAPSHOT</version>
58        <type>pom</type>
59       <scope>import</scope>
60       </dependency>
61       <dependency>
62         <groupId>org.opendaylight.mdsal</groupId>
63         <artifactId>mdsal-artifacts</artifactId>
64         <version>2.1.0-SNAPSHOT</version>
65         <type>pom</type>
66        <scope>import</scope>
67       </dependency>
68       <dependency>
69         <groupId>org.opendaylight.mdsal.model</groupId>
70         <artifactId>mdsal-model-artifacts</artifactId>
71         <version>0.9.0-SNAPSHOT</version>
72         <type>pom</type>
73         <scope>import</scope>
74       </dependency>
75       <dependency>
76         <groupId>junit-addons</groupId>
77         <artifactId>junit-addons</artifactId>
78         <version>1.4</version>
79       </dependency>
80       <dependency>
81         <groupId>org.jmock</groupId>
82         <artifactId>jmock</artifactId>
83         <version>2.6.0</version>
84       </dependency>
85       <dependency>
86         <groupId>org.jmock</groupId>
87         <artifactId>jmock-legacy</artifactId>
88         <version>2.6.0</version>
89       </dependency>
90       <dependency>
91         <groupId>org.opendaylight.controller</groupId>
92         <artifactId>config-api</artifactId>
93         <version>0.5.0-SNAPSHOT</version>
94       </dependency>
95       <dependency>
96         <groupId>org.opendaylight.controller</groupId>
97         <artifactId>config-manager</artifactId>
98         <version>${config.version}</version>
99       </dependency>
100       <dependency>
101         <groupId>org.opendaylight.controller</groupId>
102         <artifactId>config-util</artifactId>
103         <version>0.5.0-SNAPSHOT</version>
104       </dependency>
105
106       <dependency>
107         <groupId>org.opendaylight.controller</groupId>
108         <artifactId>karaf.branding</artifactId>
109         <version>${branding.version}</version>
110         <scope>compile</scope>
111       </dependency>
112       <dependency>
113         <groupId>org.opendaylight.controller</groupId>
114         <artifactId>netty-event-executor-config</artifactId>
115         <version>${config.version}</version>
116       </dependency>
117       <dependency>
118         <groupId>org.opendaylight.controller</groupId>
119         <artifactId>opendaylight-karaf-empty</artifactId>
120         <version>${karaf.empty.version}</version>
121         <type>zip</type>
122       </dependency>
123
124       <dependency>
125         <groupId>org.opendaylight.controller</groupId>
126         <artifactId>opendaylight-karaf-resources</artifactId>
127         <version>${karaf.resources.version}</version>
128       </dependency>
129       <dependency>
130         <groupId>org.opendaylight.controller</groupId>
131         <artifactId>sal-binding-api</artifactId>
132         <version>${mdsal.version}</version>
133       </dependency>
134       <dependency>
135         <groupId>org.opendaylight.controller</groupId>
136         <artifactId>sal-binding-broker-impl</artifactId>
137         <version>${mdsal.version}</version>
138       </dependency>
139       <dependency>
140         <groupId>org.opendaylight.controller</groupId>
141         <artifactId>sal-binding-config</artifactId>
142         <version>${mdsal.version}</version>
143       </dependency>
144       <dependency>
145         <groupId>org.opendaylight.controller</groupId>
146         <artifactId>sal-broker-impl</artifactId>
147         <version>${mdsal.version}</version>
148       </dependency>
149       <dependency>
150         <groupId>org.opendaylight.controller</groupId>
151         <artifactId>sal-common-util</artifactId>
152         <version>${mdsal.version}</version>
153       </dependency>
154       <dependency>
155         <groupId>org.opendaylight.controller</groupId>
156         <artifactId>threadpool-config-api</artifactId>
157         <version>${config.version}</version>
158       </dependency>
159       <dependency>
160         <groupId>org.opendaylight.controller</groupId>
161         <artifactId>threadpool-config-impl</artifactId>
162         <version>0.5.0-SNAPSHOT</version>
163       </dependency>
164       <dependency>
165         <groupId>org.opendaylight.lispflowmapping</groupId>
166         <artifactId>common.build.tools</artifactId>
167         <version>${lispflowmapping.version}</version>
168       </dependency>
169       <dependency>
170         <groupId>org.opendaylight.lispflowmapping</groupId>
171         <artifactId>lispflowmapping-code-commons</artifactId>
172         <version>${lispflowmapping.version}</version>
173       </dependency>
174       <dependency>
175         <groupId>org.opendaylight.lispflowmapping</groupId>
176         <artifactId>lispflowmapping-commons</artifactId>
177         <version>${lispflowmapping.version}</version>
178       </dependency>
179       <dependency>
180         <groupId>org.opendaylight.lispflowmapping</groupId>
181         <artifactId>mappingservice.api</artifactId>
182         <version>${lispflowmapping.version}</version>
183       </dependency>
184       <dependency>
185         <groupId>org.opendaylight.lispflowmapping</groupId>
186         <artifactId>mappingservice.implementation</artifactId>
187         <version>${lispflowmapping.version}</version>
188       </dependency>
189       <dependency>
190         <groupId>org.opendaylight.lispflowmapping</groupId>
191         <artifactId>mappingservice.inmemorydb</artifactId>
192         <version>${lispflowmapping.version}</version>
193       </dependency>
194       <!--
195       <dependency>
196         <groupId>org.opendaylight.lispflowmapping</groupId>
197         <artifactId>mappingservice.neutron</artifactId>
198         <version>${lispflowmapping.version}</version>
199       </dependency>
200       -->
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>${jmxGeneratorPath}</directory>
290                 <includes>
291                   <include>**</include>
292                 </includes>
293               </fileset>
294               <fileset>
295                 <directory>${salGeneratorPath}</directory>
296                 <includes>
297                   <include>**</include>
298                 </includes>
299               </fileset>
300             </filesets>
301           </configuration>
302         </plugin>
303         <plugin>
304           <!-- Configures the java doc generation. Generally you should not have
305                to override this unless you need to exclude other packages etc. -->
306           <groupId>org.apache.maven.plugins</groupId>
307           <artifactId>maven-javadoc-plugin</artifactId>
308           <configuration>
309             <doclet>org.jboss.apiviz.APIviz</doclet>
310             <docletArtifact>
311               <groupId>org.jboss.apiviz</groupId>
312               <artifactId>apiviz</artifactId>
313               <version>1.3.2.GA</version>
314             </docletArtifact>
315             <finalName>${project.artifactId}-${project.version}</finalName>
316             <useStandardDocletOptions>true</useStandardDocletOptions>
317             <charset>UTF-8</charset>
318             <encoding>UTF-8</encoding>
319             <docencoding>UTF-8</docencoding>
320             <breakiterator>true</breakiterator>
321             <version>true</version>
322             <author>true</author>
323             <keywords>true</keywords>
324             <excludePackageNames>net.sf.jnetlib.*:cern.*:corejava:*.internal:edu.uci.*</excludePackageNames>
325             <failOnError>false</failOnError>
326           </configuration>
327         </plugin>
328         <plugin>
329           <groupId>org.apache.maven.plugins</groupId>
330           <artifactId>maven-jxr-plugin</artifactId>
331           <version>2.3</version>
332           <configuration>
333             <aggregate>true</aggregate>
334             <linkJavadoc>true</linkJavadoc>
335             <javadocDir>target/apidocs</javadocDir>
336           </configuration>
337         </plugin>
338         <plugin>
339           <!-- TODO: This should be in ODL parent -->
340           <groupId>org.codehaus.mojo</groupId>
341           <artifactId>build-helper-maven-plugin</artifactId>
342           <executions>
343             <execution>
344               <id>add-source</id>
345               <goals>
346                 <goal>add-source</goal>
347               </goals>
348               <phase>generate-sources</phase>
349               <configuration>
350                 <sources>
351                   <source>${yang.src.path}</source>
352                   <source>${jmxGeneratorPath}</source>
353                   <source>${salGeneratorPath}</source>
354                 </sources>
355               </configuration>
356             </execution>
357           </executions>
358         </plugin>
359
360         <plugin>
361           <groupId>org.eclipse.m2e</groupId>
362           <artifactId>lifecycle-mapping</artifactId>
363           <version>1.0.0</version>
364           <configuration>
365             <lifecycleMappingMetadata>
366               <pluginExecutions>
367                 <pluginExecution>
368                   <pluginExecutionFilter>
369                     <groupId>org.codehaus.mojo</groupId>
370                     <artifactId>properties-maven-plugin</artifactId>
371                     <versionRange>[0.0,)</versionRange>
372                     <goals>
373                       <goal>set-system-properties</goal>
374                     </goals>
375                   </pluginExecutionFilter>
376                   <action>
377                     <ignore></ignore>
378                   </action>
379                 </pluginExecution>
380                 <pluginExecution>
381                   <pluginExecutionFilter>
382                     <groupId>org.jacoco</groupId>
383                     <artifactId>jacoco-maven-plugin</artifactId>
384                     <versionRange>[0.0,)</versionRange>
385                     <goals>
386                       <goal>prepare-agent</goal>
387                       <goal>pre-test</goal>
388                       <goal>post-test</goal>
389                     </goals>
390                   </pluginExecutionFilter>
391                   <action>
392                     <ignore></ignore>
393                   </action>
394                 </pluginExecution>
395                 <pluginExecution>
396                   <pluginExecutionFilter>
397                     <groupId>org.ops4j.pax.exam</groupId>
398                     <artifactId>maven-paxexam-plugin</artifactId>
399                     <versionRange>[1.2.4,)</versionRange>
400                     <goals>
401                       <goal>generate-depends-file</goal>
402                     </goals>
403                   </pluginExecutionFilter>
404                   <action>
405                     <ignore></ignore>
406                   </action>
407                 </pluginExecution>
408                 <pluginExecution>
409                   <pluginExecutionFilter>
410                     <groupId>org.apache.maven.plugins</groupId>
411                     <artifactId>maven-checkstyle-plugin</artifactId>
412                     <versionRange>[2.0,)</versionRange>
413                     <goals>
414                       <goal>check</goal>
415                     </goals>
416                   </pluginExecutionFilter>
417                   <action>
418                     <ignore></ignore>
419                   </action>
420                 </pluginExecution>
421                 <pluginExecution>
422                   <pluginExecutionFilter>
423                     <groupId>org.opendaylight.yangtools</groupId>
424                     <artifactId>yang-maven-plugin</artifactId>
425                     <versionRange>[0.5,)</versionRange>
426                     <goals>
427                       <goal>generate-sources</goal>
428                     </goals>
429                   </pluginExecutionFilter>
430                   <action>
431                     <ignore></ignore>
432                   </action>
433                 </pluginExecution>
434               </pluginExecutions>
435             </lifecycleMappingMetadata>
436           </configuration>
437         </plugin>
438       </plugins>
439     </pluginManagement>
440     <plugins>
441       <plugin>
442         <groupId>org.codehaus.mojo</groupId>
443         <artifactId>build-helper-maven-plugin</artifactId>
444       </plugin>
445     </plugins>
446   </build>
447
448   <reporting>
449     <outputDirectory>${project.build.directory}/site</outputDirectory>
450     <excludeDefaults>true</excludeDefaults>
451     <plugins>
452       <plugin>
453         <groupId>org.apache.maven.plugins</groupId>
454         <artifactId>maven-javadoc-plugin</artifactId>
455         <configuration>
456           <doclet>org.jboss.apiviz.APIviz</doclet>
457           <docletArtifact>
458             <groupId>org.jboss.apiviz</groupId>
459             <artifactId>apiviz</artifactId>
460             <version>1.3.2.GA</version>
461           </docletArtifact>
462           <finalName>${project.artifactId}-${build.suffix}</finalName>
463           <useStandardDocletOptions>true</useStandardDocletOptions>
464           <charset>UTF-8</charset>
465           <encoding>UTF-8</encoding>
466           <docencoding>UTF-8</docencoding>
467           <breakiterator>true</breakiterator>
468           <version>true</version>
469           <author>true</author>
470           <keywords>true</keywords>
471           <excludePackageNames>*.internal:edu.uci.*</excludePackageNames>
472         </configuration>
473       </plugin>
474       <plugin>
475         <groupId>org.apache.maven.plugins</groupId>
476         <artifactId>maven-jxr-plugin</artifactId>
477         <version>2.3</version>
478         <configuration>
479           <aggregate>true</aggregate>
480           <linkJavadoc>true</linkJavadoc>
481         </configuration>
482       </plugin>
483       <plugin>
484         <groupId>org.apache.maven.plugins</groupId>
485         <artifactId>maven-project-info-reports-plugin</artifactId>
486         <version>${projectinfo}</version>
487         <configuration>
488           <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
489           <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
490         </configuration>
491         <reportSets>
492           <reportSet>
493             <reports>
494               <report>index</report>
495               <report>project-team</report>
496               <report>license</report>
497               <report>mailing-list</report>
498               <report>plugin-management</report>
499               <report>cim</report>
500               <report>issue-tracking</report>
501               <report>scm</report>
502               <report>summary</report>
503             </reports>
504           </reportSet>
505         </reportSets>
506       </plugin>
507     </plugins>
508   </reporting>
509
510   <!--
511       Maven Site Configuration
512
513       The following configuration is necessary for maven-site-plugin to
514       correctly identify the correct deployment path for OpenDaylight Maven
515       sites.
516   -->
517   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
518
519   <distributionManagement>
520     <!-- Note: We want the nexus proxy property here because want to enable
521          devs to upload this artifact using mvn deploy to other maven repositories. -->
522     <!-- OpenDayLight Released artifact -->
523     <repository>
524       <id>opendaylight-release</id>
525       <url>${nexusproxy}/repositories/opendaylight.release/</url>
526     </repository>
527     <!-- OpenDayLight Snapshot artifact -->
528     <snapshotRepository>
529       <id>opendaylight-snapshot</id>
530       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
531     </snapshotRepository>
532     <!-- Site deployment -->
533     <site>
534       <id>opendaylight-site</id>
535       <url>${nexus.site.url}/${project.artifactId}/</url>
536     </site>
537   </distributionManagement>
538
539 </project>