1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ Copyright (c) 2016 Cisco and/or its affiliates.
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:
9 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
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">
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>
31 <nexusproxy>http://nexus.fd.io/content</nexusproxy>
32 <odl.nexusproxy>https://nexus.opendaylight.org/content</odl.nexusproxy>
34 <!-- Default Sonar configuration -->
35 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
36 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
37 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
38 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
39 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
40 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**</sonar.exclusions>
42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
45 <!-- ODL dependencies -->
46 <yangtools.version>1.0.4-Boron-SR4</yangtools.version>
47 <mdsal.version>2.1.4-Boron-SR4</mdsal.version>
48 <mdsal.controller.version>1.4.4-Boron-SR4</mdsal.controller.version>
49 <mdsalmodel.version>0.9.4-Boron-SR4</mdsalmodel.version>
50 <netconf.version>1.1.4-Boron-SR4</netconf.version>
51 <restconf.version>1.4.4-Boron-SR4</restconf.version>
52 <salGenerator.version>0.9.4-Boron-SR4</salGenerator.version>
53 <bgpcep.version>0.6.4-Boron-SR4</bgpcep.version>
54 <salGeneratorPath>target/generated-sources/mdsal-binding</salGeneratorPath>
57 <junit.version>4.11</junit.version>
58 <mockito.version>2.2.9</mockito.version>
59 <hamcrest.version>1.3</hamcrest.version>
60 <guava.version>18.0</guava.version>
63 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
64 <checkstyle.version>7.1.2</checkstyle.version>
65 <maven.javadoc.version>2.10.3</maven.javadoc.version>
66 <jacoco.version>0.7.2.201409121644</jacoco.version>
67 <enforcer.version>1.4</enforcer.version>
68 <maven.compile.plugin.version>3.5.1</maven.compile.plugin.version>
69 <maven.bundle.version>3.0.1</maven.bundle.version>
72 <checkstyle.header.file>APACHE_HEADER.txt</checkstyle.header.file>
75 <!-- skip location check = makes site exec faster -->
76 <dependency.locations.enabled>false</dependency.locations.enabled>
77 <project.info.report.version>2.9</project.info.report.version>
78 <maven.resources.version>3.0.1</maven.resources.version>
79 <maven.site.version>3.4</maven.site.version>
81 <asciidoctor.maven.plugin.version>1.5.3</asciidoctor.maven.plugin.version>
82 <asciidoctorj.diagram.version>1.3.1</asciidoctorj.diagram.version>
85 <maven.groovy.version>2.0</maven.groovy.version>
86 <groovy.version>2.4.7</groovy.version>
87 <groovy.eclipse.compiler.version>2.9.2-01</groovy.eclipse.compiler.version>
88 <groovy.eclipse.batch.version>2.4.3-01</groovy.eclipse.batch.version>
90 <docs.base.url>https://nexus.fd.io/content/sites/site</docs.base.url>
91 <docs.hc.folder>io/fd/honeycomb</docs.hc.folder>
96 <url>https://fd.io</url>
101 <name>Apache License, Version 2.0</name>
102 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
107 <system>JIRA</system>
108 <url>https://jira.fd.io/</url>
112 <system>Jenkins</system>
113 <url>https://jenkins.fd.io/</url>
119 <post>honeycomb-dev@fd.io</post>
120 <subscribe>https://lists.fd.io/mailman/listinfo/honeycomb-dev</subscribe>
121 <archive>https://lists.fd.io/pipermail/honeycomb-dev/</archive>
125 <dependencyManagement>
129 <groupId>org.opendaylight.yangtools</groupId>
130 <artifactId>yangtools-artifacts</artifactId>
131 <version>${yangtools.version}</version>
133 <scope>import</scope>
136 <groupId>org.opendaylight.controller</groupId>
137 <artifactId>mdsal-artifacts</artifactId>
138 <version>${mdsal.controller.version}</version>
140 <scope>import</scope>
143 <groupId>org.opendaylight.mdsal</groupId>
144 <artifactId>mdsal-artifacts</artifactId>
145 <version>${mdsal.version}</version>
147 <scope>import</scope>
150 <groupId>org.opendaylight.netconf</groupId>
151 <artifactId>netconf-artifacts</artifactId>
152 <version>${netconf.version}</version>
154 <scope>import</scope>
157 <groupId>org.opendaylight.netconf</groupId>
158 <artifactId>restconf-artifacts</artifactId>
159 <version>${restconf.version}</version>
161 <scope>import</scope>
164 <groupId>org.opendaylight.mdsal.model</groupId>
165 <artifactId>mdsal-model-artifacts</artifactId>
166 <version>${mdsalmodel.version}</version>
168 <scope>import</scope>
171 <groupId>org.opendaylight.bgpcep</groupId>
172 <artifactId>bgpcep-artifacts</artifactId>
173 <version>${bgpcep.version}</version>
175 <scope>import</scope>
180 <groupId>com.google.guava</groupId>
181 <artifactId>guava</artifactId>
182 <version>${guava.version}</version>
185 <!-- Testing Dependencies -->
187 <groupId>junit</groupId>
188 <artifactId>junit</artifactId>
189 <version>${junit.version}</version>
192 <!-- Dont use mockito-all, it has problematic dependency on harmcrest
193 More details here - https://github.com/mockito/mockito/issues/324-->
195 <groupId>org.mockito</groupId>
196 <artifactId>mockito-core</artifactId>
197 <version>${mockito.version}</version>
201 <groupId>org.hamcrest</groupId>
202 <artifactId>hamcrest-all</artifactId>
203 <version>${hamcrest.version}</version>
207 </dependencyManagement>
214 <artifactId>maven-checkstyle-plugin</artifactId>
215 <version>${checkstyle.plugin.version}</version>
217 <!--TODO HONEYCOMB-155 enable fail on violation after issues are resolved + set in as errors in checkstyle xml-->
218 <failOnViolation>false</failOnViolation>
219 <failsOnError>true</failsOnError>
220 <consoleOutput>true</consoleOutput>
221 <includeTestResources>true</includeTestResources>
222 <includeTestSourceDirectory>true</includeTestSourceDirectory>
223 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
224 <excludes>**\/target\/,
227 **\/src/main/yang-gen-config\/,
228 org/opendaylight/yang/gen/**,
229 **\/src/main/yang-gen-sal\/,
230 **\/src/main/xtend-gen\/,
232 **\/archetype-resources\/,
233 **\/.idea\/</excludes>
236 <!-- Override license check configuration to fit Honeycomb coding style-->
238 <id>check-license</id>
242 <phase>process-sources</phase>
244 <configLocation>honeycomb-checkstyle-license.xml</configLocation>
245 <outputFile>${project.build.directory}/checkstyle-license-result.xml</outputFile>
248 <!-- Add logging checks from yangtools -->
250 <id>check-logging</id>
254 <phase>process-sources</phase>
256 <configLocation>honeycomb-checkstyle-logging.xml</configLocation>
257 <sourceDirectory>${project.basedir}</sourceDirectory>
258 <outputFile>${project.build.directory}/checkstyle-logging-result.xml</outputFile>
261 <!-- Check HC's coding style -->
266 <phase>process-sources</phase>
268 <configLocation>honeycomb-checkstyle.xml</configLocation>
274 <groupId>io.fd.honeycomb.common</groupId>
275 <artifactId>honeycomb-checkstyle</artifactId>
276 <!-- Hardcoded version to prevent archetype generated projects to use their own project version -->
277 <version>1.17.10-SNAPSHOT</version>
279 <!-- Necessary for logging checks -->
281 <groupId>org.opendaylight.yangtools</groupId>
282 <artifactId>checkstyle-logging</artifactId>
283 <version>${yangtools.version}</version>
285 <!-- Needed by ODL's checkstyle-logging -->
287 <groupId>com.puppycrawl.tools</groupId>
288 <artifactId>checkstyle</artifactId>
289 <version>${checkstyle.version}</version>
293 <!-- Deactivate strict java8 checks -->
294 <!-- TODO HONEYCOMB-156 fix all the javadoc offenders of doclint -->
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-javadoc-plugin</artifactId>
298 <version>${maven.javadoc.version}</version>
300 <additionalparam>-Xdoclint:none</additionalparam>
304 <id>attach-javadocs</id>
311 <!-- jacoco test coverage for sonar -->
313 <groupId>org.jacoco</groupId>
314 <artifactId>jacoco-maven-plugin</artifactId>
315 <version>${jacoco.version}</version>
318 <id>pre-unit-test</id>
320 <goal>prepare-agent</goal>
323 <destFile>${sonar.jacoco.reportPath}</destFile>
327 <id>post-unit-test</id>
332 <dataFile>${sonar.jacoco.reportPath}</dataFile>
338 <exclude>**/gen/**</exclude>
339 <exclude>**/generated-sources/**</exclude>
340 <exclude>**/yang-gen/**</exclude>
344 <!-- Enforce maven version -->
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-enforcer-plugin</artifactId>
348 <version>${enforcer.version}</version>
351 <id>enforce-maven</id>
354 <requireMavenVersion>
355 <version>3.1.1</version>
356 </requireMavenVersion>
365 <!-- Compile with google static analysis tool: error_prone -->
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-compiler-plugin</artifactId>
369 <version>${maven.compile.plugin.version}</version>
371 <!-- Use google's error-prone static analysis-->
372 <compilerId>javac-with-errorprone</compilerId>
373 <forceJavacCompilerUse>true</forceJavacCompilerUse>
374 <showWarnings>true</showWarnings>
380 <groupId>org.codehaus.plexus</groupId>
381 <artifactId>plexus-compiler-javac-errorprone</artifactId>
382 <version>2.5</version>
384 <!-- override plexus-compiler-javac-errorprone's dependency on
385 Error Prone with the latest version -->
387 <groupId>com.google.errorprone</groupId>
388 <artifactId>error_prone_core</artifactId>
389 <version>2.0.9</version>
394 <groupId>org.apache.felix</groupId>
395 <artifactId>maven-bundle-plugin</artifactId>
396 <version>${maven.bundle.version}</version>
397 <extensions>true</extensions>
401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-source-plugin</artifactId>
405 <id>attach-sources</id>
412 <!-- Site (from https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoc-maven-site-example/pom.xml) -->
413 <!-- + https://github.com/asciidoctor/asciidoctor-maven-plugin -->
415 <groupId>org.apache.maven.plugins</groupId>
416 <artifactId>maven-site-plugin</artifactId>
417 <version>${maven.site.version}</version>
419 <generateReports>true</generateReports>
420 <generateSitemap>true</generateSitemap>
421 <relativizeDecorationLinks>false</relativizeDecorationLinks>
422 <locales>en</locales>
423 <inputEncoding>UTF-8</inputEncoding>
424 <outputEncoding>UTF-8</outputEncoding>
425 <siteDirectory>${project.basedir}</siteDirectory>
426 <relativizeDecorationLinks>false</relativizeDecorationLinks>
429 <require>asciidoctor-diagram</require>
431 <!-- optional site-wide AsciiDoc attributes -->
433 <source-highlighter>coderay</source-highlighter>
434 <coderay-css>style</coderay-css>
436 <sectanchors>true</sectanchors>
438 <idseparator>-</idseparator>
441 <!-- Exclude partial docs that are included elsewhere -->
443 <asciidoc>**/_*.adoc</asciidoc>
448 <groupId>org.asciidoctor</groupId>
449 <artifactId>asciidoctor-maven-plugin</artifactId>
450 <version>${asciidoctor.maven.plugin.version}</version>
453 <groupId>org.asciidoctor</groupId>
454 <artifactId>asciidoctorj-diagram</artifactId>
455 <version>${asciidoctorj.diagram.version}</version>
460 <groupId>org.codehaus.gmaven</groupId>
461 <artifactId>groovy-maven-plugin</artifactId>
462 <version>${maven.groovy.version}</version>
464 <!-- Generate Readme.adoc if not present -->
466 <id>generate-adoc</id>
467 <phase>generate-resources</phase>
472 <!-- Generate module adoc documentation -->
474 io.fd.honeycomb.common.scripts.ReadmeGenerator.checkReadme(project, properties, log)
478 <!-- Fix generated html -->
480 <id>fix-generated-site</id>
486 <!-- Site generates wrong link to Readme.html, trying to point to Readme.html at root -->
488 io.fd.honeycomb.common.scripts.ReadmeGenerator.fixSite(project, properties, log)
492 <!-- copy generated schema pictures -->
494 <id>copy-generated-pictures</id>
500 <!-- Copies generated schema pictures from ascii-doctor folders to site folder-->
502 io.fd.honeycomb.common.scripts.AsciiDocImgForwarder.copyGeneratedImages(project, properties, log)
509 <groupId>io.fd.honeycomb.common</groupId>
510 <artifactId>common-scripts</artifactId>
511 <version>1.17.10-SNAPSHOT</version>
519 <artifactId>maven-enforcer-plugin</artifactId>
522 <artifactId>maven-source-plugin</artifactId>
525 <artifactId>maven-javadoc-plugin</artifactId>
528 <artifactId>maven-checkstyle-plugin</artifactId>
531 <artifactId>maven-dependency-plugin</artifactId>
534 <artifactId>maven-compiler-plugin</artifactId>
537 <groupId>org.jacoco</groupId>
538 <artifactId>jacoco-maven-plugin</artifactId>
541 <groupId>org.apache.felix</groupId>
542 <artifactId>maven-bundle-plugin</artifactId>
545 <groupId>org.codehaus.gmaven</groupId>
546 <artifactId>groovy-maven-plugin</artifactId>
550 <!-- To support site push-->
553 <groupId>org.apache.maven.wagon</groupId>
554 <artifactId>wagon-webdav-jackrabbit</artifactId>
555 <version>2.9</version>
563 <groupId>org.apache.maven.plugins</groupId>
564 <artifactId>maven-project-info-reports-plugin</artifactId>
565 <version>${project.info.report.version}</version>
569 <report>index</report>
570 <report>summary</report>
571 <report>modules</report>
573 <report>dependencies</report>
574 <report>distribution-management</report>
575 <report>mailing-list</report>
576 <report>issue-tracking</report>
577 <report>license</report>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-javadoc-plugin</artifactId>
586 <version>${maven.javadoc.version}</version>
591 <report>javadoc-no-fork</report>
596 <additionalparam>-Xdoclint:none</additionalparam>
600 <groupId>org.apache.maven.plugins</groupId>
601 <artifactId>maven-resources-plugin</artifactId>
602 <version>${maven.resources.version}</version>
607 <distributionManagement>
609 <id>fdio-release</id>
610 <url>${nexusproxy}/repositories/fd.io.release/</url>
613 <id>fdio-snapshot</id>
614 <url>${nexusproxy}/repositories/fd.io.snapshot/</url>
615 </snapshotRepository>
618 <url>dav:${docs.base.url}/${docs.hc.folder}/${project.version}</url>
620 </distributionManagement>
623 <!-- Using only ODL stable releases -->
626 <enabled>true</enabled>
627 <updatePolicy>never</updatePolicy>
630 <enabled>false</enabled>
632 <id>opendaylight-mirror</id>
633 <name>opendaylight-mirror</name>
634 <url>${odl.nexusproxy}/repositories/public/</url>