Applying the Helium SR4 release patch
[bgpcep.git] / commons / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10
11 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <modelVersion>4.0.0</modelVersion>
13     <scm>
14         <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
15         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
16         <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
17         <tag>HEAD</tag>
18     </scm>
19     <prerequisites>
20         <maven>3.0.4</maven>
21     </prerequisites>
22
23     <parent>
24         <groupId>org.opendaylight.odlparent</groupId>
25         <artifactId>odlparent</artifactId>
26         <version>1.4.6-Helium-SR4</version>
27         <relativePath></relativePath>
28     </parent>
29
30     <groupId>org.opendaylight.bgpcep</groupId>
31     <artifactId>commons.parent</artifactId>
32     <name>BGPCEP common parent</name>
33     <version>0.3.5-Helium-SR4</version>
34     <packaging>pom</packaging>
35
36     <licenses>
37         <license>
38             <name>The Eclipse Public License v1.0</name>
39             <url>http://www.eclipse.org/legal/epl-v10.html</url>
40             <distribution>repo</distribution>
41         </license>
42     </licenses>
43
44     <properties>
45         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
47         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
48
49         <maven.compiler.version>3.1</maven.compiler.version>
50         <maven.dependency.version>2.8</maven.dependency.version>
51         <maven.info.reports.version>2.7</maven.info.reports.version>
52         <maven.jar.version>2.4</maven.jar.version>
53         <maven.javadoc.version>2.9.1</maven.javadoc.version>
54         <maven.shade.version>2.1</maven.shade.version>
55         <maven.site.version>3.3</maven.site.version>
56         <surefire.version>2.15</surefire.version>
57
58         <!-- YANG tools artifacts -->
59         <yangtools.version>0.6.6-Helium-SR4</yangtools.version>
60         <ietf.types.version>2010.09.24.4.4-Helium-SR4</ietf.types.version>
61         <ietf.topology.version>2013.10.21.2.4-Helium-SR4</ietf.topology.version>
62         <yang-ext.version>2013.09.07.4.4-Helium-SR4</yang-ext.version>
63
64         <!-- Controller artifacts -->
65         <controller.config.version>0.2.9-Helium-SR4</controller.config.version>
66         <controller.framework.version>0.5.4-Helium-SR4</controller.framework.version>
67         <controller.mdsal.version>1.1.4-Helium-SR4</controller.mdsal.version>
68
69         <!-- TCP-MD5 artifacts -->
70         <tcpmd5.version>1.0.4-Helium-SR4</tcpmd5.version>
71
72         <!-- Sonar config -->
73         <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
74         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
75         <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
76         <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
77         <sonar.profile>Sonar way with Findbugs</sonar.profile>
78     </properties>
79
80     <dependencyManagement>
81         <dependencies>
82             <!-- This project -->
83             <dependency>
84                 <groupId>${project.groupId}</groupId>
85                 <artifactId>concepts</artifactId>
86                 <version>${project.version}</version>
87             </dependency>
88             <dependency>
89                 <groupId>${project.groupId}</groupId>
90                 <artifactId>util</artifactId>
91                 <version>${project.version}</version>
92             </dependency>
93
94             <!-- Testing Dependencies -->
95             <dependency>
96                 <groupId>org.mockito</groupId>
97                 <artifactId>mockito-core</artifactId>
98                 <version>${mockito.version}</version>
99                 <scope>test</scope>
100             </dependency>
101             <dependency>
102                 <groupId>org.opendaylight.yangtools</groupId>
103                 <artifactId>mockito-configuration</artifactId>
104                 <version>${yangtools.version}</version>
105                 <scope>test</scope>
106             </dependency>
107             <dependency>
108                 <groupId>org.opendaylight.controller</groupId>
109                 <artifactId>config-manager</artifactId>
110                 <version>${controller.config.version}</version>
111                 <scope>test</scope>
112             </dependency>
113             <dependency>
114                 <groupId>org.opendaylight.controller</groupId>
115                 <artifactId>config-manager</artifactId>
116                 <version>${controller.config.version}</version>
117                 <scope>test</scope>
118                 <type>test-jar</type>
119             </dependency>
120             <dependency>
121                 <groupId>org.opendaylight.controller</groupId>
122                 <artifactId>config-util</artifactId>
123                 <version>${controller.config.version}</version>
124                 <scope>test</scope>
125             </dependency>
126             <dependency>
127                 <groupId>org.opendaylight.controller</groupId>
128                 <artifactId>netty-event-executor-config</artifactId>
129                 <version>${controller.config.version}</version>
130                 <scope>test</scope>
131             </dependency>
132             <dependency>
133                 <groupId>org.opendaylight.controller</groupId>
134                 <artifactId>netty-threadgroup-config</artifactId>
135                 <version>${controller.config.version}</version>
136                 <scope>test</scope>
137             </dependency>
138             <dependency>
139                 <groupId>${project.groupId}</groupId>
140                 <artifactId>bgp-rib-spi</artifactId>
141                 <version>${project.version}</version>
142                 <scope>test</scope>
143                 <type>test-jar</type>
144             </dependency>
145             <dependency>
146                 <groupId>${project.groupId}</groupId>
147                 <artifactId>bgp-parser-spi</artifactId>
148                 <version>${project.version}</version>
149                 <scope>test</scope>
150                 <type>test-jar</type>
151             </dependency>
152             <dependency>
153                 <groupId>${project.groupId}</groupId>
154                 <artifactId>bgp-rib-impl</artifactId>
155                 <version>${project.version}</version>
156                 <type>test-jar</type>
157                 <scope>test</scope>
158             </dependency>
159             <dependency>
160                 <groupId>${project.groupId}</groupId>
161                 <artifactId>pcep-spi</artifactId>
162                 <version>${project.version}</version>
163                 <scope>test</scope>
164                 <type>test-jar</type>
165             </dependency>
166             <dependency>
167                 <groupId>${project.groupId}</groupId>
168                 <artifactId>pcep-ietf-stateful02</artifactId>
169                 <version>${project.version}</version>
170                 <scope>test</scope>
171                 <type>test-jar</type>
172             </dependency>
173             <dependency>
174                 <groupId>${project.groupId}</groupId>
175                 <artifactId>programming-impl</artifactId>
176                 <version>${project.version}</version>
177             </dependency>
178             <dependency>
179                 <groupId>${project.groupId}</groupId>
180                 <artifactId>programming-impl</artifactId>
181                 <version>${project.version}</version>
182                 <scope>test</scope>
183                 <type>test-jar</type>
184             </dependency>
185             <dependency>
186                 <groupId>${project.groupId}</groupId>
187                 <artifactId>pcep-impl</artifactId>
188                 <version>${project.version}</version>
189                 <scope>test</scope>
190                 <type>test-jar</type>
191             </dependency>
192             <dependency>
193                 <groupId>${project.groupId}</groupId>
194                 <artifactId>pcep-topology-provider</artifactId>
195                 <version>${project.version}</version>
196                 <scope>test</scope>
197                 <type>test-jar</type>
198             </dependency>
199             <dependency>
200                 <groupId>org.opendaylight.tcpmd5</groupId>
201                 <artifactId>tcpmd5-api</artifactId>
202                 <version>${tcpmd5.version}</version>
203             </dependency>
204             <dependency>
205                 <groupId>org.opendaylight.tcpmd5</groupId>
206                 <artifactId>tcpmd5-netty</artifactId>
207                 <version>${tcpmd5.version}</version>
208             </dependency>
209             <dependency>
210                 <groupId>org.opendaylight.tcpmd5</groupId>
211                 <artifactId>tcpmd5-jni</artifactId>
212                 <version>${tcpmd5.version}</version>
213                 <scope>test</scope>
214             </dependency>
215             <dependency>
216                 <groupId>org.opendaylight.tcpmd5</groupId>
217                 <artifactId>tcpmd5-jni</artifactId>
218                 <version>${tcpmd5.version}</version>
219                 <type>test-jar</type>
220                 <scope>test</scope>
221             </dependency>
222             <dependency>
223                 <groupId>ch.qos.logback</groupId>
224                 <artifactId>logback-classic</artifactId>
225                 <version>${logback.version}</version>
226             </dependency>
227             <dependency>
228                 <groupId>org.opendaylight.controller</groupId>
229                 <artifactId>sal-binding-broker-impl</artifactId>
230                 <version>${controller.mdsal.version}</version>
231                 <scope>test</scope>
232                 <type>test-jar</type>
233             </dependency>
234
235             <!-- Supporting Libraries -->
236
237             <dependency>
238                 <groupId>org.slf4j</groupId>
239                 <artifactId>slf4j-api</artifactId>
240                 <version>${slf4j.version}</version>
241             </dependency>
242             <dependency>
243                 <groupId>com.google.guava</groupId>
244                 <artifactId>guava</artifactId>
245                 <version>${guava.version}</version>
246             </dependency>
247             <dependency>
248                 <groupId>com.google.code.findbugs</groupId>
249                 <artifactId>jsr305</artifactId>
250                 <version>2.0.3</version>
251             </dependency>
252
253             <!-- Netty -->
254             <dependency>
255                 <groupId>io.netty</groupId>
256                 <artifactId>netty-buffer</artifactId>
257                 <version>${netty.version}</version>
258             </dependency>
259             <dependency>
260                 <groupId>io.netty</groupId>
261                 <artifactId>netty-codec</artifactId>
262                 <version>${netty.version}</version>
263             </dependency>
264             <dependency>
265                 <groupId>io.netty</groupId>
266                 <artifactId>netty-common</artifactId>
267                 <version>${netty.version}</version>
268             </dependency>
269             <dependency>
270                 <groupId>io.netty</groupId>
271                 <artifactId>netty-transport</artifactId>
272                 <version>${netty.version}</version>
273             </dependency>
274
275             <!-- YANG tools -->
276             <dependency>
277                 <groupId>org.opendaylight.yangtools</groupId>
278                 <artifactId>binding-generator-impl</artifactId>
279                 <version>${yangtools.version}</version>
280             </dependency>
281             <dependency>
282                 <groupId>org.opendaylight.yangtools</groupId>
283                 <artifactId>concepts</artifactId>
284                 <version>${yangtools.version}</version>
285             </dependency>
286             <dependency>
287                 <groupId>org.opendaylight.yangtools</groupId>
288                 <artifactId>yang-binding</artifactId>
289                 <version>${yangtools.version}</version>
290             </dependency>
291             <dependency>
292                 <groupId>org.opendaylight.yangtools</groupId>
293                 <artifactId>yang-common</artifactId>
294                 <version>${yangtools.version}</version>
295             </dependency>
296             <dependency>
297                 <groupId>org.opendaylight.yangtools</groupId>
298                 <artifactId>yang-data-impl</artifactId>
299                 <version>${yangtools.version}</version>
300             </dependency>
301             <dependency>
302                 <groupId>org.opendaylight.yangtools</groupId>
303                 <artifactId>yang-model-api</artifactId>
304                 <version>${yangtools.version}</version>
305             </dependency>
306             <dependency>
307                 <groupId>org.opendaylight.yangtools</groupId>
308                 <artifactId>yang-parser-api</artifactId>
309                 <version>${yangtools.version}</version>
310             </dependency>
311             <dependency>
312                 <groupId>org.opendaylight.yangtools</groupId>
313                 <artifactId>yang-parser-impl</artifactId>
314                 <version>${yangtools.version}</version>
315             </dependency>
316             <dependency>
317                 <groupId>org.opendaylight.yangtools</groupId>
318                 <artifactId>object-cache-api</artifactId>
319                 <version>${yangtools.version}</version>
320             </dependency>
321             <dependency>
322                 <groupId>org.opendaylight.yangtools</groupId>
323                 <artifactId>object-cache-guava</artifactId>
324                 <version>${yangtools.version}</version>
325             </dependency>
326
327             <!-- Controller infrastructure -->
328             <dependency>
329                 <groupId>org.opendaylight.controller</groupId>
330                 <artifactId>protocol-framework</artifactId>
331                 <version>${controller.framework.version}</version>
332             </dependency>
333             <dependency>
334                 <groupId>org.opendaylight.controller</groupId>
335                 <artifactId>protocol-framework</artifactId>
336                 <version>${controller.framework.version}</version>
337                 <type>test-jar</type>
338                 <scope>test</scope>
339             </dependency>
340             <dependency>
341                 <groupId>org.opendaylight.controller</groupId>
342                 <artifactId>config-api</artifactId>
343                 <version>${controller.config.version}</version>
344             </dependency>
345             <dependency>
346                 <groupId>org.opendaylight.controller</groupId>
347                 <artifactId>netty-config-api</artifactId>
348                 <version>${controller.config.version}</version>
349             </dependency>
350             <dependency>
351                 <groupId>org.opendaylight.controller</groupId>
352                 <artifactId>netty-timer-config</artifactId>
353                 <version>${controller.config.version}</version>
354             </dependency>
355             <dependency>
356                 <groupId>org.opendaylight.controller</groupId>
357                 <artifactId>sal-binding-api</artifactId>
358                 <version>${controller.mdsal.version}</version>
359             </dependency>
360             <dependency>
361                 <groupId>org.opendaylight.controller</groupId>
362                 <artifactId>sal-binding-config</artifactId>
363                 <version>${controller.mdsal.version}</version>
364             </dependency>
365             <dependency>
366                 <groupId>org.opendaylight.controller</groupId>
367                 <artifactId>sal-binding-broker-impl</artifactId>
368                 <version>${controller.mdsal.version}</version>
369             </dependency>
370             <dependency>
371                 <groupId>org.opendaylight.controller</groupId>
372                 <artifactId>sal-binding-util</artifactId>
373                 <version>${controller.mdsal.version}</version>
374             </dependency>
375             <dependency>
376                 <groupId>org.opendaylight.controller</groupId>
377                 <artifactId>sal-broker-impl</artifactId>
378                 <version>${controller.mdsal.version}</version>
379             </dependency>
380             <dependency>
381                 <groupId>org.opendaylight.controller</groupId>
382                 <artifactId>sal-common-api</artifactId>
383                 <version>${controller.mdsal.version}</version>
384             </dependency>
385
386             <!-- Models -->
387             <dependency>
388                 <groupId>org.opendaylight.yangtools.model</groupId>
389                 <artifactId>ietf-inet-types</artifactId>
390                 <version>${ietf.types.version}</version>
391             </dependency>
392             <dependency>
393                 <groupId>org.opendaylight.yangtools.model</groupId>
394                 <artifactId>ietf-ted</artifactId>
395                 <version>${ietf.topology.version}</version>
396             </dependency>
397             <dependency>
398                 <groupId>org.opendaylight.yangtools.model</groupId>
399                 <artifactId>ietf-topology</artifactId>
400                 <version>${ietf.topology.version}</version>
401             </dependency>
402             <dependency>
403                 <groupId>org.opendaylight.yangtools.model</groupId>
404                 <artifactId>ietf-topology-isis</artifactId>
405                 <version>${ietf.topology.version}</version>
406             </dependency>
407             <dependency>
408                 <groupId>org.opendaylight.yangtools.model</groupId>
409                 <artifactId>ietf-topology-l3-unicast-igp</artifactId>
410                 <version>${ietf.topology.version}</version>
411             </dependency>
412             <dependency>
413                 <groupId>org.opendaylight.yangtools.model</groupId>
414                 <artifactId>ietf-topology-ospf</artifactId>
415                 <version>${ietf.topology.version}</version>
416             </dependency>
417             <dependency>
418                 <groupId>org.opendaylight.yangtools.model</groupId>
419                 <artifactId>yang-ext</artifactId>
420                 <version>${yang-ext.version}</version>
421             </dependency>
422         </dependencies>
423     </dependencyManagement>
424
425     <dependencies>
426         <dependency>
427             <groupId>ch.qos.logback</groupId>
428             <artifactId>logback-classic</artifactId>
429             <scope>test</scope>
430         </dependency>
431
432         <!-- Sonar -->
433         <dependency>
434             <groupId>org.codehaus.sonar-plugins.java</groupId>
435             <artifactId>sonar-jacoco-listeners</artifactId>
436             <version>${sonar-jacoco-listeners.version}</version>
437             <scope>test</scope>
438         </dependency>
439     </dependencies>
440
441     <reporting>
442         <plugins>
443             <plugin>
444                 <groupId>org.apache.maven.plugins</groupId>
445                 <artifactId>maven-project-info-reports-plugin</artifactId>
446                 <version>${maven.info.reports.version}</version>
447                 <reportSets>
448                     <reportSet>
449                         <reports>
450                             <report>dependency-info</report>
451                             <report>license</report>
452                         </reports>
453                     </reportSet>
454                 </reportSets>
455             </plugin>
456             <plugin>
457                 <groupId>org.apache.maven.plugins</groupId>
458                 <artifactId>maven-javadoc-plugin</artifactId>
459                 <version>${maven.javadoc.version}</version>
460                 <reportSets>
461                     <reportSet>
462                         <id>non-aggregate</id>
463                         <reports>
464                             <report>javadoc</report>
465                         </reports>
466                     </reportSet>
467                 </reportSets>
468             </plugin>
469             <!--plugin>
470                 <groupId>org.codehaus.mojo</groupId>
471                 <artifactId>findbugs-maven-plugin</artifactId>
472                 <version>2.4.0</version>
473                 <configuration>
474                     <effort>Max</effort>
475                     <threshold>Low</threshold>
476                     <goal>site</goal>
477                 </configuration>
478             </plugin-->
479         </plugins>
480     </reporting>
481
482     <distributionManagement>
483         <!-- OpenDayLight Released artifact -->
484         <repository>
485             <id>opendaylight-release</id>
486             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
487         </repository>
488         <!-- OpenDayLight Snapshot artifact -->
489         <snapshotRepository>
490             <id>opendaylight-snapshot</id>
491             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
492         </snapshotRepository>
493         <!-- Site deployment -->
494         <site>
495             <id>website</id>
496             <url>${sitedeploy}</url>
497         </site>
498     </distributionManagement>
499
500     <build>
501         <plugins>
502             <plugin>
503                 <groupId>org.apache.maven.plugins</groupId>
504                 <artifactId>maven-compiler-plugin</artifactId>
505                 <version>${maven.compiler.version}</version>
506                 <configuration>
507                     <source>${java.version.source}</source>
508                     <target>${java.version.target}</target>
509                     <testSource>${java.version.source}</testSource>
510                     <testTarget>${java.version.target}</testTarget>
511                     <showDeprecation>true</showDeprecation>
512                     <showWarnings>true</showWarnings>
513                     <optimize>true</optimize>
514                 </configuration>
515             </plugin>
516             <plugin>
517                 <groupId>org.apache.maven.plugins</groupId>
518                 <artifactId>maven-surefire-plugin</artifactId>
519                 <version>${surefire.version}</version>
520                 <configuration>
521                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
522                     <!--parallel>classes</parallel>
523                     <forkCount>1C</forkCount>
524                     <perCoreThreadCount>true</perCoreThreadCount-->
525                     <runOrder>alphabetical</runOrder>
526                     <threadCount>1</threadCount>
527                     <reuseForks>false</reuseForks>
528                     <!-- Specific to generate mapping between tests and covered code -->
529                     <!--properties>
530                         <property>
531                             <name>listener</name>
532                             <value>org.sonar.java.jacoco.JUnitListener</value>
533                         </property>
534                     </properties-->
535                 </configuration>
536             </plugin>
537
538             <plugin>
539                 <groupId>org.apache.maven.plugins</groupId>
540                 <artifactId>maven-dependency-plugin</artifactId>
541                 <version>${maven.dependency.version}</version>
542                 <configuration>
543                     <failOnWarning>true</failOnWarning>
544                     <ignoreNonCompile>true</ignoreNonCompile>
545                 </configuration>
546             </plugin>
547             <plugin>
548                 <!-- Let eclipse know about the generated sources -->
549                 <groupId>org.codehaus.mojo</groupId>
550                 <artifactId>build-helper-maven-plugin</artifactId>
551                 <executions>
552                     <execution>
553                         <phase>generate-sources</phase>
554                         <goals>
555                             <goal>add-source</goal>
556                         </goals>
557                         <configuration>
558                             <sources>
559                                 <source>target/generated-sources/sal</source>
560                                 <source>target/generated-sources/config</source>
561                             </sources>
562                         </configuration>
563                     </execution>
564                 </executions>
565             </plugin>
566             <plugin>
567                 <groupId>org.apache.maven.plugins</groupId>
568                 <artifactId>maven-checkstyle-plugin</artifactId>
569                 <version>2.12</version>
570                 <configuration>
571                     <failOnViolation>true</failOnViolation>
572                     <configLocation>checkstyle-logging.xml</configLocation>
573                     <consoleOutput>true</consoleOutput>
574                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
575                     <sourceDirectory>${project.basedir}</sourceDirectory>
576                     <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
577                     <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/.m2repo\/</excludes>
578                 </configuration>
579                 <dependencies>
580                     <dependency>
581                         <groupId>org.opendaylight.yangtools</groupId>
582                         <artifactId>checkstyle-logging</artifactId>
583                         <version>${yangtools.version}</version>
584                     </dependency>
585                 </dependencies>
586                 <executions>
587                     <execution>
588                         <goals>
589                             <goal>check</goal>
590                         </goals>
591                     </execution>
592                 </executions>
593             </plugin>
594             <plugin>
595                 <groupId>org.jacoco</groupId>
596                 <artifactId>jacoco-maven-plugin</artifactId>
597                 <executions>
598                     <execution>
599                         <id>prepare-ut-agent</id>
600                         <phase>process-test-classes</phase>
601                         <goals>
602                             <goal>prepare-agent</goal>
603                         </goals>
604                         <configuration>
605                             <destFile>${sonar.jacoco.reportPath}</destFile>
606                         </configuration>
607                     </execution>
608                     <execution>
609                         <id>prepare-it-agent</id>
610                         <phase>pre-integration-test</phase>
611                         <goals>
612                             <goal>prepare-agent</goal>
613                         </goals>
614                         <configuration>
615                             <destFile>${sonar.jacoco.itReportPath}</destFile>
616                         </configuration>
617                     </execution>
618                 </executions>
619             </plugin>
620         </plugins>
621
622         <pluginManagement>
623             <plugins>
624                 <plugin>
625                     <groupId>org.apache.felix</groupId>
626                     <artifactId>maven-bundle-plugin</artifactId>
627                     <version>${maven.bundle.version}</version>
628                 </plugin>
629                 <plugin>
630                     <groupId>org.apache.maven.plugins</groupId>
631                     <artifactId>maven-jar-plugin</artifactId>
632                     <version>${maven.jar.version}</version>
633                 </plugin>
634                 <plugin>
635                     <groupId>org.apache.maven.plugins</groupId>
636                     <artifactId>maven-release-plugin</artifactId>
637                     <version>${maven.release.version}</version>
638                 </plugin>
639                 <plugin>
640                     <groupId>org.codehaus.mojo</groupId>
641                     <artifactId>build-helper-maven-plugin</artifactId>
642                     <version>1.8</version>
643                 </plugin>
644
645                 <!--This plugin's configuration is used to store Eclipse m2e settings
646                     only. It has no influence on the Maven build itself. -->
647                 <plugin>
648                     <groupId>org.eclipse.m2e</groupId>
649                     <artifactId>lifecycle-mapping</artifactId>
650                     <version>1.0.0</version>
651                     <configuration>
652                         <lifecycleMappingMetadata>
653                             <pluginExecutions>
654                                 <pluginExecution>
655                                     <pluginExecutionFilter>
656                                         <groupId>pl.project13.maven</groupId>
657                                         <artifactId>git-commit-id-plugin</artifactId>
658                                         <versionRange>[2.1.4,)</versionRange>
659                                         <goals>
660                                             <goal>revision</goal>
661                                         </goals>
662                                     </pluginExecutionFilter>
663                                     <action>
664                                         <ignore />
665                                     </action>
666                                 </pluginExecution>
667                                 <pluginExecution>
668                                     <pluginExecutionFilter>
669                                         <groupId>org.opendaylight.yangtools</groupId>
670                                         <artifactId>yang-maven-plugin</artifactId>
671                                         <versionRange>[0.5,)</versionRange>
672                                         <goals>
673                                             <goal>generate-sources</goal>
674                                         </goals>
675                                     </pluginExecutionFilter>
676                                     <action>
677                                         <ignore />
678                                     </action>
679                                 </pluginExecution>
680                                 <pluginExecution>
681                                    <pluginExecutionFilter>
682                                        <groupId>org.jacoco</groupId>
683                                        <artifactId>jacoco-maven-plugin</artifactId>
684                                        <versionRange>[0.6,)</versionRange>
685                                        <goals>
686                                            <goal>prepare-agent</goal>
687                                        </goals>
688                                     </pluginExecutionFilter>
689                                     <action>
690                                         <ignore/>
691                                     </action>
692                                 </pluginExecution>
693                             </pluginExecutions>
694                         </lifecycleMappingMetadata>
695                     </configuration>
696                 </plugin>
697
698                 <!-- Our YANG->DTO generation plugin -->
699                 <plugin>
700                     <groupId>org.opendaylight.yangtools</groupId>
701                     <artifactId>yang-maven-plugin</artifactId>
702                     <version>${yangtools.version}</version>
703                     <executions>
704                         <execution>
705                             <goals>
706                                 <goal>generate-sources</goal>
707                             </goals>
708                             <configuration>
709                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
710                                 <codeGenerators>
711                                     <generator>
712                                         <codeGeneratorClass>
713                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
714                                         </codeGeneratorClass>
715                                         <outputBaseDir>
716                                             target/generated-sources/sal
717                                         </outputBaseDir>
718                                     </generator>
719                                     <generator>
720                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
721                                         <outputBaseDir>target/site</outputBaseDir>
722                                     </generator>
723                                     <generator>
724                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
725                                         <outputBaseDir>target/site</outputBaseDir>
726                                     </generator>
727                                     <generator>
728                                         <codeGeneratorClass>
729                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
730                                         </codeGeneratorClass>
731                                         <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
732                                         <additionalConfiguration>
733                                             <namespaceToPackage1>
734                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
735                                             </namespaceToPackage1>
736                                         </additionalConfiguration>
737                                     </generator>
738                                 </codeGenerators>
739                                 <inspectDependencies>true</inspectDependencies>
740                             </configuration>
741                         </execution>
742                     </executions>
743                     <dependencies>
744                         <dependency>
745                             <groupId>org.opendaylight.yangtools</groupId>
746                             <artifactId>maven-sal-api-gen-plugin</artifactId>
747                             <version>${yangtools.version}</version>
748                             <type>jar</type>
749                         </dependency>
750                         <dependency>
751                             <groupId>org.opendaylight.controller</groupId>
752                             <artifactId>yang-jmx-generator-plugin</artifactId>
753                             <version>${controller.config.version}</version>
754                         </dependency>
755                     </dependencies>
756                 </plugin>
757
758                 <!-- Maven site plugin -->
759                 <plugin>
760                     <artifactId>maven-site-plugin</artifactId>
761                     <version>${maven.site.version}</version>
762                 </plugin>
763                 <plugin>
764                     <groupId>org.apache.maven.plugins</groupId>
765                     <artifactId>maven-javadoc-plugin</artifactId>
766                     <version>${maven.javadoc.version}</version>
767                 </plugin>
768                 <plugin>
769                     <groupId>org.apache.maven.plugins</groupId>
770                     <artifactId>maven-source-plugin</artifactId>
771                     <version>2.2.1</version>
772                 </plugin>
773             </plugins>
774         </pluginManagement>
775     </build>
776
777     <repositories>
778         <repository>
779             <id>opendaylight-mirror</id>
780             <name>opendaylight-mirror</name>
781             <url>http://nexus.opendaylight.org/content/groups/public/</url>
782             <snapshots>
783                 <enabled>false</enabled>
784             </snapshots>
785             <releases>
786                 <enabled>true</enabled>
787                 <updatePolicy>never</updatePolicy>
788             </releases>
789         </repository>
790         <repository>
791             <id>opendaylight-snapshot</id>
792             <name>opendaylight-snapshot</name>
793             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
794             <snapshots>
795                 <enabled>true</enabled>
796             </snapshots>
797             <releases>
798                 <enabled>false</enabled>
799             </releases>
800         </repository>
801     </repositories>
802
803     <pluginRepositories>
804         <pluginRepository>
805             <id>opendaylight-mirror</id>
806             <name>opendaylight-mirror</name>
807             <url>http://nexus.opendaylight.org/content/groups/public/</url>
808             <snapshots>
809                 <enabled>false</enabled>
810             </snapshots>
811             <releases>
812                 <enabled>true</enabled>
813                 <updatePolicy>never</updatePolicy>
814             </releases>
815         </pluginRepository>
816         <pluginRepository>
817             <id>opendaylight-snapshot</id>
818             <name>opendaylight-snapshot</name>
819             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
820             <snapshots>
821                 <enabled>true</enabled>
822             </snapshots>
823             <releases>
824                 <enabled>false</enabled>
825             </releases>
826         </pluginRepository>
827     </pluginRepositories>
828
829     <profiles>
830         <profile>
831             <id>repoBuild</id>
832             <activation>
833                 <property>
834                     <name>repoBuild</name>
835                 </property>
836             </activation>
837             <build>
838                 <plugins>
839                     <plugin>
840                         <groupId>org.apache.maven.plugins</groupId>
841                         <artifactId>maven-javadoc-plugin</artifactId>
842                         <executions>
843                             <execution>
844                                 <id>attach-javadocs</id>
845                                 <goals>
846                                     <goal>jar</goal>
847                                 </goals>
848                             </execution>
849                         </executions>
850                     </plugin>
851                     <plugin>
852                         <groupId>org.apache.maven.plugins</groupId>
853                         <artifactId>maven-source-plugin</artifactId>
854                         <executions>
855                             <execution>
856                                 <id>attach-sources</id>
857                                 <goals>
858                                     <goal>jar</goal>
859                                 </goals>
860                             </execution>
861                         </executions>
862                     </plugin>
863                 </plugins>
864             </build>
865         </profile>
866     </profiles>
867 </project>