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