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.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
88 <sonar.projectVersion>${project.version}</sonar.projectVersion>
93 <!-- CCSDK component versions -->
94 <ccsdk.sli.core.version>0.2.1-SNAPSHOT</ccsdk.sli.core.version>
95 <ccsdk.sli.adaptors.version>0.2.1-SNAPSHOT</ccsdk.sli.adaptors.version>
96 <ccsdk.sli.northbound.version>0.2.1-SNAPSHOT</ccsdk.sli.northbound.version>
97 <ccsdk.sli.plugins.version>0.2.1-SNAPSHOT</ccsdk.sli.plugins.version>
98 <ccsdl.distribution.version>0.2.1-SNAPSHOT</ccsdl.distribution.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>
106 <!-- Support libraries used by OpenDaylight -->
107 <odl.mdsal.version>1.6.1</odl.mdsal.version>
108 <!-- Used by aaa, vtn -->
109 <commons.codec.version>1.10</commons.codec.version>
110 <!-- Used by netconf, ovsdb -->
111 <commons.lang3.version>3.6</commons.lang3.version>
112 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
113 <commons.lang.version>2.6</commons.lang.version>
114 <!-- Used by neutron; see also controller, vtn -->
115 <commons.net.version>3.6</commons.net.version>
116 <!-- Used by neutron -->
117 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
119 <felix.dependencymanager.version>4.3.0</felix.dependencymanager.version>
120 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
121 <gson.version>2.7</gson.version>
122 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
123 <guava.version>22.0</guava.version>
124 <!-- Used by lispflowmapping, sxp, vtn/manager -->
125 <hamcrest.version>1.3</hamcrest.version>
126 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
127 integration/distribution, snmp4sdn, toolkit, ttp -->
128 <jackson.version>2.3.2</jackson.version>
129 <!-- Used by snmp4sdn, yangtools -->
130 <javassist.version>3.20.0-GA</javassist.version>
132 <!-- FIXME remove all dependencies for jersey 1.17 after migration
134 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity,
135 defense4all, snmp4sdn, toolkit -->
136 <jersey.version>1.17</jersey.version>
138 <jersey.client.version>1.17</jersey.client.version>
140 <!-- New packages for jersey migration 1.17 to 2.8 -->
141 <!-- appache.geronimo.bundle for DocGen -->
142 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
143 <org.json.version>20131018</org.json.version>
146 <jettison.version>1.3.7</jettison.version>
147 <!-- Used by persistence -->
148 <jsr305.api.version>3.0.0</jsr305.api.version>
149 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
150 is fixed (either in PowerMock or with a new JUnit release) -->
151 <!-- Used everywhere -->
152 <junit.version>4.11</junit.version>
153 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity,
155 <logback.version>1.2.2</logback.version>
156 <!-- Used by nic, sfc, sxp, tsdr -->
157 <mockito.version>1.10.19</mockito.version>
158 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
159 <netty.version>4.1.8.Final</netty.version>
160 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also
161 affinity, toolkit -->
162 <slf4j.version>1.7.21</slf4j.version>
163 <!-- Used in integration/distribution; see also affinity, snmp4sdn,
164 toolkit, tsdr, ttp -->
165 <spring.version>5.0.4.RELEASE</spring.version>
169 <!-- Extra support libraries used by SDN-C -->
170 <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
171 <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
172 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
173 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
174 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
175 <antlr.version>4.7</antlr.version>
176 <mysql.connector.version>5.1.39</mysql.connector.version>
177 <mariadb.connector.version>2.1.1</mariadb.connector.version>
178 <h2database.version>1.4.186</h2database.version>
180 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
184 <!-- Profiles from ONAP oparent -->
186 <id>generate-json</id>
189 <exists>${swagger-properties}</exists>
192 <name>swagger-sdk.generate-json</name>
198 <groupId>org.codehaus.mojo</groupId>
199 <artifactId>properties-maven-plugin</artifactId>
200 <version>1.0.0</version>
203 <phase>initialize</phase>
205 <goal>read-project-properties</goal>
209 <file>${basedir}/src/main/resources/swagger.properties</file>
216 <groupId>com.github.kongchen</groupId>
217 <artifactId>swagger-maven-plugin</artifactId>
218 <version>3.1.4</version>
222 <locations>${api-rest-package}</locations>
223 <schemes>http,https</schemes>
224 <host>${api-host-ip}:${api-host-port}</host>
225 <basePath>${api-base-path}</basePath>
227 <title>${api-title}</title>
228 <version>${api-version}</version>
229 <description>${api-description}</description>
231 <name>${api-license}</name>
234 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
240 <phase>compile</phase>
242 <goal>generate</goal>
248 <groupId>org.apache.maven.plugins</groupId>
249 <artifactId>maven-install-plugin</artifactId>
250 <version>2.3.1</version>
253 <id>install-file-id</id>
254 <phase>install</phase>
256 <goal>install-file</goal>
259 <file>${basedir}/src/main/resources/swagger.json</file>
260 <groupId>${project.groupId}</groupId>
261 <artifactId>${project.artifactId}-swagger-schema</artifactId>
262 <version>${project.version}</version>
263 <packaging>json</packaging>
272 <id>generate-sdk</id>
275 <exists>${swagger-json}</exists>
278 <name>swagger-sdk.generate-java-sdk</name>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-antrun-plugin</artifactId>
286 <version>1.8</version>
289 <phase>initialize</phase>
290 <id>ant-create-script</id>
292 <exportAntProperties>true</exportAntProperties>
296 resource="net/sf/antcontrib/antlib.xml"
297 classpathref="maven.plugin.classpath" />
298 <condition property="is_windows"
300 <os family="windows" />
302 <condition property="isLinux"
307 <equals arg1="${is_windows}"
311 name="swagger.sdk.script.file"
312 value="generated-source-script.bat" />
314 file="${project.build.directory}${file.separator}generated-source-script.bat"
316 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
318 file="${project.build.directory}${file.separator}generated-source-script.bat"
320 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
324 name="swagger.sdk.script.file"
325 value="generated-source-script.sh" />
327 file="${project.build.directory}${file.separator}generated-source-script.sh"
329 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
331 file="${project.build.directory}${file.separator}generated-source-script.sh"
333 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
335 file="${project.build.directory}${file.separator}generated-source-script.sh"
348 <groupId>ant-contrib</groupId>
349 <artifactId>ant-contrib</artifactId>
350 <version>1.0b3</version>
353 <artifactId>ant</artifactId>
354 <groupId>ant</groupId>
361 <groupId>io.swagger</groupId>
362 <artifactId>swagger-codegen-maven-plugin</artifactId>
363 <version>2.2.1</version>
367 <goal>generate</goal>
370 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
371 <output>${project.build.directory}/generated-sources</output>
372 <language>java</language>
374 <dateLibrary>joda</dateLibrary>
376 <library>jersey2</library>
377 <groupId>${project.groupId}</groupId>
378 <artifactId>${project.artifactId}-java-sdk</artifactId>
379 <artifactVersion>${project.version}</artifactVersion>
380 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
381 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
382 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
388 <artifactId>exec-maven-plugin</artifactId>
389 <groupId>org.codehaus.mojo</groupId>
390 <version>1.5.0</version>
393 <id>swagger-generate-sources</id>
394 <phase>generate-sources</phase>
399 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-clean-plugin</artifactId>
407 <version>3.0.0</version>
410 <id>clean-generated-files</id>
411 <phase>generate-sources</phase>
418 <directory>${project.build.directory}/generated-sources</directory>
429 <groupId>org.onap.msb.swagger-sdk</groupId>
430 <artifactId>swagger-sdk</artifactId>
431 <version>1.0.0</version>
436 <!-- End of profiles from ONAP oparent -->
441 <dependencyManagement>
444 <groupId>org.onap.sdnc.core</groupId>
445 <artifactId>sli-common</artifactId>
446 <version>${sdnctl.sli.version}</version>
450 <groupId>org.onap.sdnc.core</groupId>
451 <artifactId>sli-provider</artifactId>
452 <version>${sdnctl.sli.version}</version>
456 <groupId>org.onap.sdnc.core</groupId>
457 <artifactId>aai-service-provider</artifactId>
458 <version>${sdnctl.aai.service.version}</version>
462 <groupId>org.onap.sdnc.core</groupId>
463 <artifactId>dblib-provider</artifactId>
464 <version>${sdnctl.dblib.version}</version>
468 </dependencyManagement>
474 <artifactId>maven-javadoc-plugin</artifactId>
475 <version>2.10.4</version>
477 <failOnError>false</failOnError>
478 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
480 <groupId>org.umlgraph</groupId>
481 <artifactId>umlgraph</artifactId>
482 <version>5.6</version>
484 <additionalparam>-views</additionalparam>
485 <useStandardDocletOptions>true</useStandardDocletOptions>
486 <excludePackageNames>org.opendaylight.*</excludePackageNames>
487 <additionalDependencies>
488 <additionalDependency>
489 <groupId>org.slf4j</groupId>
490 <artifactId>slf4j-api</artifactId>
491 <version>${slf4j.version}</version>
492 </additionalDependency>
493 <additionalDependency>
494 <groupId>org.antlr</groupId>
495 <artifactId>antlr4</artifactId>
496 <version>${antlr.version}</version>
497 </additionalDependency>
498 <additionalDependency>
499 <groupId>org.antlr</groupId>
500 <artifactId>antlr4-runtime</artifactId>
501 <version>${antlr.version}</version>
502 </additionalDependency>
504 <additionalDependency>
505 <groupId>com.sun.jersey</groupId>
506 <artifactId>jersey-client</artifactId>
507 <version>${jersey.json.version}</version>
508 </additionalDependency>
509 <additionalDependency>
510 <groupId>com.sun.jersey</groupId>
511 <artifactId>jersey-core</artifactId>
512 <version>${jersey.json.version}</version>
513 </additionalDependency>
514 <additionalDependency>
515 <groupId>org.apache.httpcomponents</groupId>
516 <artifactId>httpcore-osgi</artifactId>
517 <version>${apache.httpcomponents.core.version}</version>
518 </additionalDependency>
519 <additionalDependency>
520 <groupId>org.apache.httpcomponents</groupId>
521 <artifactId>httpclient-osgi</artifactId>
522 <version>${apache.httpcomponents.client.version}</version>
523 </additionalDependency>
524 <additionalDependency>
525 <groupId>com.fasterxml.jackson.core</groupId>
526 <artifactId>jackson-databind</artifactId>
527 <version>${fasterxml.jackson.version}</version>
528 </additionalDependency>
529 <additionalDependency>
530 <groupId>com.fasterxml.jackson.core</groupId>
531 <artifactId>jackson-annotations</artifactId>
532 <version>${fasterxml.jackson.version}</version>
533 </additionalDependency>
534 <additionalDependency>
535 <groupId>com.fasterxml.jackson.core</groupId>
536 <artifactId>jackson-core</artifactId>
537 <version>${fasterxml.jackson.version}</version>
538 </additionalDependency>
539 <additionalDependency>
540 <groupId>commons-lang</groupId>
541 <artifactId>commons-lang</artifactId>
542 <version>${commons.lang.version}</version>
543 </additionalDependency>
544 </additionalDependencies>
549 <report>javadoc-no-fork</report>
550 <report>test-javadoc-no-fork</report>
556 <report>aggregate</report>
557 <report>test-aggregate</report>
563 <groupId>org.apache.maven.plugins</groupId>
564 <artifactId>maven-jxr-plugin</artifactId>
565 <version>2.3</version>
570 <report>aggregate</report>
571 <report>test-aggregate</report>
578 <artifactId>maven-surefire-plugin</artifactId>
579 <version>2.17</version>
582 <groupId>org.apache.maven.plugins</groupId>
583 <artifactId>maven-changelog-plugin</artifactId>
584 <version>2.3</version>
593 <report>changelog</report>
594 <report>file-activity</report>
600 <groupId>org.codehaus.mojo</groupId>
601 <artifactId>taglist-maven-plugin</artifactId>
602 <version>2.4</version>
611 <url>${onap.nexus.public-url}</url>
613 <enabled>true</enabled>
616 <enabled>true</enabled>
620 <id>onap-snapshot</id>
621 <url>${onap.nexus.snapshot-url}</url>
623 <enabled>false</enabled>
626 <enabled>true</enabled>
630 <id>opendaylight-mirror</id>
631 <name>opendaylight-mirror</name>
632 <url>${opendaylight.nexus.public-url}</url>
634 <enabled>true</enabled>
635 <updatePolicy>never</updatePolicy>
638 <enabled>false</enabled>
642 <id>opendaylight-snapshot</id>
643 <name>opendaylight-snapshot</name>
644 <url>${opendaylight.nexus.snapshot-url}</url>
646 <enabled>false</enabled>
649 <enabled>true</enabled>
652 <!-- Black Duck plugin dependencies -->
655 <name>JCenter Repository</name>
656 <url>http://jcenter.bintray.com</url>
661 <name>Restlet Repository</name>
662 <url>http://maven.restlet.com</url>
664 </pluginRepositories>
670 <url>https://nexus.onap.org/content/groups/public</url>
672 <enabled>true</enabled>
673 <updatePolicy>never</updatePolicy>
676 <enabled>true</enabled>
677 <updatePolicy>always</updatePolicy>
681 <id>onap-staging</id>
682 <url>https://nexus.onap.org/content/groups/staging</url>
684 <enabled>true</enabled>
685 <updatePolicy>never</updatePolicy>
688 <enabled>true</enabled>
689 <updatePolicy>always</updatePolicy>
693 <id>ecomp-release</id>
694 <name>onap-repository-releases</name>
695 <url>https://nexus.onap.org/content/repositories/releases</url>
697 <enabled>true</enabled>
698 <updatePolicy>never</updatePolicy>
701 <enabled>false</enabled>
705 <id>ecomp-snapshot</id>
706 <name>onap-repository-snapshots</name>
707 <url>https://nexus.onap.org/content/repositories/snapshots</url>
709 <enabled>false</enabled>
712 <enabled>true</enabled>
716 <id>opendaylight-mirror</id>
717 <name>opendaylight-mirror</name>
718 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
720 <enabled>true</enabled>
721 <updatePolicy>never</updatePolicy>
724 <enabled>false</enabled>
728 <id>opendaylight-snapshot</id>
729 <name>opendaylight-snapshot</name>
730 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
732 <enabled>false</enabled>
735 <enabled>true</enabled>
741 <distributionManagement>
743 <id>ecomp-releases</id>
744 <url>http://nexus.onap.org/content/repositories/releases</url>
747 <id>ecomp-snapshots</id>
748 <url>http://nexus.onap.org/content/repositories/snapshots</url>
749 </snapshotRepository>
750 </distributionManagement>
756 <!-- Plugins from ONAP oparent -->
758 <groupId>org.apache.maven.plugins</groupId>
759 <artifactId>maven-deploy-plugin</artifactId>
760 <!-- This version supports the "deployAtEnd" parameter -->
761 <version>2.8</version>
768 <groupId>org.apache.maven.plugins</groupId>
769 <artifactId>maven-site-plugin</artifactId>
770 <version>3.6</version>
773 <groupId>org.apache.maven.wagon</groupId>
774 <artifactId>wagon-webdav-jackrabbit</artifactId>
775 <version>2.10</version>
778 <groupId>org.apache.maven.doxia</groupId>
779 <artifactId>doxia-core</artifactId>
780 <version>1.7</version>
783 <groupId>org.apache.maven.doxia</groupId>
784 <artifactId>doxia-sink-api</artifactId>
785 <version>1.7</version>
788 <groupId>org.apache.maven.doxia</groupId>
789 <artifactId>doxia-logging-api</artifactId>
790 <version>1.7</version>
795 <id>attach-descriptor</id>
797 <goal>attach-descriptor</goal>
803 <artifactId>maven-checkstyle-plugin</artifactId>
804 <version>2.17</version>
807 <groupId>org.onap.oparent</groupId>
808 <artifactId>checkstyle</artifactId>
809 <version>1.1.0-SNAPSHOT</version>
814 <id>check-license</id>
818 <phase>process-sources</phase>
820 <configLocation>onap-checkstyle/check-license.xml</configLocation>
821 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
822 <includeResources>false</includeResources>
823 <includeTestSourceDirectory>true</includeTestSourceDirectory>
824 <includeTestResources>false</includeTestResources>
825 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
828 <failsOnError>false</failsOnError>
829 <consoleOutput>true</consoleOutput>
837 <phase>process-sources</phase>
839 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
840 with minor changes -->
841 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
842 <!-- <sourceDirectory> is needed so that
843 checkstyle ignores the generated sources directory -->
844 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
845 <includeResources>true</includeResources>
846 <includeTestSourceDirectory>true</includeTestSourceDirectory>
847 <includeTestResources>true</includeTestResources>
850 <failsOnError>false</failsOnError>
851 <consoleOutput>true</consoleOutput>
857 <groupId>org.jacoco</groupId>
858 <artifactId>jacoco-maven-plugin</artifactId>
859 <version>${jacoco.version}</version>
861 <!-- Note: This exclusion list should match <sonar.exclusions>
864 <exclude>**/gen/**</exclude>
865 <exclude>**/generated-sources/**</exclude>
866 <exclude>**/yang-gen/**</exclude>
867 <exclude>**/pax/**</exclude>
871 <!-- Prepares the property pointing to the JaCoCo
872 runtime agent which is passed as VM argument when Maven the Surefire plugin
875 <id>pre-unit-test</id>
877 <goal>prepare-agent</goal>
880 <!-- Sets the path to the file which contains
881 the execution data. -->
882 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
883 <!-- Sets the name of the property containing
884 the settings for JaCoCo runtime agent. -->
885 <propertyName>surefireArgLine</propertyName>
888 <!-- Ensures that the code coverage report for unit
889 tests is created after unit tests have been run. -->
891 <id>post-unit-test</id>
897 <!-- Sets the path to the file which contains
898 the execution data. -->
899 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
900 <!-- Sets the output directory for the code
902 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
906 <id>pre-integration-test</id>
907 <phase>pre-integration-test</phase>
909 <goal>prepare-agent</goal>
912 <!-- Sets the path to the file which contains
913 the execution data. -->
914 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
915 <!-- Sets the name of the property containing
916 the settings for JaCoCo runtime agent. -->
917 <propertyName>failsafeArgLine</propertyName>
920 <!-- Ensures that the code coverage report for integration
921 tests after integration tests have been run. -->
923 <id>post-integration-test</id>
924 <phase>post-integration-test</phase>
929 <!-- Sets the path to the file which contains
930 the execution data. -->
931 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
932 <!-- Sets the output directory for the code
934 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
940 <groupId>org.apache.maven.plugins</groupId>
941 <artifactId>maven-surefire-plugin</artifactId>
942 <version>2.19.1</version>
944 <!-- Sets the VM argument line used when unit tests
946 <argLine>${surefireArgLine}</argLine>
947 <!-- Excludes integration tests when unit tests are
950 <exclude>**/IT*.java</exclude>
955 <groupId>org.apache.maven.plugins</groupId>
956 <artifactId>maven-failsafe-plugin</artifactId>
957 <version>2.19.1</version>
959 <!-- Ensures that both integration-test and verify
960 goals of the Failsafe Maven plugin are executed. -->
962 <id>integration-tests</id>
964 <goal>integration-test</goal>
968 <!-- Sets the VM argument line used when
969 integration tests are run. -->
970 <argLine>${failsafeArgLine}</argLine>
976 <groupId>org.apache.maven.plugins</groupId>
977 <artifactId>maven-compiler-plugin</artifactId>
978 <version>${maven.compile.plugin.version}</version>
980 <source>${java.version.source}</source>
981 <target>${java.version.target}</target>
985 <groupId>org.sonarsource.scanner.maven</groupId>
986 <artifactId>sonar-maven-plugin</artifactId>
987 <version>3.3.0.603</version>
990 <!-- End of plugins from ONAP oparent -->
993 <groupId>org.apache.maven.plugins</groupId>
994 <artifactId>maven-javadoc-plugin</artifactId>
995 <version>2.10</version>
997 <additionalDependencies>
998 <additionalDependency>
999 <groupId>org.slf4j</groupId>
1000 <artifactId>slf4j-api</artifactId>
1001 <version>${slf4j.version}</version>
1002 </additionalDependency>
1003 <additionalDependency>
1004 <groupId>org.antlr</groupId>
1005 <artifactId>antlr4</artifactId>
1006 <version>${antlr.version}</version>
1007 </additionalDependency>
1008 <additionalDependency>
1009 <groupId>org.antlr</groupId>
1010 <artifactId>antlr4-runtime</artifactId>
1011 <version>${antlr.version}</version>
1012 </additionalDependency>
1014 <additionalDependency>
1015 <groupId>com.sun.jersey</groupId>
1016 <artifactId>jersey-client</artifactId>
1017 <version>${jersey.client.version}</version>
1018 </additionalDependency>
1019 <additionalDependency>
1020 <groupId>com.sun.jersey</groupId>
1021 <artifactId>jersey-core</artifactId>
1022 <version>${jersey.version}</version>
1023 </additionalDependency>
1024 <additionalDependency>
1025 <groupId>org.apache.httpcomponents</groupId>
1026 <artifactId>httpcore-osgi</artifactId>
1027 <version>${apache.httpcomponents.core.version}</version>
1028 </additionalDependency>
1029 <additionalDependency>
1030 <groupId>org.apache.httpcomponents</groupId>
1031 <artifactId>httpclient-osgi</artifactId>
1032 <version>${apache.httpcomponents.client.version}</version>
1033 </additionalDependency>
1034 <additionalDependency>
1035 <groupId>com.fasterxml.jackson.core</groupId>
1036 <artifactId>jackson-databind</artifactId>
1037 <version>${jackson.version}</version>
1038 </additionalDependency>
1039 <additionalDependency>
1040 <groupId>com.fasterxml.jackson.core</groupId>
1041 <artifactId>jackson-annotations</artifactId>
1042 <version>${jackson.version}</version>
1043 </additionalDependency>
1044 <additionalDependency>
1045 <groupId>com.fasterxml.jackson.core</groupId>
1046 <artifactId>jackson-core</artifactId>
1047 <version>${jackson.version}</version>
1048 </additionalDependency>
1049 <additionalDependency>
1050 <groupId>commons-lang</groupId>
1051 <artifactId>commons-lang</artifactId>
1052 <version>${commons.lang.version}</version>
1053 </additionalDependency>
1054 </additionalDependencies>
1061 <goal>aggregate</goal>
1069 <artifactId>maven-source-plugin</artifactId>
1070 <version>2.1.1</version>
1073 <id>bundle-sources</id>
1074 <phase>package</phase>
1076 <!-- produce source artifact for main project
1078 <goal>jar-no-fork</goal>
1080 <!-- produce source artifact for project
1082 <goal>test-jar-no-fork</goal>
1094 <!-- Plugins from ONAP oparent -->
1096 <artifactId>maven-checkstyle-plugin</artifactId>
1099 <groupId>org.codehaus.mojo</groupId>
1100 <artifactId>build-helper-maven-plugin</artifactId>
1101 <version>1.12</version>
1103 <!-- Jacoco / Sonar -->
1105 <groupId>org.jacoco</groupId>
1106 <artifactId>jacoco-maven-plugin</artifactId>
1109 <groupId>org.apache.maven.plugins</groupId>
1110 <artifactId>maven-surefire-plugin</artifactId>
1113 <groupId>org.apache.maven.plugins</groupId>
1114 <artifactId>maven-failsafe-plugin</artifactId>
1117 <!-- End of plugins from ONAP oparent -->
1119 <groupId>org.codehaus.mojo</groupId>
1120 <artifactId>properties-maven-plugin</artifactId>
1121 <version>1.0.0</version>
1125 <goal>set-system-properties</goal>
1130 <name>maven.wagon.http.ssl.allowall</name>
1131 <value>${ssl.allowall}</value>
1134 <name>maven.wagon.http.ssl.insecure</name>
1135 <value>${ssl.insecure}</value>
1143 <groupId>org.sonatype.plugins</groupId>
1144 <artifactId>nexus-staging-maven-plugin</artifactId>
1145 <version>1.6.7</version>
1146 <extensions>true</extensions>
1148 <nexusUrl>${onap.nexus.url}</nexusUrl>
1149 <stagingProfileId>176c31dfe190a</stagingProfileId>
1150 <serverId>ecomp-staging</serverId>
1154 <groupId>org.codehaus.mojo</groupId>
1155 <artifactId>versions-maven-plugin</artifactId>
1156 <version>2.5</version>
1158 <processAllModules>true</processAllModules>
1162 <artifactId>maven-scm-plugin</artifactId>
1163 <version>1.8.1</version>
1165 <tag>${project.artifactId}-${project.version}</tag>