Merge "Remove <nexusproxy> poroperty"
[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       <dependency>
195         <groupId>org.opendaylight.lispflowmapping</groupId>
196         <artifactId>mappingservice.neutron</artifactId>
197         <version>${lispflowmapping.version}</version>
198       </dependency>
199       <dependency>
200         <groupId>org.opendaylight.lispflowmapping</groupId>
201         <artifactId>mappingservice.northbound</artifactId>
202         <version>${lispflowmapping.version}</version>
203       </dependency>
204       <dependency>
205         <groupId>org.opendaylight.lispflowmapping</groupId>
206         <artifactId>mappingservice.shell</artifactId>
207         <version>${lispflowmapping.version}</version>
208       </dependency>
209       <dependency>
210         <groupId>org.opendaylight.lispflowmapping</groupId>
211         <artifactId>mappingservice.southbound</artifactId>
212         <version>${lispflowmapping.version}</version>
213       </dependency>
214       <dependency>
215         <groupId>org.opendaylight.lispflowmapping</groupId>
216         <artifactId>mappingservice.lisp-proto</artifactId>
217         <version>${lispflowmapping.version}</version>
218       </dependency>
219       <dependency>
220         <groupId>org.opendaylight.lispflowmapping</groupId>
221         <artifactId>common.unittest.tools</artifactId>
222         <version>${lispflowmapping.version}</version>
223         <scope>test</scope>
224       </dependency>
225       <dependency>
226         <groupId>org.opendaylight.yangtools</groupId>
227         <artifactId>mockito-configuration</artifactId>
228         <version>${yangtools.version}</version>
229         <scope>test</scope>
230       </dependency>
231       <dependency>
232         <groupId>org.opendaylight.lispflowmapping</groupId>
233         <artifactId>ui-lispflowmapping</artifactId>
234         <version>${lispflowmapping.version}</version>
235       </dependency>
236     </dependencies>
237   </dependencyManagement>
238   <build>
239     <pluginManagement>
240       <plugins>
241         <plugin>
242           <!-- This configures the sort pom plugin to sort properties, dependencies
243                etc during a build. It helps to ensure consistent poms that are easy to read.
244                While the configuration should exist at a root level it is still up to the
245                individual projects to invoke it by defining the plugin in the build->plugins
246                section. -->
247           <groupId>com.google.code.sortpom</groupId>
248           <artifactId>maven-sortpom-plugin</artifactId>
249           <version>2.2.1</version>
250           <configuration>
251             <createBackupFile>false</createBackupFile>
252             <encoding>${project.build.sourceEncoding}</encoding>
253             <keepBlankLines>true</keepBlankLines>
254             <lineSeparator>\n</lineSeparator>
255             <nrOfIndentSpace>2</nrOfIndentSpace>
256             <predefinedSortOrder>custom_1</predefinedSortOrder>
257             <sortDependencies>scope,groupId,artifactId</sortDependencies>
258             <sortPlugins>groupId,artifactId</sortPlugins>
259             <sortProperties>true</sortProperties>
260           </configuration>
261           <executions>
262             <execution>
263               <goals>
264                 <goal>sort</goal>
265               </goals>
266               <phase>verify</phase>
267             </execution>
268           </executions>
269         </plugin>
270         <plugin>
271           <groupId>org.apache.maven.plugins</groupId>
272           <artifactId>maven-assembly-plugin</artifactId>
273           <version>2.4</version>
274         </plugin>
275         <plugin>
276           <!-- TODO move up to ODL parent. -->
277           <!-- This is required to make sure that we delete the files which are
278                being generated under the src/main directory since by default only files
279                under target get cleaned up. Because the clean plugin is automatically invoked
280                you do NOT need to specify it in the build->plugin section. You would only
281                want to override this if you have additional folders which need to be cleaned
282                up. -->
283           <artifactId>maven-clean-plugin</artifactId>
284           <configuration>
285             <filesets>
286               <fileset>
287                 <directory>${jmxGeneratorPath}</directory>
288                 <includes>
289                   <include>**</include>
290                 </includes>
291               </fileset>
292               <fileset>
293                 <directory>${salGeneratorPath}</directory>
294                 <includes>
295                   <include>**</include>
296                 </includes>
297               </fileset>
298             </filesets>
299           </configuration>
300         </plugin>
301         <plugin>
302           <!-- Configures the java doc generation. Generally you should not have
303                to override this unless you need to exclude other packages etc. -->
304           <groupId>org.apache.maven.plugins</groupId>
305           <artifactId>maven-javadoc-plugin</artifactId>
306           <configuration>
307             <doclet>org.jboss.apiviz.APIviz</doclet>
308             <docletArtifact>
309               <groupId>org.jboss.apiviz</groupId>
310               <artifactId>apiviz</artifactId>
311               <version>1.3.2.GA</version>
312             </docletArtifact>
313             <finalName>${project.artifactId}-${project.version}</finalName>
314             <useStandardDocletOptions>true</useStandardDocletOptions>
315             <charset>UTF-8</charset>
316             <encoding>UTF-8</encoding>
317             <docencoding>UTF-8</docencoding>
318             <breakiterator>true</breakiterator>
319             <version>true</version>
320             <author>true</author>
321             <keywords>true</keywords>
322             <excludePackageNames>net.sf.jnetlib.*:cern.*:corejava:*.internal:edu.uci.*</excludePackageNames>
323             <failOnError>false</failOnError>
324           </configuration>
325         </plugin>
326         <plugin>
327           <groupId>org.apache.maven.plugins</groupId>
328           <artifactId>maven-jxr-plugin</artifactId>
329           <version>2.3</version>
330           <configuration>
331             <aggregate>true</aggregate>
332             <linkJavadoc>true</linkJavadoc>
333             <javadocDir>target/apidocs</javadocDir>
334           </configuration>
335         </plugin>
336         <plugin>
337           <!-- TODO: This should be in ODL parent -->
338           <groupId>org.codehaus.mojo</groupId>
339           <artifactId>build-helper-maven-plugin</artifactId>
340           <executions>
341             <execution>
342               <id>add-source</id>
343               <goals>
344                 <goal>add-source</goal>
345               </goals>
346               <phase>generate-sources</phase>
347               <configuration>
348                 <sources>
349                   <source>${yang.src.path}</source>
350                   <source>${jmxGeneratorPath}</source>
351                   <source>${salGeneratorPath}</source>
352                 </sources>
353               </configuration>
354             </execution>
355           </executions>
356         </plugin>
357
358         <plugin>
359           <groupId>org.eclipse.m2e</groupId>
360           <artifactId>lifecycle-mapping</artifactId>
361           <version>1.0.0</version>
362           <configuration>
363             <lifecycleMappingMetadata>
364               <pluginExecutions>
365                 <pluginExecution>
366                   <pluginExecutionFilter>
367                     <groupId>org.codehaus.mojo</groupId>
368                     <artifactId>properties-maven-plugin</artifactId>
369                     <versionRange>[0.0,)</versionRange>
370                     <goals>
371                       <goal>set-system-properties</goal>
372                     </goals>
373                   </pluginExecutionFilter>
374                   <action>
375                     <ignore></ignore>
376                   </action>
377                 </pluginExecution>
378                 <pluginExecution>
379                   <pluginExecutionFilter>
380                     <groupId>org.jacoco</groupId>
381                     <artifactId>jacoco-maven-plugin</artifactId>
382                     <versionRange>[0.0,)</versionRange>
383                     <goals>
384                       <goal>prepare-agent</goal>
385                       <goal>pre-test</goal>
386                       <goal>post-test</goal>
387                     </goals>
388                   </pluginExecutionFilter>
389                   <action>
390                     <ignore></ignore>
391                   </action>
392                 </pluginExecution>
393                 <pluginExecution>
394                   <pluginExecutionFilter>
395                     <groupId>org.ops4j.pax.exam</groupId>
396                     <artifactId>maven-paxexam-plugin</artifactId>
397                     <versionRange>[1.2.4,)</versionRange>
398                     <goals>
399                       <goal>generate-depends-file</goal>
400                     </goals>
401                   </pluginExecutionFilter>
402                   <action>
403                     <ignore></ignore>
404                   </action>
405                 </pluginExecution>
406                 <pluginExecution>
407                   <pluginExecutionFilter>
408                     <groupId>org.apache.maven.plugins</groupId>
409                     <artifactId>maven-checkstyle-plugin</artifactId>
410                     <versionRange>[2.0,)</versionRange>
411                     <goals>
412                       <goal>check</goal>
413                     </goals>
414                   </pluginExecutionFilter>
415                   <action>
416                     <ignore></ignore>
417                   </action>
418                 </pluginExecution>
419                 <pluginExecution>
420                   <pluginExecutionFilter>
421                     <groupId>org.opendaylight.yangtools</groupId>
422                     <artifactId>yang-maven-plugin</artifactId>
423                     <versionRange>[0.5,)</versionRange>
424                     <goals>
425                       <goal>generate-sources</goal>
426                     </goals>
427                   </pluginExecutionFilter>
428                   <action>
429                     <ignore></ignore>
430                   </action>
431                 </pluginExecution>
432               </pluginExecutions>
433             </lifecycleMappingMetadata>
434           </configuration>
435         </plugin>
436       </plugins>
437     </pluginManagement>
438     <plugins>
439       <plugin>
440         <groupId>org.codehaus.mojo</groupId>
441         <artifactId>build-helper-maven-plugin</artifactId>
442       </plugin>
443     </plugins>
444   </build>
445
446   <reporting>
447     <outputDirectory>${project.build.directory}/site</outputDirectory>
448     <excludeDefaults>true</excludeDefaults>
449     <plugins>
450       <plugin>
451         <groupId>org.apache.maven.plugins</groupId>
452         <artifactId>maven-javadoc-plugin</artifactId>
453         <configuration>
454           <doclet>org.jboss.apiviz.APIviz</doclet>
455           <docletArtifact>
456             <groupId>org.jboss.apiviz</groupId>
457             <artifactId>apiviz</artifactId>
458             <version>1.3.2.GA</version>
459           </docletArtifact>
460           <finalName>${project.artifactId}-${build.suffix}</finalName>
461           <useStandardDocletOptions>true</useStandardDocletOptions>
462           <charset>UTF-8</charset>
463           <encoding>UTF-8</encoding>
464           <docencoding>UTF-8</docencoding>
465           <breakiterator>true</breakiterator>
466           <version>true</version>
467           <author>true</author>
468           <keywords>true</keywords>
469           <excludePackageNames>*.internal:edu.uci.*</excludePackageNames>
470         </configuration>
471       </plugin>
472       <plugin>
473         <groupId>org.apache.maven.plugins</groupId>
474         <artifactId>maven-jxr-plugin</artifactId>
475         <version>2.3</version>
476         <configuration>
477           <aggregate>true</aggregate>
478           <linkJavadoc>true</linkJavadoc>
479         </configuration>
480       </plugin>
481       <plugin>
482         <groupId>org.apache.maven.plugins</groupId>
483         <artifactId>maven-project-info-reports-plugin</artifactId>
484         <version>${projectinfo}</version>
485         <configuration>
486           <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
487           <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
488         </configuration>
489         <reportSets>
490           <reportSet>
491             <reports>
492               <report>index</report>
493               <report>project-team</report>
494               <report>license</report>
495               <report>mailing-list</report>
496               <report>plugin-management</report>
497               <report>cim</report>
498               <report>issue-tracking</report>
499               <report>scm</report>
500               <report>summary</report>
501             </reports>
502           </reportSet>
503         </reportSets>
504       </plugin>
505     </plugins>
506   </reporting>
507
508   <!--
509       Maven Site Configuration
510
511       The following configuration is necessary for maven-site-plugin to
512       correctly identify the correct deployment path for OpenDaylight Maven
513       sites.
514   -->
515   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
516
517   <distributionManagement>
518     <!-- Note: We want the nexus proxy property here because want to enable
519          devs to upload this artifact using mvn deploy to other maven repositories. -->
520     <!-- OpenDayLight Released artifact -->
521     <repository>
522       <id>opendaylight-release</id>
523       <url>${nexusproxy}/repositories/opendaylight.release/</url>
524     </repository>
525     <!-- OpenDayLight Snapshot artifact -->
526     <snapshotRepository>
527       <id>opendaylight-snapshot</id>
528       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
529     </snapshotRepository>
530     <!-- Site deployment -->
531     <site>
532       <id>opendaylight-site</id>
533       <url>${nexus.site.url}/${project.artifactId}/</url>
534     </site>
535   </distributionManagement>
536
537 </project>