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.01-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.2-Boron-SR2</yangtools.version>
47 <mdsal.version>2.1.2-Boron-SR2</mdsal.version>
48 <mdsal.controller.version>1.4.2-Boron-SR2</mdsal.controller.version>
49 <mdsalmodel.version>0.9.2-Boron-SR2</mdsalmodel.version>
50 <netconf.version>1.1.2-Boron-SR2</netconf.version>
51 <restconf.version>1.4.2-Boron-SR2</restconf.version>
52 <salGeneratorPath>target/generated-sources/mdsal-binding</salGeneratorPath>
55 <junit.version>4.11</junit.version>
56 <mockito.version>2.2.9</mockito.version>
57 <hamcrest.version>1.3</hamcrest.version>
58 <guava.version>18.0</guava.version>
61 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
62 <checkstyle.version>7.1.2</checkstyle.version>
63 <maven.javadoc.version>2.10.3</maven.javadoc.version>
64 <jacoco.version>0.7.2.201409121644</jacoco.version>
65 <enforcer.version>1.4</enforcer.version>
66 <maven.compile.plugin.version>3.5.1</maven.compile.plugin.version>
67 <maven.bundle.version>3.0.1</maven.bundle.version>
70 <checkstyle.header.file>APACHE_HEADER.txt</checkstyle.header.file>
73 <!-- skip location check = makes site exec faster -->
74 <dependency.locations.enabled>false</dependency.locations.enabled>
75 <project.info.report.version>2.9</project.info.report.version>
76 <maven.resources.version>3.0.1</maven.resources.version>
77 <maven.site.version>3.4</maven.site.version>
79 <asciidoctor.maven.plugin.version>1.5.3</asciidoctor.maven.plugin.version>
80 <asciidoctorj.diagram.version>1.3.1</asciidoctorj.diagram.version>
83 <maven.groovy.version>2.0</maven.groovy.version>
84 <groovy.version>2.4.7</groovy.version>
85 <groovy.eclipse.compiler.version>2.9.2-01</groovy.eclipse.compiler.version>
86 <groovy.eclipse.batch.version>2.4.3-01</groovy.eclipse.batch.version>
88 <docs.base.url>https://nexus.fd.io/content/sites/site</docs.base.url>
89 <docs.hc.folder>io/fd/honeycomb</docs.hc.folder>
94 <url>https://fd.io</url>
99 <name>Apache License, Version 2.0</name>
100 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
105 <system>JIRA</system>
106 <url>https://jira.fd.io/</url>
110 <system>Jenkins</system>
111 <url>https://jenkins.fd.io/</url>
117 <post>honeycomb-dev@fd.io</post>
118 <subscribe>https://lists.fd.io/mailman/listinfo/honeycomb-dev</subscribe>
119 <archive>https://lists.fd.io/pipermail/honeycomb-dev/</archive>
123 <dependencyManagement>
127 <groupId>org.opendaylight.yangtools</groupId>
128 <artifactId>yangtools-artifacts</artifactId>
129 <version>${yangtools.version}</version>
131 <scope>import</scope>
134 <groupId>org.opendaylight.controller</groupId>
135 <artifactId>mdsal-artifacts</artifactId>
136 <version>${mdsal.controller.version}</version>
138 <scope>import</scope>
141 <groupId>org.opendaylight.mdsal</groupId>
142 <artifactId>mdsal-artifacts</artifactId>
143 <version>${mdsal.version}</version>
145 <scope>import</scope>
148 <groupId>org.opendaylight.netconf</groupId>
149 <artifactId>netconf-artifacts</artifactId>
150 <version>${netconf.version}</version>
152 <scope>import</scope>
155 <groupId>org.opendaylight.netconf</groupId>
156 <artifactId>restconf-artifacts</artifactId>
157 <version>${restconf.version}</version>
159 <scope>import</scope>
162 <groupId>org.opendaylight.mdsal.model</groupId>
163 <artifactId>mdsal-model-artifacts</artifactId>
164 <version>${mdsalmodel.version}</version>
166 <scope>import</scope>
171 <groupId>com.google.guava</groupId>
172 <artifactId>guava</artifactId>
173 <version>${guava.version}</version>
176 <!-- Testing Dependencies -->
178 <groupId>junit</groupId>
179 <artifactId>junit</artifactId>
180 <version>${junit.version}</version>
183 <!-- Dont use mockito-all, it has problematic dependency on harmcrest
184 More details here - https://github.com/mockito/mockito/issues/324-->
186 <groupId>org.mockito</groupId>
187 <artifactId>mockito-core</artifactId>
188 <version>${mockito.version}</version>
192 <groupId>org.hamcrest</groupId>
193 <artifactId>hamcrest-all</artifactId>
194 <version>${hamcrest.version}</version>
198 </dependencyManagement>
205 <artifactId>maven-checkstyle-plugin</artifactId>
206 <version>${checkstyle.plugin.version}</version>
208 <!--TODO HONEYCOMB-155 enable fail on violation after issues are resolved + set in as errors in checkstyle xml-->
209 <failOnViolation>false</failOnViolation>
210 <failsOnError>true</failsOnError>
211 <consoleOutput>true</consoleOutput>
212 <includeTestResources>true</includeTestResources>
213 <includeTestSourceDirectory>true</includeTestSourceDirectory>
214 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
215 <excludes>**\/target\/,
218 **\/src/main/yang-gen-config\/,
219 org/opendaylight/yang/gen/**,
220 **\/src/main/yang-gen-sal\/,
221 **\/src/main/xtend-gen\/,
223 **\/archetype-resources\/</excludes>
226 <!-- Override license check configuration to fit Honeycomb coding style-->
228 <id>check-license</id>
232 <phase>process-sources</phase>
234 <configLocation>honeycomb-checkstyle-license.xml</configLocation>
235 <outputFile>${project.build.directory}/checkstyle-license-result.xml</outputFile>
238 <!-- Add logging checks from yangtools -->
240 <id>check-logging</id>
244 <phase>process-sources</phase>
246 <configLocation>honeycomb-checkstyle-logging.xml</configLocation>
247 <sourceDirectory>${project.basedir}</sourceDirectory>
248 <outputFile>${project.build.directory}/checkstyle-logging-result.xml</outputFile>
251 <!-- Check HC's coding style -->
256 <phase>process-sources</phase>
258 <configLocation>honeycomb-checkstyle.xml</configLocation>
264 <groupId>io.fd.honeycomb.common</groupId>
265 <artifactId>honeycomb-checkstyle</artifactId>
266 <!-- Hardcoded version to prevent archetype generated projects to use their own project version -->
267 <version>1.17.01-SNAPSHOT</version>
269 <!-- Necessary for logging checks -->
271 <groupId>org.opendaylight.yangtools</groupId>
272 <artifactId>checkstyle-logging</artifactId>
273 <version>${yangtools.version}</version>
275 <!-- Needed by ODL's checkstyle-logging -->
277 <groupId>com.puppycrawl.tools</groupId>
278 <artifactId>checkstyle</artifactId>
279 <version>${checkstyle.version}</version>
283 <!-- Deactivate strict java8 checks -->
284 <!-- TODO HONEYCOMB-156 fix all the javadoc offenders of doclint -->
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-javadoc-plugin</artifactId>
288 <version>${maven.javadoc.version}</version>
290 <additionalparam>-Xdoclint:none</additionalparam>
294 <id>attach-javadocs</id>
301 <!-- jacoco test coverage for sonar -->
303 <groupId>org.jacoco</groupId>
304 <artifactId>jacoco-maven-plugin</artifactId>
305 <version>${jacoco.version}</version>
308 <id>pre-unit-test</id>
310 <goal>prepare-agent</goal>
313 <destFile>${sonar.jacoco.reportPath}</destFile>
317 <id>post-unit-test</id>
322 <dataFile>${sonar.jacoco.reportPath}</dataFile>
328 <exclude>**/gen/**</exclude>
329 <exclude>**/generated-sources/**</exclude>
330 <exclude>**/yang-gen/**</exclude>
334 <!-- Enforce maven version -->
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-enforcer-plugin</artifactId>
338 <version>${enforcer.version}</version>
341 <id>enforce-maven</id>
344 <requireMavenVersion>
345 <version>3.1.1</version>
346 </requireMavenVersion>
355 <!-- Compile with google static analysis tool: error_prone -->
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-compiler-plugin</artifactId>
359 <version>${maven.compile.plugin.version}</version>
361 <!-- Use google's error-prone static analysis-->
362 <compilerId>javac-with-errorprone</compilerId>
363 <forceJavacCompilerUse>true</forceJavacCompilerUse>
364 <showWarnings>true</showWarnings>
370 <groupId>org.codehaus.plexus</groupId>
371 <artifactId>plexus-compiler-javac-errorprone</artifactId>
372 <version>2.5</version>
374 <!-- override plexus-compiler-javac-errorprone's dependency on
375 Error Prone with the latest version -->
377 <groupId>com.google.errorprone</groupId>
378 <artifactId>error_prone_core</artifactId>
379 <version>2.0.9</version>
384 <groupId>org.apache.felix</groupId>
385 <artifactId>maven-bundle-plugin</artifactId>
386 <version>${maven.bundle.version}</version>
387 <extensions>true</extensions>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-source-plugin</artifactId>
395 <id>attach-sources</id>
402 <!-- Site (from https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoc-maven-site-example/pom.xml) -->
403 <!-- + https://github.com/asciidoctor/asciidoctor-maven-plugin -->
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-site-plugin</artifactId>
407 <version>${maven.site.version}</version>
409 <generateReports>true</generateReports>
410 <generateSitemap>true</generateSitemap>
411 <relativizeDecorationLinks>false</relativizeDecorationLinks>
412 <locales>en</locales>
413 <inputEncoding>UTF-8</inputEncoding>
414 <outputEncoding>UTF-8</outputEncoding>
415 <siteDirectory>${project.basedir}</siteDirectory>
416 <relativizeDecorationLinks>false</relativizeDecorationLinks>
419 <require>asciidoctor-diagram</require>
421 <!-- optional site-wide AsciiDoc attributes -->
423 <source-highlighter>coderay</source-highlighter>
424 <coderay-css>style</coderay-css>
426 <sectanchors>true</sectanchors>
428 <idseparator>-</idseparator>
431 <!-- Exclude partial docs that are included elsewhere -->
433 <asciidoc>**/_*.adoc</asciidoc>
438 <groupId>org.asciidoctor</groupId>
439 <artifactId>asciidoctor-maven-plugin</artifactId>
440 <version>${asciidoctor.maven.plugin.version}</version>
443 <groupId>org.asciidoctor</groupId>
444 <artifactId>asciidoctorj-diagram</artifactId>
445 <version>${asciidoctorj.diagram.version}</version>
450 <groupId>org.codehaus.gmaven</groupId>
451 <artifactId>groovy-maven-plugin</artifactId>
452 <version>${maven.groovy.version}</version>
454 <!-- Generate Readme.adoc if not present -->
456 <id>generate-adoc</id>
457 <phase>generate-resources</phase>
462 <!-- Generate module adoc documentation -->
464 io.fd.honeycomb.common.scripts.ReadmeGenerator.checkReadme(project, properties, log)
468 <!-- Fix generated html -->
470 <id>fix-generated-site</id>
476 <!-- Site generates wrong link to Readme.html, trying to point to Readme.html at root -->
478 io.fd.honeycomb.common.scripts.ReadmeGenerator.fixSite(project, properties, log)
485 <groupId>io.fd.honeycomb.common</groupId>
486 <artifactId>common-scripts</artifactId>
487 <version>1.17.01-SNAPSHOT</version>
495 <artifactId>maven-enforcer-plugin</artifactId>
498 <artifactId>maven-source-plugin</artifactId>
501 <artifactId>maven-javadoc-plugin</artifactId>
504 <artifactId>maven-checkstyle-plugin</artifactId>
507 <artifactId>maven-dependency-plugin</artifactId>
510 <artifactId>maven-compiler-plugin</artifactId>
513 <groupId>org.jacoco</groupId>
514 <artifactId>jacoco-maven-plugin</artifactId>
517 <groupId>org.apache.felix</groupId>
518 <artifactId>maven-bundle-plugin</artifactId>
521 <groupId>org.codehaus.gmaven</groupId>
522 <artifactId>groovy-maven-plugin</artifactId>
526 <!-- To support site push-->
529 <groupId>org.apache.maven.wagon</groupId>
530 <artifactId>wagon-webdav-jackrabbit</artifactId>
531 <version>2.9</version>
539 <groupId>org.apache.maven.plugins</groupId>
540 <artifactId>maven-project-info-reports-plugin</artifactId>
541 <version>${project.info.report.version}</version>
545 <report>index</report>
546 <report>summary</report>
547 <report>modules</report>
549 <report>dependencies</report>
550 <report>distribution-management</report>
551 <report>mailing-list</report>
552 <report>issue-tracking</report>
553 <report>license</report>
560 <groupId>org.apache.maven.plugins</groupId>
561 <artifactId>maven-javadoc-plugin</artifactId>
562 <version>${maven.javadoc.version}</version>
567 <report>javadoc-no-fork</report>
572 <additionalparam>-Xdoclint:none</additionalparam>
576 <groupId>org.apache.maven.plugins</groupId>
577 <artifactId>maven-resources-plugin</artifactId>
578 <version>${maven.resources.version}</version>
583 <distributionManagement>
585 <id>fdio-release</id>
586 <url>${nexusproxy}/repositories/fd.io.release/</url>
589 <id>fdio-snapshot</id>
590 <url>${nexusproxy}/repositories/fd.io.snapshot/</url>
591 </snapshotRepository>
594 <url>dav:${docs.base.url}/${docs.hc.folder}/${project.version}</url>
596 </distributionManagement>
599 <!-- Using only ODL stable releases -->
602 <enabled>true</enabled>
603 <updatePolicy>never</updatePolicy>
606 <enabled>false</enabled>
608 <id>opendaylight-mirror</id>
609 <name>opendaylight-mirror</name>
610 <url>${odl.nexusproxy}/repositories/public/</url>