Include IT coverage in JaCoCo and Sonar reports
[honeycomb.git] / common / honeycomb-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright (c) 2016 Cisco and/or its affiliates.
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at:
8   ~
9   ~     http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19
20     <modelVersion>4.0.0</modelVersion>
21     <groupId>io.fd.honeycomb.common</groupId>
22     <artifactId>honeycomb-parent</artifactId>
23     <name>${project.artifactId}</name>
24     <version>1.17.10-SNAPSHOT</version>
25     <packaging>pom</packaging>
26     <prerequisites>
27         <maven>3.1.1</maven>
28     </prerequisites>
29
30     <properties>
31         <nexusproxy>http://nexus.fd.io/content</nexusproxy>
32         <odl.nexusproxy>https://nexus.opendaylight.org/content</odl.nexusproxy>
33
34         <!-- Sonar configuration -->
35         <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
36         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**</sonar.exclusions>
37         <!-- https://github.com/SonarSource/sonar-scanning-examples/blob/master/sonarqube-scanner-maven/pom.xml#L24 -->
38         <!-- The destination file for the code coverage report has to be set to the same value
39              in the parent pom and in each module pom. Then JaCoCo will add up information in
40              the same report, so that, it will give the cross-module code coverage. -->
41         <!-- We store jacoco-it.exec in honeycomb-parent because it is built first,
42              so mvn clean won't remove aggregated report. -->
43         <sonar.jacoco.itReportPath>${maven.multiModuleProjectDirectory}/common/honeycomb-parent/target/jacoco-it.exec</sonar.jacoco.itReportPath>
44
45         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
47
48         <!-- ODL dependencies -->
49         <yangtools.version>1.1.1-Carbon</yangtools.version>
50         <mdsal.version>2.2.1-Carbon</mdsal.version>
51         <mdsal.controller.version>1.5.1-Carbon</mdsal.controller.version>
52         <mdsalmodel.version>0.10.1-Carbon</mdsalmodel.version>
53         <netconf.version>1.2.1-Carbon</netconf.version>
54         <restconf.version>1.5.1-Carbon</restconf.version>
55         <salGenerator.version>0.10.1-Carbon</salGenerator.version>
56         <bgpcep.version>0.7.1-Carbon</bgpcep.version>
57         <salGeneratorPath>target/generated-sources/mdsal-binding</salGeneratorPath>
58
59         <!-- common dependencies -->
60         <junit.version>4.11</junit.version>
61         <mockito.version>2.2.9</mockito.version>
62         <hamcrest.version>1.3</hamcrest.version>
63         <guava.version>18.0</guava.version>
64         <jsr305.version>3.0.0</jsr305.version>
65         <slf4j.version>1.7.21</slf4j.version>
66
67         <!-- plugins -->
68         <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
69         <checkstyle.version>7.1.2</checkstyle.version>
70         <maven.javadoc.version>2.10.3</maven.javadoc.version>
71         <jacoco.version>0.7.9</jacoco.version>
72         <enforcer.version>1.4</enforcer.version>
73         <maven.compile.plugin.version>3.5.1</maven.compile.plugin.version>
74         <maven.bundle.version>3.0.1</maven.bundle.version>
75
76         <!-- checkstyle -->
77         <checkstyle.header.file>APACHE_HEADER.txt</checkstyle.header.file>
78
79         <!-- site -->
80         <!-- skip location check = makes site exec faster -->
81         <dependency.locations.enabled>false</dependency.locations.enabled>
82         <project.info.report.version>2.9</project.info.report.version>
83         <maven.resources.version>3.0.1</maven.resources.version>
84         <maven.site.version>3.4</maven.site.version>
85         <!-- adoc -->
86         <asciidoctor.maven.plugin.version>1.5.3</asciidoctor.maven.plugin.version>
87         <asciidoctorj.diagram.version>1.3.1</asciidoctorj.diagram.version>
88
89         <!-- groovy -->
90         <maven.groovy.version>2.0</maven.groovy.version>
91         <groovy.version>2.4.7</groovy.version>
92         <groovy.eclipse.compiler.version>2.9.2-01</groovy.eclipse.compiler.version>
93         <groovy.eclipse.batch.version>2.4.3-01</groovy.eclipse.batch.version>
94
95         <docs.base.url>https://nexus.fd.io/content/sites/site</docs.base.url>
96         <docs.hc.folder>io/fd/honeycomb</docs.hc.folder>
97     </properties>
98
99     <organization>
100         <name>fd.io</name>
101         <url>https://fd.io</url>
102     </organization>
103
104     <licenses>
105         <license>
106             <name>Apache License, Version 2.0</name>
107             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
108         </license>
109     </licenses>
110
111     <issueManagement>
112         <system>JIRA</system>
113         <url>https://jira.fd.io/</url>
114     </issueManagement>
115
116     <ciManagement>
117         <system>Jenkins</system>
118         <url>https://jenkins.fd.io/</url>
119     </ciManagement>
120
121     <mailingLists>
122         <mailingList>
123             <name>HC dev</name>
124             <post>honeycomb-dev@fd.io</post>
125             <subscribe>https://lists.fd.io/mailman/listinfo/honeycomb-dev</subscribe>
126             <archive>https://lists.fd.io/pipermail/honeycomb-dev/</archive>
127         </mailingList>
128     </mailingLists>
129
130     <dependencyManagement>
131         <dependencies>
132             <!-- ODL -->
133             <dependency>
134                 <groupId>org.opendaylight.yangtools</groupId>
135                 <artifactId>yangtools-artifacts</artifactId>
136                 <version>${yangtools.version}</version>
137                 <type>pom</type>
138                 <scope>import</scope>
139             </dependency>
140             <dependency>
141                 <groupId>org.opendaylight.controller</groupId>
142                 <artifactId>mdsal-artifacts</artifactId>
143                 <version>${mdsal.controller.version}</version>
144                 <type>pom</type>
145                 <scope>import</scope>
146             </dependency>
147             <dependency>
148                 <groupId>org.opendaylight.mdsal</groupId>
149                 <artifactId>mdsal-artifacts</artifactId>
150                 <version>${mdsal.version}</version>
151                 <type>pom</type>
152                 <scope>import</scope>
153             </dependency>
154             <dependency>
155                 <groupId>org.opendaylight.netconf</groupId>
156                 <artifactId>netconf-artifacts</artifactId>
157                 <version>${netconf.version}</version>
158                 <type>pom</type>
159                 <scope>import</scope>
160             </dependency>
161             <dependency>
162                 <groupId>org.opendaylight.netconf</groupId>
163                 <artifactId>restconf-artifacts</artifactId>
164                 <version>${restconf.version}</version>
165                 <type>pom</type>
166                 <scope>import</scope>
167             </dependency>
168             <dependency>
169                 <groupId>org.opendaylight.mdsal.model</groupId>
170                 <artifactId>mdsal-model-artifacts</artifactId>
171                 <version>${mdsalmodel.version}</version>
172                 <type>pom</type>
173                 <scope>import</scope>
174             </dependency>
175             <dependency>
176                 <groupId>org.opendaylight.bgpcep</groupId>
177                 <artifactId>bgpcep-artifacts</artifactId>
178                 <version>${bgpcep.version}</version>
179                 <type>pom</type>
180                 <scope>import</scope>
181             </dependency>
182
183             <!-- Utilities -->
184             <dependency>
185                 <groupId>com.google.guava</groupId>
186                 <artifactId>guava</artifactId>
187                 <version>${guava.version}</version>
188             </dependency>
189             <dependency>
190                 <groupId>com.google.code.findbugs</groupId>
191                 <artifactId>jsr305</artifactId>
192                 <version>${jsr305.version}</version>
193             </dependency>
194             <dependency>
195                 <groupId>org.slf4j</groupId>
196                 <artifactId>slf4j-api</artifactId>
197                 <version>${slf4j.version}</version>
198             </dependency>
199
200             <!-- Testing Dependencies -->
201             <dependency>
202                 <groupId>junit</groupId>
203                 <artifactId>junit</artifactId>
204                 <version>${junit.version}</version>
205                 <scope>test</scope>
206             </dependency>
207             <!-- Dont use mockito-all, it has problematic dependency on harmcrest
208                 More details here - https://github.com/mockito/mockito/issues/324-->
209             <dependency>
210                 <groupId>org.mockito</groupId>
211                 <artifactId>mockito-core</artifactId>
212                 <version>${mockito.version}</version>
213                 <scope>test</scope>
214             </dependency>
215             <dependency>
216                 <groupId>org.hamcrest</groupId>
217                 <artifactId>hamcrest-all</artifactId>
218                 <version>${hamcrest.version}</version>
219                 <scope>test</scope>
220             </dependency>
221         </dependencies>
222     </dependencyManagement>
223
224     <build>
225         <pluginManagement>
226             <plugins>
227                 <!-- checkstyle -->
228                 <plugin>
229                     <artifactId>maven-checkstyle-plugin</artifactId>
230                     <version>${checkstyle.plugin.version}</version>
231                     <configuration>
232                         <!--TODO HONEYCOMB-155 enable fail on violation after issues are resolved + set in as errors in checkstyle xml-->
233                         <failOnViolation>false</failOnViolation>
234                         <failsOnError>true</failsOnError>
235                         <consoleOutput>true</consoleOutput>
236                         <includeTestResources>true</includeTestResources>
237                         <includeTestSourceDirectory>true</includeTestSourceDirectory>
238                         <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
239                         <excludes>**\/target\/,
240                             **\/bin\/,
241                             **\/target-ide\/,
242                             **\/src/main/yang-gen-config\/,
243                             org/opendaylight/yang/gen/**,
244                             **\/src/main/yang-gen-sal\/,
245                             **\/src/main/xtend-gen\/,
246                             **\/src/main/yang\/,
247                             **\/archetype-resources\/,
248                             **\/.idea\/</excludes>
249                     </configuration>
250                     <executions>
251                         <!-- Override license check configuration to fit Honeycomb coding style-->
252                         <execution>
253                             <id>check-license</id>
254                             <goals>
255                                 <goal>check</goal>
256                             </goals>
257                             <phase>process-sources</phase>
258                             <configuration>
259                                 <configLocation>honeycomb-checkstyle-license.xml</configLocation>
260                                 <outputFile>${project.build.directory}/checkstyle-license-result.xml</outputFile>
261                             </configuration>
262                         </execution>
263                         <!-- Add logging checks from yangtools -->
264                         <execution>
265                             <id>check-logging</id>
266                             <goals>
267                                 <goal>check</goal>
268                             </goals>
269                             <phase>process-sources</phase>
270                             <configuration>
271                                 <configLocation>honeycomb-checkstyle-logging.xml</configLocation>
272                                 <sourceDirectory>${project.basedir}</sourceDirectory>
273                                 <outputFile>${project.build.directory}/checkstyle-logging-result.xml</outputFile>
274                             </configuration>
275                         </execution>
276                         <!-- Check HC's coding style -->
277                         <execution>
278                             <goals>
279                                 <goal>check</goal>
280                             </goals>
281                             <phase>process-sources</phase>
282                             <configuration>
283                                 <configLocation>honeycomb-checkstyle.xml</configLocation>
284                             </configuration>
285                         </execution>
286                     </executions>
287                     <dependencies>
288                         <dependency>
289                             <groupId>io.fd.honeycomb.common</groupId>
290                             <artifactId>honeycomb-checkstyle</artifactId>
291                             <!-- Hardcoded version to prevent archetype generated projects to use their own project version -->
292                             <version>1.17.10-SNAPSHOT</version>
293                         </dependency>
294                         <!-- Necessary for logging checks -->
295                         <dependency>
296                             <groupId>org.opendaylight.yangtools</groupId>
297                             <artifactId>checkstyle-logging</artifactId>
298                             <version>${yangtools.version}</version>
299                         </dependency>
300                         <!-- Needed by ODL's checkstyle-logging -->
301                         <dependency>
302                             <groupId>com.puppycrawl.tools</groupId>
303                             <artifactId>checkstyle</artifactId>
304                             <version>${checkstyle.version}</version>
305                         </dependency>
306                     </dependencies>
307                 </plugin>
308                 <!-- Deactivate strict java8 checks -->
309                 <!-- TODO HONEYCOMB-156 fix all the javadoc offenders of doclint -->
310                 <plugin>
311                     <groupId>org.apache.maven.plugins</groupId>
312                     <artifactId>maven-javadoc-plugin</artifactId>
313                     <version>${maven.javadoc.version}</version>
314                     <configuration>
315                         <additionalparam>-Xdoclint:none</additionalparam>
316                     </configuration>
317                     <executions>
318                         <execution>
319                             <id>attach-javadocs</id>
320                             <goals>
321                                 <goal>jar</goal>
322                             </goals>
323                         </execution>
324                     </executions>
325                 </plugin>
326                 <!-- jacoco test coverage for sonar -->
327                 <plugin>
328                     <groupId>org.jacoco</groupId>
329                     <artifactId>jacoco-maven-plugin</artifactId>
330                     <version>${jacoco.version}</version>
331                     <executions>
332                         <execution>
333                             <id>agent-for-ut</id>
334                             <goals>
335                                 <goal>prepare-agent</goal>
336                             </goals>
337                         </execution>
338                         <execution>
339                             <id>agent-for-it</id>
340                             <goals>
341                                 <goal>prepare-agent-integration</goal>
342                             </goals>
343                         </execution>
344                         <execution>
345                             <id>jacoco-site</id>
346                             <goals>
347                                 <goal>report</goal>
348                             </goals>
349                         </execution>
350                     </executions>
351                     <configuration>
352                         <!-- Appends data to existing JaCoCo execution file. Required for IT coverage.
353                              Will not affect UT which use separate files. -->
354                         <append>true</append>
355                         <excludes>
356                             <exclude>**/gen/**</exclude>
357                             <exclude>**/generated-sources/**</exclude>
358                             <exclude>**/yang-gen/**</exclude>
359                         </excludes>
360                     </configuration>
361                 </plugin>
362                 <!-- Enforce maven version -->
363                 <plugin>
364                     <groupId>org.apache.maven.plugins</groupId>
365                     <artifactId>maven-enforcer-plugin</artifactId>
366                     <version>${enforcer.version}</version>
367                     <executions>
368                         <execution>
369                             <id>enforce-maven</id>
370                             <configuration>
371                                 <rules>
372                                     <requireMavenVersion>
373                                         <version>3.1.1</version>
374                                     </requireMavenVersion>
375                                 </rules>
376                             </configuration>
377                             <goals>
378                                 <goal>enforce</goal>
379                             </goals>
380                         </execution>
381                     </executions>
382                 </plugin>
383                 <!-- Compile with google static analysis tool: error_prone -->
384                 <plugin>
385                     <groupId>org.apache.maven.plugins</groupId>
386                     <artifactId>maven-compiler-plugin</artifactId>
387                     <version>${maven.compile.plugin.version}</version>
388                     <configuration>
389                         <!-- Use google's error-prone static analysis-->
390                         <compilerId>javac-with-errorprone</compilerId>
391                         <forceJavacCompilerUse>true</forceJavacCompilerUse>
392                         <showWarnings>true</showWarnings>
393                         <source>1.8</source>
394                         <target>1.8</target>
395                     </configuration>
396                     <dependencies>
397                         <dependency>
398                             <groupId>org.codehaus.plexus</groupId>
399                             <artifactId>plexus-compiler-javac-errorprone</artifactId>
400                             <version>2.5</version>
401                         </dependency>
402                         <!-- override plexus-compiler-javac-errorprone's dependency on
403                              Error Prone with the latest version -->
404                         <dependency>
405                             <groupId>com.google.errorprone</groupId>
406                             <artifactId>error_prone_core</artifactId>
407                             <version>2.0.9</version>
408                         </dependency>
409                     </dependencies>
410                 </plugin>
411                 <plugin>
412                     <groupId>org.apache.felix</groupId>
413                     <artifactId>maven-bundle-plugin</artifactId>
414                     <version>${maven.bundle.version}</version>
415                     <extensions>true</extensions>
416                 </plugin>
417                 <!-- Source jar -->
418                 <plugin>
419                     <groupId>org.apache.maven.plugins</groupId>
420                     <artifactId>maven-source-plugin</artifactId>
421                     <executions>
422                         <execution>
423                             <id>attach-sources</id>
424                             <goals>
425                                 <goal>jar</goal>
426                             </goals>
427                         </execution>
428                     </executions>
429                 </plugin>
430                 <!-- Site (from https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoc-maven-site-example/pom.xml) -->
431                 <!-- + https://github.com/asciidoctor/asciidoctor-maven-plugin -->
432                 <plugin>
433                     <groupId>org.apache.maven.plugins</groupId>
434                     <artifactId>maven-site-plugin</artifactId>
435                     <version>${maven.site.version}</version>
436                     <configuration>
437                         <generateReports>true</generateReports>
438                         <generateSitemap>true</generateSitemap>
439                         <relativizeDecorationLinks>false</relativizeDecorationLinks>
440                         <locales>en</locales>
441                         <inputEncoding>UTF-8</inputEncoding>
442                         <outputEncoding>UTF-8</outputEncoding>
443                         <siteDirectory>${project.basedir}</siteDirectory>
444                         <relativizeDecorationLinks>false</relativizeDecorationLinks>
445                         <asciidoc>
446                             <requires>
447                                 <require>asciidoctor-diagram</require>
448                             </requires>
449                             <!-- optional site-wide AsciiDoc attributes -->
450                             <attributes>
451                                 <source-highlighter>coderay</source-highlighter>
452                                 <coderay-css>style</coderay-css>
453                                 <icons>font</icons>
454                                 <sectanchors>true</sectanchors>
455                                 <idprefix/>
456                                 <idseparator>-</idseparator>
457                             </attributes>
458                         </asciidoc>
459                         <!-- Exclude partial docs that are included elsewhere -->
460                         <moduleExcludes>
461                             <asciidoc>**/_*.adoc</asciidoc>
462                         </moduleExcludes>
463                     </configuration>
464                     <dependencies>
465                         <dependency>
466                             <groupId>org.asciidoctor</groupId>
467                             <artifactId>asciidoctor-maven-plugin</artifactId>
468                             <version>${asciidoctor.maven.plugin.version}</version>
469                         </dependency>
470                         <dependency>
471                             <groupId>org.asciidoctor</groupId>
472                             <artifactId>asciidoctorj-diagram</artifactId>
473                             <version>${asciidoctorj.diagram.version}</version>
474                         </dependency>
475                     </dependencies>
476                 </plugin>
477                 <plugin>
478                     <groupId>org.codehaus.gmaven</groupId>
479                     <artifactId>groovy-maven-plugin</artifactId>
480                     <version>${maven.groovy.version}</version>
481                     <executions>
482                         <!-- Generate Readme.adoc if not present -->
483                         <execution>
484                             <id>generate-adoc</id>
485                             <phase>generate-resources</phase>
486                             <goals>
487                                 <goal>execute</goal>
488                             </goals>
489                             <configuration>
490                                 <!-- Generate module adoc documentation -->
491                                 <source>
492                                     io.fd.honeycomb.common.scripts.ReadmeGenerator.checkReadme(project, properties, log)
493                                 </source>
494                             </configuration>
495                         </execution>
496                         <!-- Fix generated html -->
497                         <execution>
498                             <id>fix-generated-site</id>
499                             <phase>site</phase>
500                             <goals>
501                                 <goal>execute</goal>
502                             </goals>
503                             <configuration>
504                                 <!-- Site generates wrong link to Readme.html, trying to point to Readme.html at root -->
505                                 <source>
506                                     io.fd.honeycomb.common.scripts.ReadmeGenerator.fixSite(project, properties, log)
507                                 </source>
508                             </configuration>
509                         </execution>
510                         <!-- copy generated schema pictures -->
511                         <execution>
512                             <id>copy-generated-pictures</id>
513                             <phase>site</phase>
514                             <goals>
515                                 <goal>execute</goal>
516                             </goals>
517                             <configuration>
518                                 <!-- Copies generated schema pictures from ascii-doctor folders to site folder-->
519                                 <source>
520                                     io.fd.honeycomb.common.scripts.AsciiDocImgForwarder.copyGeneratedImages(project, properties, log)
521                                 </source>
522                             </configuration>
523                         </execution>
524                     </executions>
525                     <dependencies>
526                         <dependency>
527                             <groupId>io.fd.honeycomb.common</groupId>
528                             <artifactId>common-scripts</artifactId>
529                             <version>1.17.10-SNAPSHOT</version>
530                         </dependency>
531                     </dependencies>
532                 </plugin>
533             </plugins>
534         </pluginManagement>
535         <plugins>
536             <plugin>
537                 <artifactId>maven-enforcer-plugin</artifactId>
538             </plugin>
539             <plugin>
540                 <artifactId>maven-source-plugin</artifactId>
541             </plugin>
542             <plugin>
543                 <artifactId>maven-javadoc-plugin</artifactId>
544             </plugin>
545             <plugin>
546                 <artifactId>maven-checkstyle-plugin</artifactId>
547             </plugin>
548             <plugin>
549                 <artifactId>maven-dependency-plugin</artifactId>
550             </plugin>
551             <plugin>
552                 <artifactId>maven-compiler-plugin</artifactId>
553             </plugin>
554             <plugin>
555                 <groupId>org.jacoco</groupId>
556                 <artifactId>jacoco-maven-plugin</artifactId>
557             </plugin>
558             <plugin>
559                 <groupId>org.apache.felix</groupId>
560                 <artifactId>maven-bundle-plugin</artifactId>
561             </plugin>
562             <plugin>
563                 <groupId>org.codehaus.gmaven</groupId>
564                 <artifactId>groovy-maven-plugin</artifactId>
565             </plugin>
566         </plugins>
567
568         <!-- To support site push-->
569         <extensions>
570             <extension>
571                 <groupId>org.apache.maven.wagon</groupId>
572                 <artifactId>wagon-webdav-jackrabbit</artifactId>
573                 <version>2.9</version>
574             </extension>
575         </extensions>
576     </build>
577
578     <reporting>
579         <plugins>
580             <plugin>
581                 <groupId>org.apache.maven.plugins</groupId>
582                 <artifactId>maven-project-info-reports-plugin</artifactId>
583                 <version>${project.info.report.version}</version>
584                 <reportSets>
585                     <reportSet>
586                         <reports>
587                             <report>index</report>
588                             <report>summary</report>
589                             <report>modules</report>
590                             <report>cim</report>
591                             <report>dependencies</report>
592                             <report>distribution-management</report>
593                             <report>mailing-list</report>
594                             <report>issue-tracking</report>
595                             <report>license</report>
596                             <report>scm</report>
597                         </reports>
598                     </reportSet>
599                 </reportSets>
600             </plugin>
601             <plugin>
602                 <groupId>org.apache.maven.plugins</groupId>
603                 <artifactId>maven-javadoc-plugin</artifactId>
604                 <version>${maven.javadoc.version}</version>
605                 <reportSets>
606                     <reportSet>
607                         <id>default</id>
608                         <reports>
609                             <report>javadoc-no-fork</report>
610                         </reports>
611                     </reportSet>
612                 </reportSets>
613                 <configuration>
614                     <additionalparam>-Xdoclint:none</additionalparam>
615                 </configuration>
616             </plugin>
617             <plugin>
618                 <groupId>org.apache.maven.plugins</groupId>
619                 <artifactId>maven-resources-plugin</artifactId>
620                 <version>${maven.resources.version}</version>
621             </plugin>
622         </plugins>
623     </reporting>
624
625     <distributionManagement>
626         <repository>
627             <id>fdio-release</id>
628             <url>${nexusproxy}/repositories/fd.io.release/</url>
629         </repository>
630         <snapshotRepository>
631             <id>fdio-snapshot</id>
632             <url>${nexusproxy}/repositories/fd.io.snapshot/</url>
633         </snapshotRepository>
634         <site>
635             <id>fdio-site</id>
636             <url>dav:${docs.base.url}/${docs.hc.folder}/${project.version}</url>
637         </site>
638     </distributionManagement>
639
640     <repositories>
641         <!-- Using only ODL stable releases -->
642         <repository>
643             <releases>
644                 <enabled>true</enabled>
645                 <updatePolicy>never</updatePolicy>
646             </releases>
647             <snapshots>
648                 <enabled>false</enabled>
649             </snapshots>
650             <id>opendaylight-mirror</id>
651             <name>opendaylight-mirror</name>
652             <url>${odl.nexusproxy}/repositories/public/</url>
653         </repository>
654     </repositories>
655 </project>