1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6 <modelVersion>4.0.0</modelVersion>
7 <packaging>pom</packaging>
8 <groupId>org.onap.ccsdk.parent</groupId>
9 <artifactId>odlparent</artifactId>
10 <version>1.0.1-SNAPSHOT</version>
13 <groupId>org.opendaylight.odlparent</groupId>
14 <artifactId>odlparent</artifactId>
15 <version>2.0.5</version>
20 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <url>http://wiki.onap.org</url>
22 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
27 <url>https://jira.onap.org/</url>
32 <!--- properties from oparent -->
33 <maven.compiler.source>1.8</maven.compiler.source>
34 <maven.compiler.target>1.8</maven.compiler.target>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
38 <!-- sitePath may be overridden in the inheriting POM if desired -->
39 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40 <jacoco.version>0.7.7.201606060606</jacoco.version>
41 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
42 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
43 <!-- Default Sonar configuration -->
44 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
45 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
46 <!-- Note: This list should match jacoco-maven-plugin's exclusion
48 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
49 <!-- If following file exist, auto-generation of swagger.json will
51 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
52 <!-- If following file exist, auto-generation of sdk will be done -->
53 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
54 <!--- end of properties from oparent -->
56 <!-- ONAP repositories -->
57 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
58 <onap.nexus.port>443</onap.nexus.port>
59 <onap.nexus.protocol>https</onap.nexus.protocol>
60 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
61 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
62 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
63 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
64 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
65 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
68 <!-- OpenDaylight repositories -->
69 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
70 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
73 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
74 <java.version.source>1.8</java.version.source>
75 <java.version.target>1.8</java.version.target>
76 <bundle.plugin.version>2.5.0</bundle.plugin.version>
77 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
78 <features.file>features.xml</features.file>
79 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
80 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
81 <checkstyle.skip>true</checkstyle.skip>
84 <sonar.language>java</sonar.language>
85 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
86 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
87 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
88 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
89 <sonar.projectVersion>${project.version}</sonar.projectVersion>
94 <!-- CCSDK component versions -->
95 <ccsdk.sli.core.version>0.2.1-SNAPSHOT</ccsdk.sli.core.version>
96 <ccsdk.sli.adaptors.version>0.2.1-SNAPSHOT</ccsdk.sli.adaptors.version>
97 <ccsdk.sli.northbound.version>0.2.1-SNAPSHOT</ccsdk.sli.northbound.version>
98 <ccsdk.sli.plugins.version>0.2.1-SNAPSHOT</ccsdk.sli.plugins.version>
99 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
100 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
101 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
102 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
103 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
105 <!-- Support libraries used by OpenDaylight -->
106 <!-- Used by aaa, vtn -->
107 <commons.codec.version>1.10</commons.codec.version>
108 <!-- Used by netconf, ovsdb -->
109 <commons.lang3.version>3.6</commons.lang3.version>
110 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
111 <commons.lang.version>2.6</commons.lang.version>
112 <!-- Used by neutron; see also controller, vtn -->
113 <commons.net.version>3.6</commons.net.version>
114 <!-- Used by neutron -->
115 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
117 <felix.dependencymanager.version>4.3.0</felix.dependencymanager.version>
118 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
119 <gson.version>2.7</gson.version>
120 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
121 <guava.version>22.0</guava.version>
122 <!-- Used by lispflowmapping, sxp, vtn/manager -->
123 <hamcrest.version>1.3</hamcrest.version>
124 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
125 integration/distribution, snmp4sdn, toolkit, ttp -->
126 <jackson.version>2.3.2</jackson.version>
127 <!-- Used by snmp4sdn, yangtools -->
128 <javassist.version>3.20.0-GA</javassist.version>
130 <!-- FIXME remove all dependencies for jersey 1.17 after migration
132 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity,
133 defense4all, snmp4sdn, toolkit -->
134 <jersey.version>1.17</jersey.version>
136 <jersey.client.version>1.17</jersey.client.version>
138 <!-- New packages for jersey migration 1.17 to 2.8 -->
139 <!-- appache.geronimo.bundle for DocGen -->
140 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
141 <org.json.version>20131018</org.json.version>
144 <jettison.version>1.3.7</jettison.version>
145 <!-- Used by persistence -->
146 <jsr305.api.version>3.0.0</jsr305.api.version>
147 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
148 is fixed (either in PowerMock or with a new JUnit release) -->
149 <!-- Used everywhere -->
150 <junit.version>4.11</junit.version>
151 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity,
153 <logback.version>1.2.2</logback.version>
154 <!-- Used by nic, sfc, sxp, tsdr -->
155 <mockito.version>1.10.19</mockito.version>
156 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
157 <netty.version>4.1.8.Final</netty.version>
158 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also
159 affinity, toolkit -->
160 <slf4j.version>1.7.21</slf4j.version>
161 <!-- Used in integration/distribution; see also affinity, snmp4sdn,
162 toolkit, tsdr, ttp -->
163 <spring.version>3.2.17.RELEASE</spring.version>
167 <!-- Extra support libraries used by SDN-C -->
168 <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
169 <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
170 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
171 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
172 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
173 <antlr.version>4.5.1</antlr.version>
174 <mysql.connector.version>5.1.39</mysql.connector.version>
175 <mariadb.connector.version>2.1.1</mariadb.connector.version>
176 <h2database.version>1.4.186</h2database.version>
178 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
182 <!-- Profiles from ONAP oparent -->
184 <id>generate-json</id>
187 <exists>${swagger-properties}</exists>
190 <name>swagger-sdk.generate-json</name>
196 <groupId>org.codehaus.mojo</groupId>
197 <artifactId>properties-maven-plugin</artifactId>
198 <version>1.0.0</version>
201 <phase>initialize</phase>
203 <goal>read-project-properties</goal>
207 <file>${basedir}/src/main/resources/swagger.properties</file>
214 <groupId>com.github.kongchen</groupId>
215 <artifactId>swagger-maven-plugin</artifactId>
216 <version>3.1.4</version>
220 <locations>${api-rest-package}</locations>
221 <schemes>http,https</schemes>
222 <host>${api-host-ip}:${api-host-port}</host>
223 <basePath>${api-base-path}</basePath>
225 <title>${api-title}</title>
226 <version>${api-version}</version>
227 <description>${api-description}</description>
229 <name>${api-license}</name>
232 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
238 <phase>compile</phase>
240 <goal>generate</goal>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-install-plugin</artifactId>
248 <version>2.3.1</version>
251 <id>install-file-id</id>
252 <phase>install</phase>
254 <goal>install-file</goal>
257 <file>${basedir}/src/main/resources/swagger.json</file>
258 <groupId>${project.groupId}</groupId>
259 <artifactId>${project.artifactId}-swagger-schema</artifactId>
260 <version>${project.version}</version>
261 <packaging>json</packaging>
270 <id>generate-sdk</id>
273 <exists>${swagger-json}</exists>
276 <name>swagger-sdk.generate-java-sdk</name>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-antrun-plugin</artifactId>
284 <version>1.8</version>
287 <phase>initialize</phase>
288 <id>ant-create-script</id>
290 <exportAntProperties>true</exportAntProperties>
294 resource="net/sf/antcontrib/antlib.xml"
295 classpathref="maven.plugin.classpath" />
296 <condition property="is_windows"
298 <os family="windows" />
300 <condition property="isLinux"
305 <equals arg1="${is_windows}"
309 name="swagger.sdk.script.file"
310 value="generated-source-script.bat" />
312 file="${project.build.directory}${file.separator}generated-source-script.bat"
314 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
316 file="${project.build.directory}${file.separator}generated-source-script.bat"
318 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
322 name="swagger.sdk.script.file"
323 value="generated-source-script.sh" />
325 file="${project.build.directory}${file.separator}generated-source-script.sh"
327 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
329 file="${project.build.directory}${file.separator}generated-source-script.sh"
331 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
333 file="${project.build.directory}${file.separator}generated-source-script.sh"
346 <groupId>ant-contrib</groupId>
347 <artifactId>ant-contrib</artifactId>
348 <version>1.0b3</version>
351 <artifactId>ant</artifactId>
352 <groupId>ant</groupId>
359 <groupId>io.swagger</groupId>
360 <artifactId>swagger-codegen-maven-plugin</artifactId>
361 <version>2.2.1</version>
365 <goal>generate</goal>
368 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
369 <output>${project.build.directory}/generated-sources</output>
370 <language>java</language>
372 <dateLibrary>joda</dateLibrary>
374 <library>jersey2</library>
375 <groupId>${project.groupId}</groupId>
376 <artifactId>${project.artifactId}-java-sdk</artifactId>
377 <artifactVersion>${project.version}</artifactVersion>
378 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
379 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
380 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
386 <artifactId>exec-maven-plugin</artifactId>
387 <groupId>org.codehaus.mojo</groupId>
388 <version>1.5.0</version>
391 <id>swagger-generate-sources</id>
392 <phase>generate-sources</phase>
397 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-clean-plugin</artifactId>
405 <version>3.0.0</version>
408 <id>clean-generated-files</id>
409 <phase>generate-sources</phase>
416 <directory>${project.build.directory}/generated-sources</directory>
427 <groupId>org.onap.msb.swagger-sdk</groupId>
428 <artifactId>swagger-sdk</artifactId>
429 <version>1.0.0</version>
434 <!-- End of profiles from ONAP oparent -->
439 <dependencyManagement>
442 <groupId>org.onap.sdnc.core</groupId>
443 <artifactId>sli-common</artifactId>
444 <version>${sdnctl.sli.version}</version>
448 <groupId>org.onap.sdnc.core</groupId>
449 <artifactId>sli-provider</artifactId>
450 <version>${sdnctl.sli.version}</version>
454 <groupId>org.onap.sdnc.core</groupId>
455 <artifactId>aai-service-provider</artifactId>
456 <version>${sdnctl.aai.service.version}</version>
460 <groupId>org.onap.sdnc.core</groupId>
461 <artifactId>dblib-provider</artifactId>
462 <version>${sdnctl.dblib.version}</version>
466 </dependencyManagement>
472 <artifactId>maven-javadoc-plugin</artifactId>
473 <version>2.10.4</version>
475 <failOnError>false</failOnError>
476 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
478 <groupId>org.umlgraph</groupId>
479 <artifactId>umlgraph</artifactId>
480 <version>5.6</version>
482 <additionalparam>-views</additionalparam>
483 <useStandardDocletOptions>true</useStandardDocletOptions>
484 <excludePackageNames>org.opendaylight.*</excludePackageNames>
485 <additionalDependencies>
486 <additionalDependency>
487 <groupId>org.slf4j</groupId>
488 <artifactId>slf4j-api</artifactId>
489 <version>${slf4j.version}</version>
490 </additionalDependency>
491 <additionalDependency>
492 <groupId>org.antlr</groupId>
493 <artifactId>antlr4</artifactId>
494 <version>${antlr.version}</version>
495 </additionalDependency>
496 <additionalDependency>
497 <groupId>org.antlr</groupId>
498 <artifactId>antlr4-runtime</artifactId>
499 <version>${antlr.version}</version>
500 </additionalDependency>
502 <additionalDependency>
503 <groupId>com.sun.jersey</groupId>
504 <artifactId>jersey-client</artifactId>
505 <version>${jersey.json.version}</version>
506 </additionalDependency>
507 <additionalDependency>
508 <groupId>com.sun.jersey</groupId>
509 <artifactId>jersey-core</artifactId>
510 <version>${jersey.json.version}</version>
511 </additionalDependency>
512 <additionalDependency>
513 <groupId>org.apache.httpcomponents</groupId>
514 <artifactId>httpcore-osgi</artifactId>
515 <version>${apache.httpcomponents.core.version}</version>
516 </additionalDependency>
517 <additionalDependency>
518 <groupId>org.apache.httpcomponents</groupId>
519 <artifactId>httpclient-osgi</artifactId>
520 <version>${apache.httpcomponents.client.version}</version>
521 </additionalDependency>
522 <additionalDependency>
523 <groupId>com.fasterxml.jackson.core</groupId>
524 <artifactId>jackson-databind</artifactId>
525 <version>${fasterxml.jackson.version}</version>
526 </additionalDependency>
527 <additionalDependency>
528 <groupId>com.fasterxml.jackson.core</groupId>
529 <artifactId>jackson-annotations</artifactId>
530 <version>${fasterxml.jackson.version}</version>
531 </additionalDependency>
532 <additionalDependency>
533 <groupId>com.fasterxml.jackson.core</groupId>
534 <artifactId>jackson-core</artifactId>
535 <version>${fasterxml.jackson.version}</version>
536 </additionalDependency>
537 <additionalDependency>
538 <groupId>commons-lang</groupId>
539 <artifactId>commons-lang</artifactId>
540 <version>${commons.lang.version}</version>
541 </additionalDependency>
542 </additionalDependencies>
547 <report>javadoc-no-fork</report>
548 <report>test-javadoc-no-fork</report>
554 <report>aggregate</report>
555 <report>test-aggregate</report>
561 <groupId>org.apache.maven.plugins</groupId>
562 <artifactId>maven-jxr-plugin</artifactId>
563 <version>2.3</version>
568 <report>aggregate</report>
569 <report>test-aggregate</report>
576 <artifactId>maven-surefire-plugin</artifactId>
577 <version>2.17</version>
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-changelog-plugin</artifactId>
582 <version>2.3</version>
591 <report>changelog</report>
592 <report>file-activity</report>
598 <groupId>org.codehaus.mojo</groupId>
599 <artifactId>taglist-maven-plugin</artifactId>
600 <version>2.4</version>
609 <url>${onap.nexus.public-url}</url>
611 <enabled>true</enabled>
614 <enabled>true</enabled>
618 <id>onap-snapshot</id>
619 <url>${onap.nexus.snapshot-url}</url>
621 <enabled>false</enabled>
624 <enabled>true</enabled>
628 <id>opendaylight-mirror</id>
629 <name>opendaylight-mirror</name>
630 <url>${opendaylight.nexus.public-url}</url>
632 <enabled>true</enabled>
633 <updatePolicy>never</updatePolicy>
636 <enabled>false</enabled>
640 <id>opendaylight-snapshot</id>
641 <name>opendaylight-snapshot</name>
642 <url>${opendaylight.nexus.snapshot-url}</url>
644 <enabled>false</enabled>
647 <enabled>true</enabled>
650 <!-- Black Duck plugin dependencies -->
653 <name>JCenter Repository</name>
654 <url>http://jcenter.bintray.com</url>
659 <name>Restlet Repository</name>
660 <url>http://maven.restlet.com</url>
662 </pluginRepositories>
668 <url>https://nexus.onap.org/content/groups/public</url>
670 <enabled>true</enabled>
671 <updatePolicy>never</updatePolicy>
674 <enabled>true</enabled>
675 <updatePolicy>always</updatePolicy>
679 <id>onap-staging</id>
680 <url>https://nexus.onap.org/content/groups/staging</url>
682 <enabled>true</enabled>
683 <updatePolicy>never</updatePolicy>
686 <enabled>true</enabled>
687 <updatePolicy>always</updatePolicy>
691 <id>ecomp-release</id>
692 <name>onap-repository-releases</name>
693 <url>https://nexus.onap.org/content/repositories/releases</url>
695 <enabled>true</enabled>
696 <updatePolicy>never</updatePolicy>
699 <enabled>false</enabled>
703 <id>ecomp-snapshot</id>
704 <name>onap-repository-snapshots</name>
705 <url>https://nexus.onap.org/content/repositories/snapshots</url>
707 <enabled>false</enabled>
710 <enabled>true</enabled>
714 <id>opendaylight-mirror</id>
715 <name>opendaylight-mirror</name>
716 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
718 <enabled>true</enabled>
719 <updatePolicy>never</updatePolicy>
722 <enabled>false</enabled>
726 <id>opendaylight-snapshot</id>
727 <name>opendaylight-snapshot</name>
728 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
730 <enabled>false</enabled>
733 <enabled>true</enabled>
739 <distributionManagement>
741 <id>ecomp-releases</id>
742 <url>http://nexus.onap.org/content/repositories/releases</url>
745 <id>ecomp-snapshots</id>
746 <url>http://nexus.onap.org/content/repositories/snapshots</url>
747 </snapshotRepository>
748 </distributionManagement>
754 <!-- Plugins from ONAP oparent -->
756 <groupId>org.apache.maven.plugins</groupId>
757 <artifactId>maven-deploy-plugin</artifactId>
758 <!-- This version supports the "deployAtEnd" parameter -->
759 <version>2.8</version>
766 <groupId>org.apache.maven.plugins</groupId>
767 <artifactId>maven-site-plugin</artifactId>
768 <version>3.6</version>
771 <groupId>org.apache.maven.wagon</groupId>
772 <artifactId>wagon-webdav-jackrabbit</artifactId>
773 <version>2.10</version>
776 <groupId>org.apache.maven.doxia</groupId>
777 <artifactId>doxia-core</artifactId>
778 <version>1.7</version>
781 <groupId>org.apache.maven.doxia</groupId>
782 <artifactId>doxia-sink-api</artifactId>
783 <version>1.7</version>
786 <groupId>org.apache.maven.doxia</groupId>
787 <artifactId>doxia-logging-api</artifactId>
788 <version>1.7</version>
793 <id>attach-descriptor</id>
795 <goal>attach-descriptor</goal>
801 <artifactId>maven-checkstyle-plugin</artifactId>
802 <version>2.17</version>
805 <groupId>org.onap.oparent</groupId>
806 <artifactId>checkstyle</artifactId>
807 <version>1.1.0-SNAPSHOT</version>
812 <id>check-license</id>
816 <phase>process-sources</phase>
818 <configLocation>onap-checkstyle/check-license.xml</configLocation>
819 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
820 <includeResources>false</includeResources>
821 <includeTestSourceDirectory>true</includeTestSourceDirectory>
822 <includeTestResources>false</includeTestResources>
823 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
826 <failsOnError>false</failsOnError>
827 <consoleOutput>true</consoleOutput>
835 <phase>process-sources</phase>
837 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
838 with minor changes -->
839 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
840 <!-- <sourceDirectory> is needed so that
841 checkstyle ignores the generated sources directory -->
842 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
843 <includeResources>true</includeResources>
844 <includeTestSourceDirectory>true</includeTestSourceDirectory>
845 <includeTestResources>true</includeTestResources>
848 <failsOnError>false</failsOnError>
849 <consoleOutput>true</consoleOutput>
855 <groupId>org.jacoco</groupId>
856 <artifactId>jacoco-maven-plugin</artifactId>
857 <version>${jacoco.version}</version>
859 <!-- Note: This exclusion list should match <sonar.exclusions>
862 <exclude>**/gen/**</exclude>
863 <exclude>**/generated-sources/**</exclude>
864 <exclude>**/yang-gen/**</exclude>
865 <exclude>**/pax/**</exclude>
869 <!-- Prepares the property pointing to the JaCoCo
870 runtime agent which is passed as VM argument when Maven the Surefire plugin
873 <id>pre-unit-test</id>
875 <goal>prepare-agent</goal>
878 <!-- Sets the path to the file which contains
879 the execution data. -->
880 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
881 <!-- Sets the name of the property containing
882 the settings for JaCoCo runtime agent. -->
883 <propertyName>surefireArgLine</propertyName>
886 <!-- Ensures that the code coverage report for unit
887 tests is created after unit tests have been run. -->
889 <id>post-unit-test</id>
895 <!-- Sets the path to the file which contains
896 the execution data. -->
897 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
898 <!-- Sets the output directory for the code
900 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
904 <id>pre-integration-test</id>
905 <phase>pre-integration-test</phase>
907 <goal>prepare-agent</goal>
910 <!-- Sets the path to the file which contains
911 the execution data. -->
912 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
913 <!-- Sets the name of the property containing
914 the settings for JaCoCo runtime agent. -->
915 <propertyName>failsafeArgLine</propertyName>
918 <!-- Ensures that the code coverage report for integration
919 tests after integration tests have been run. -->
921 <id>post-integration-test</id>
922 <phase>post-integration-test</phase>
927 <!-- Sets the path to the file which contains
928 the execution data. -->
929 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
930 <!-- Sets the output directory for the code
932 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
938 <groupId>org.apache.maven.plugins</groupId>
939 <artifactId>maven-surefire-plugin</artifactId>
940 <version>2.19.1</version>
942 <!-- Sets the VM argument line used when unit tests
944 <argLine>${surefireArgLine}</argLine>
945 <!-- Excludes integration tests when unit tests are
948 <exclude>**/IT*.java</exclude>
953 <groupId>org.apache.maven.plugins</groupId>
954 <artifactId>maven-failsafe-plugin</artifactId>
955 <version>2.19.1</version>
957 <!-- Ensures that both integration-test and verify
958 goals of the Failsafe Maven plugin are executed. -->
960 <id>integration-tests</id>
962 <goal>integration-test</goal>
966 <!-- Sets the VM argument line used when
967 integration tests are run. -->
968 <argLine>${failsafeArgLine}</argLine>
974 <groupId>org.apache.maven.plugins</groupId>
975 <artifactId>maven-compiler-plugin</artifactId>
976 <version>${maven.compile.plugin.version}</version>
978 <source>${java.version.source}</source>
979 <target>${java.version.target}</target>
983 <groupId>org.sonarsource.scanner.maven</groupId>
984 <artifactId>sonar-maven-plugin</artifactId>
985 <version>3.3.0.603</version>
988 <!-- End of plugins from ONAP oparent -->
991 <groupId>org.apache.maven.plugins</groupId>
992 <artifactId>maven-javadoc-plugin</artifactId>
993 <version>2.10</version>
995 <additionalDependencies>
996 <additionalDependency>
997 <groupId>org.slf4j</groupId>
998 <artifactId>slf4j-api</artifactId>
999 <version>${slf4j.version}</version>
1000 </additionalDependency>
1001 <additionalDependency>
1002 <groupId>org.antlr</groupId>
1003 <artifactId>antlr4</artifactId>
1004 <version>${antlr.version}</version>
1005 </additionalDependency>
1006 <additionalDependency>
1007 <groupId>org.antlr</groupId>
1008 <artifactId>antlr4-runtime</artifactId>
1009 <version>${antlr.version}</version>
1010 </additionalDependency>
1012 <additionalDependency>
1013 <groupId>com.sun.jersey</groupId>
1014 <artifactId>jersey-client</artifactId>
1015 <version>${jersey.client.version}</version>
1016 </additionalDependency>
1017 <additionalDependency>
1018 <groupId>com.sun.jersey</groupId>
1019 <artifactId>jersey-core</artifactId>
1020 <version>${jersey.version}</version>
1021 </additionalDependency>
1022 <additionalDependency>
1023 <groupId>org.apache.httpcomponents</groupId>
1024 <artifactId>httpcore-osgi</artifactId>
1025 <version>${apache.httpcomponents.core.version}</version>
1026 </additionalDependency>
1027 <additionalDependency>
1028 <groupId>org.apache.httpcomponents</groupId>
1029 <artifactId>httpclient-osgi</artifactId>
1030 <version>${apache.httpcomponents.client.version}</version>
1031 </additionalDependency>
1032 <additionalDependency>
1033 <groupId>com.fasterxml.jackson.core</groupId>
1034 <artifactId>jackson-databind</artifactId>
1035 <version>${jackson.version}</version>
1036 </additionalDependency>
1037 <additionalDependency>
1038 <groupId>com.fasterxml.jackson.core</groupId>
1039 <artifactId>jackson-annotations</artifactId>
1040 <version>${jackson.version}</version>
1041 </additionalDependency>
1042 <additionalDependency>
1043 <groupId>com.fasterxml.jackson.core</groupId>
1044 <artifactId>jackson-core</artifactId>
1045 <version>${jackson.version}</version>
1046 </additionalDependency>
1047 <additionalDependency>
1048 <groupId>commons-lang</groupId>
1049 <artifactId>commons-lang</artifactId>
1050 <version>${commons.lang.version}</version>
1051 </additionalDependency>
1052 </additionalDependencies>
1059 <goal>aggregate</goal>
1067 <artifactId>maven-source-plugin</artifactId>
1068 <version>2.1.1</version>
1071 <id>bundle-sources</id>
1072 <phase>package</phase>
1074 <!-- produce source artifact for main project
1076 <goal>jar-no-fork</goal>
1078 <!-- produce source artifact for project
1080 <goal>test-jar-no-fork</goal>
1092 <!-- Plugins from ONAP oparent -->
1094 <artifactId>maven-checkstyle-plugin</artifactId>
1097 <groupId>org.codehaus.mojo</groupId>
1098 <artifactId>build-helper-maven-plugin</artifactId>
1099 <version>1.12</version>
1101 <!-- Jacoco / Sonar -->
1103 <groupId>org.jacoco</groupId>
1104 <artifactId>jacoco-maven-plugin</artifactId>
1107 <groupId>org.apache.maven.plugins</groupId>
1108 <artifactId>maven-surefire-plugin</artifactId>
1111 <groupId>org.apache.maven.plugins</groupId>
1112 <artifactId>maven-failsafe-plugin</artifactId>
1115 <!-- End of plugins from ONAP oparent -->
1117 <groupId>org.codehaus.mojo</groupId>
1118 <artifactId>properties-maven-plugin</artifactId>
1119 <version>1.0.0</version>
1123 <goal>set-system-properties</goal>
1128 <name>maven.wagon.http.ssl.allowall</name>
1129 <value>${ssl.allowall}</value>
1132 <name>maven.wagon.http.ssl.insecure</name>
1133 <value>${ssl.insecure}</value>
1141 <groupId>org.sonatype.plugins</groupId>
1142 <artifactId>nexus-staging-maven-plugin</artifactId>
1143 <version>1.6.7</version>
1144 <extensions>true</extensions>
1146 <nexusUrl>${onap.nexus.url}</nexusUrl>
1147 <stagingProfileId>176c31dfe190a</stagingProfileId>
1148 <serverId>ecomp-staging</serverId>
1152 <groupId>org.codehaus.mojo</groupId>
1153 <artifactId>versions-maven-plugin</artifactId>
1154 <version>2.5</version>
1156 <processAllModules>true</processAllModules>
1160 <artifactId>maven-scm-plugin</artifactId>
1161 <version>1.8.1</version>
1163 <tag>${project.artifactId}-${project.version}</tag>