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.07-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>0.8.4-Beryllium-SR4</yangtools.version>
47 <mdsal.version>2.0.4-Beryllium-SR4</mdsal.version>
48 <mdsal.controller.version>1.3.4-Beryllium-SR4</mdsal.controller.version>
49 <mdsalmodel.version>0.8.4-Beryllium-SR4</mdsalmodel.version>
50 <netconf.version>1.0.4-Beryllium-SR4</netconf.version>
51 <restconf.version>1.3.4-Beryllium-SR4</restconf.version>
52 <salGenerator.version>0.8.4-Beryllium-SR4</salGenerator.version>
53 <salGeneratorPath>target/generated-sources/mdsal-binding</salGeneratorPath>
56 <junit.version>4.11</junit.version>
57 <mockito.version>2.2.9</mockito.version>
58 <hamcrest.version>1.3</hamcrest.version>
59 <guava.version>18.0</guava.version>
62 <checkstyle.plugin.version>2.16</checkstyle.plugin.version>
63 <checkstyle.version>7.1.2</checkstyle.version>
64 <maven.javadoc.version>2.10.3</maven.javadoc.version>
65 <jacoco.version>0.7.2.201409121644</jacoco.version>
66 <enforcer.version>1.4</enforcer.version>
67 <maven.compile.plugin.version>3.5.1</maven.compile.plugin.version>
68 <maven.bundle.version>3.0.1</maven.bundle.version>
71 <checkstyle.header.file>APACHE_HEADER.txt</checkstyle.header.file>
74 <!-- skip location check = makes site exec faster -->
75 <dependency.locations.enabled>false</dependency.locations.enabled>
76 <project.info.report.version>2.9</project.info.report.version>
77 <maven.resources.version>3.0.1</maven.resources.version>
78 <maven.site.version>3.4</maven.site.version>
80 <asciidoctor.maven.plugin.version>1.5.3</asciidoctor.maven.plugin.version>
81 <asciidoctorj.diagram.version>1.3.1</asciidoctorj.diagram.version>
84 <maven.groovy.version>2.0</maven.groovy.version>
85 <groovy.version>2.4.7</groovy.version>
86 <groovy.eclipse.compiler.version>2.9.2-01</groovy.eclipse.compiler.version>
87 <groovy.eclipse.batch.version>2.4.3-01</groovy.eclipse.batch.version>
89 <docs.base.url>https://nexus.fd.io/content/sites/site</docs.base.url>
90 <docs.hc.folder>io/fd/honeycomb</docs.hc.folder>
95 <url>https://fd.io</url>
100 <name>Apache License, Version 2.0</name>
101 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
106 <system>JIRA</system>
107 <url>https://jira.fd.io/</url>
111 <system>Jenkins</system>
112 <url>https://jenkins.fd.io/</url>
118 <post>honeycomb-dev@fd.io</post>
119 <subscribe>https://lists.fd.io/mailman/listinfo/honeycomb-dev</subscribe>
120 <archive>https://lists.fd.io/pipermail/honeycomb-dev/</archive>
124 <dependencyManagement>
128 <groupId>org.opendaylight.yangtools</groupId>
129 <artifactId>yangtools-artifacts</artifactId>
130 <version>${yangtools.version}</version>
132 <scope>import</scope>
135 <groupId>org.opendaylight.controller</groupId>
136 <artifactId>mdsal-artifacts</artifactId>
137 <version>${mdsal.controller.version}</version>
139 <scope>import</scope>
142 <groupId>org.opendaylight.mdsal</groupId>
143 <artifactId>mdsal-artifacts</artifactId>
144 <version>${mdsal.version}</version>
146 <scope>import</scope>
149 <groupId>org.opendaylight.netconf</groupId>
150 <artifactId>netconf-artifacts</artifactId>
151 <version>${netconf.version}</version>
153 <scope>import</scope>
156 <groupId>org.opendaylight.netconf</groupId>
157 <artifactId>restconf-artifacts</artifactId>
158 <version>${restconf.version}</version>
160 <scope>import</scope>
163 <groupId>org.opendaylight.mdsal.model</groupId>
164 <artifactId>mdsal-model-artifacts</artifactId>
165 <version>${mdsalmodel.version}</version>
167 <scope>import</scope>
172 <groupId>com.google.guava</groupId>
173 <artifactId>guava</artifactId>
174 <version>${guava.version}</version>
177 <!-- Testing Dependencies -->
179 <groupId>junit</groupId>
180 <artifactId>junit</artifactId>
181 <version>${junit.version}</version>
184 <!-- Dont use mockito-all, it has problematic dependency on harmcrest
185 More details here - https://github.com/mockito/mockito/issues/324-->
187 <groupId>org.mockito</groupId>
188 <artifactId>mockito-core</artifactId>
189 <version>${mockito.version}</version>
193 <groupId>org.hamcrest</groupId>
194 <artifactId>hamcrest-all</artifactId>
195 <version>${hamcrest.version}</version>
199 </dependencyManagement>
206 <artifactId>maven-checkstyle-plugin</artifactId>
207 <version>${checkstyle.plugin.version}</version>
209 <!--TODO HONEYCOMB-155 enable fail on violation after issues are resolved + set in as errors in checkstyle xml-->
210 <failOnViolation>false</failOnViolation>
211 <failsOnError>true</failsOnError>
212 <consoleOutput>true</consoleOutput>
213 <includeTestResources>true</includeTestResources>
214 <includeTestSourceDirectory>true</includeTestSourceDirectory>
215 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
216 <excludes>**\/target\/,
219 **\/src/main/yang-gen-config\/,
220 org/opendaylight/yang/gen/**,
221 **\/src/main/yang-gen-sal\/,
222 **\/src/main/xtend-gen\/,
224 **\/archetype-resources\/</excludes>
227 <!-- Override license check configuration to fit Honeycomb coding style-->
229 <id>check-license</id>
233 <phase>process-sources</phase>
235 <configLocation>honeycomb-checkstyle-license.xml</configLocation>
236 <outputFile>${project.build.directory}/checkstyle-license-result.xml</outputFile>
239 <!-- Add logging checks from yangtools -->
241 <id>check-logging</id>
245 <phase>process-sources</phase>
247 <configLocation>honeycomb-checkstyle-logging.xml</configLocation>
248 <sourceDirectory>${project.basedir}</sourceDirectory>
249 <outputFile>${project.build.directory}/checkstyle-logging-result.xml</outputFile>
252 <!-- Check HC's coding style -->
257 <phase>process-sources</phase>
259 <configLocation>honeycomb-checkstyle.xml</configLocation>
265 <groupId>io.fd.honeycomb.common</groupId>
266 <artifactId>honeycomb-checkstyle</artifactId>
267 <!-- Hardcoded version to prevent archetype generated projects to use their own project version -->
268 <version>1.17.07-SNAPSHOT</version>
270 <!-- Necessary for logging checks -->
272 <groupId>org.opendaylight.yangtools</groupId>
273 <artifactId>checkstyle-logging</artifactId>
274 <version>${yangtools.version}</version>
278 <!-- Deactivate strict java8 checks -->
279 <!-- TODO HONEYCOMB-156 fix all the javadoc offenders of doclint -->
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-javadoc-plugin</artifactId>
283 <version>${maven.javadoc.version}</version>
285 <additionalparam>-Xdoclint:none</additionalparam>
289 <id>attach-javadocs</id>
296 <!-- jacoco test coverage for sonar -->
298 <groupId>org.jacoco</groupId>
299 <artifactId>jacoco-maven-plugin</artifactId>
300 <version>${jacoco.version}</version>
303 <id>pre-unit-test</id>
305 <goal>prepare-agent</goal>
308 <destFile>${sonar.jacoco.reportPath}</destFile>
312 <id>post-unit-test</id>
317 <dataFile>${sonar.jacoco.reportPath}</dataFile>
323 <exclude>**/gen/**</exclude>
324 <exclude>**/generated-sources/**</exclude>
325 <exclude>**/yang-gen/**</exclude>
329 <!-- Enforce maven version -->
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-enforcer-plugin</artifactId>
333 <version>${enforcer.version}</version>
336 <id>enforce-maven</id>
339 <requireMavenVersion>
340 <version>3.1.1</version>
341 </requireMavenVersion>
350 <!-- Compile with google static analysis tool: error_prone -->
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-compiler-plugin</artifactId>
354 <version>${maven.compile.plugin.version}</version>
356 <!-- Use google's error-prone static analysis-->
357 <compilerId>javac-with-errorprone</compilerId>
358 <forceJavacCompilerUse>true</forceJavacCompilerUse>
359 <showWarnings>true</showWarnings>
365 <groupId>org.codehaus.plexus</groupId>
366 <artifactId>plexus-compiler-javac-errorprone</artifactId>
367 <version>2.5</version>
369 <!-- override plexus-compiler-javac-errorprone's dependency on
370 Error Prone with the latest version -->
372 <groupId>com.google.errorprone</groupId>
373 <artifactId>error_prone_core</artifactId>
374 <version>2.0.9</version>
379 <groupId>org.apache.felix</groupId>
380 <artifactId>maven-bundle-plugin</artifactId>
381 <version>${maven.bundle.version}</version>
382 <extensions>true</extensions>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-source-plugin</artifactId>
390 <id>attach-sources</id>
397 <!-- Site (from https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoc-maven-site-example/pom.xml) -->
398 <!-- + https://github.com/asciidoctor/asciidoctor-maven-plugin -->
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-site-plugin</artifactId>
402 <version>${maven.site.version}</version>
404 <generateReports>true</generateReports>
405 <generateSitemap>true</generateSitemap>
406 <relativizeDecorationLinks>false</relativizeDecorationLinks>
407 <locales>en</locales>
408 <inputEncoding>UTF-8</inputEncoding>
409 <outputEncoding>UTF-8</outputEncoding>
410 <siteDirectory>${project.basedir}</siteDirectory>
411 <relativizeDecorationLinks>false</relativizeDecorationLinks>
414 <require>asciidoctor-diagram</require>
416 <!-- optional site-wide AsciiDoc attributes -->
418 <source-highlighter>coderay</source-highlighter>
419 <coderay-css>style</coderay-css>
421 <sectanchors>true</sectanchors>
423 <idseparator>-</idseparator>
426 <!-- Exclude partial docs that are included elsewhere -->
428 <asciidoc>**/_*.adoc</asciidoc>
433 <groupId>org.asciidoctor</groupId>
434 <artifactId>asciidoctor-maven-plugin</artifactId>
435 <version>${asciidoctor.maven.plugin.version}</version>
438 <groupId>org.asciidoctor</groupId>
439 <artifactId>asciidoctorj-diagram</artifactId>
440 <version>${asciidoctorj.diagram.version}</version>
445 <groupId>org.codehaus.gmaven</groupId>
446 <artifactId>groovy-maven-plugin</artifactId>
447 <version>${maven.groovy.version}</version>
449 <!-- Generate Readme.adoc if not present -->
451 <id>generate-adoc</id>
452 <phase>generate-resources</phase>
457 <!-- Generate module adoc documentation -->
459 io.fd.honeycomb.common.scripts.ReadmeGenerator.checkReadme(project, properties, log)
463 <!-- Fix generated html -->
465 <id>fix-generated-site</id>
471 <!-- Site generates wrong link to Readme.html, trying to point to Readme.html at root -->
473 io.fd.honeycomb.common.scripts.ReadmeGenerator.fixSite(project, properties, log)
477 <!-- copy generated schema pictures -->
479 <id>copy-generated-pictures</id>
485 <!-- Copies generated schema pictures from ascii-doctor folders to site folder-->
487 io.fd.honeycomb.common.scripts.AsciiDocImgForwarder.copyGeneratedImages(project, properties, log)
494 <groupId>io.fd.honeycomb.common</groupId>
495 <artifactId>common-scripts</artifactId>
496 <version>1.17.07-SNAPSHOT</version>
504 <artifactId>maven-enforcer-plugin</artifactId>
507 <artifactId>maven-source-plugin</artifactId>
510 <artifactId>maven-javadoc-plugin</artifactId>
513 <artifactId>maven-checkstyle-plugin</artifactId>
516 <artifactId>maven-dependency-plugin</artifactId>
519 <artifactId>maven-compiler-plugin</artifactId>
522 <groupId>org.jacoco</groupId>
523 <artifactId>jacoco-maven-plugin</artifactId>
526 <groupId>org.apache.felix</groupId>
527 <artifactId>maven-bundle-plugin</artifactId>
530 <groupId>org.codehaus.gmaven</groupId>
531 <artifactId>groovy-maven-plugin</artifactId>
535 <!-- To support site push-->
538 <groupId>org.apache.maven.wagon</groupId>
539 <artifactId>wagon-webdav-jackrabbit</artifactId>
540 <version>2.9</version>
548 <groupId>org.apache.maven.plugins</groupId>
549 <artifactId>maven-project-info-reports-plugin</artifactId>
550 <version>${project.info.report.version}</version>
554 <report>index</report>
555 <report>summary</report>
556 <report>modules</report>
558 <report>dependencies</report>
559 <report>distribution-management</report>
560 <report>mailing-list</report>
561 <report>issue-tracking</report>
562 <report>license</report>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-javadoc-plugin</artifactId>
571 <version>${maven.javadoc.version}</version>
576 <report>javadoc-no-fork</report>
581 <additionalparam>-Xdoclint:none</additionalparam>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-resources-plugin</artifactId>
587 <version>${maven.resources.version}</version>
592 <distributionManagement>
594 <id>fdio-release</id>
595 <url>${nexusproxy}/repositories/fd.io.release/</url>
598 <id>fdio-snapshot</id>
599 <url>${nexusproxy}/repositories/fd.io.snapshot/</url>
600 </snapshotRepository>
603 <url>dav:${docs.base.url}/${docs.hc.folder}/${project.version}</url>
605 </distributionManagement>
608 <!-- Using only ODL stable releases -->
611 <enabled>true</enabled>
612 <updatePolicy>never</updatePolicy>
615 <enabled>false</enabled>
617 <id>opendaylight-mirror</id>
618 <name>opendaylight-mirror</name>
619 <url>${odl.nexusproxy}/repositories/public/</url>