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.0-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.0-SNAPSHOT</ccsdk.sli.core.version>
96 <ccsdk.sli.adaptors.version>0.2.0-SNAPSHOT</ccsdk.sli.adaptors.version>
97 <ccsdk.sli.northbound.version>0.2.0-SNAPSHOT</ccsdk.sli.northbound.version>
98 <ccsdk.sli.plugins.version>0.2.0-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.4</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.5</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.3.1</gson.version>
120 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
121 <guava.version>18.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.6</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.1.7</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.0.44.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.14.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.3.2</apache.httpcomponents.core.version>
172 <apache.httpcomponents.client.version>4.3.3</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>
183 <!-- Profiles from ONAP oparent -->
185 <id>generate-json</id>
188 <exists>${swagger-properties}</exists>
191 <name>swagger-sdk.generate-json</name>
197 <groupId>org.codehaus.mojo</groupId>
198 <artifactId>properties-maven-plugin</artifactId>
199 <version>1.0.0</version>
202 <phase>initialize</phase>
204 <goal>read-project-properties</goal>
208 <file>${basedir}/src/main/resources/swagger.properties</file>
215 <groupId>com.github.kongchen</groupId>
216 <artifactId>swagger-maven-plugin</artifactId>
217 <version>3.1.4</version>
221 <locations>${api-rest-package}</locations>
222 <schemes>http,https</schemes>
223 <host>${api-host-ip}:${api-host-port}</host>
224 <basePath>${api-base-path}</basePath>
226 <title>${api-title}</title>
227 <version>${api-version}</version>
228 <description>${api-description}</description>
230 <name>${api-license}</name>
233 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
239 <phase>compile</phase>
241 <goal>generate</goal>
247 <groupId>org.apache.maven.plugins</groupId>
248 <artifactId>maven-install-plugin</artifactId>
249 <version>2.3.1</version>
252 <id>install-file-id</id>
253 <phase>install</phase>
255 <goal>install-file</goal>
258 <file>${basedir}/src/main/resources/swagger.json</file>
259 <groupId>${project.groupId}</groupId>
260 <artifactId>${project.artifactId}-swagger-schema</artifactId>
261 <version>${project.version}</version>
262 <packaging>json</packaging>
271 <id>generate-sdk</id>
274 <exists>${swagger-json}</exists>
277 <name>swagger-sdk.generate-java-sdk</name>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-antrun-plugin</artifactId>
285 <version>1.8</version>
288 <phase>initialize</phase>
289 <id>ant-create-script</id>
291 <exportAntProperties>true</exportAntProperties>
295 resource="net/sf/antcontrib/antlib.xml"
296 classpathref="maven.plugin.classpath" />
297 <condition property="is_windows"
299 <os family="windows" />
301 <condition property="isLinux"
306 <equals arg1="${is_windows}"
310 name="swagger.sdk.script.file"
311 value="generated-source-script.bat" />
313 file="${project.build.directory}${file.separator}generated-source-script.bat"
315 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
317 file="${project.build.directory}${file.separator}generated-source-script.bat"
319 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
323 name="swagger.sdk.script.file"
324 value="generated-source-script.sh" />
326 file="${project.build.directory}${file.separator}generated-source-script.sh"
328 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
330 file="${project.build.directory}${file.separator}generated-source-script.sh"
332 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
334 file="${project.build.directory}${file.separator}generated-source-script.sh"
347 <groupId>ant-contrib</groupId>
348 <artifactId>ant-contrib</artifactId>
349 <version>1.0b3</version>
352 <artifactId>ant</artifactId>
353 <groupId>ant</groupId>
360 <groupId>io.swagger</groupId>
361 <artifactId>swagger-codegen-maven-plugin</artifactId>
362 <version>2.2.1</version>
366 <goal>generate</goal>
369 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
370 <output>${project.build.directory}/generated-sources</output>
371 <language>java</language>
373 <dateLibrary>joda</dateLibrary>
375 <library>jersey2</library>
376 <groupId>${project.groupId}</groupId>
377 <artifactId>${project.artifactId}-java-sdk</artifactId>
378 <artifactVersion>${project.version}</artifactVersion>
379 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
380 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
381 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
387 <artifactId>exec-maven-plugin</artifactId>
388 <groupId>org.codehaus.mojo</groupId>
389 <version>1.5.0</version>
392 <id>swagger-generate-sources</id>
393 <phase>generate-sources</phase>
398 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
404 <groupId>org.apache.maven.plugins</groupId>
405 <artifactId>maven-clean-plugin</artifactId>
406 <version>3.0.0</version>
409 <id>clean-generated-files</id>
410 <phase>generate-sources</phase>
417 <directory>${project.build.directory}/generated-sources</directory>
428 <groupId>org.onap.msb.swagger-sdk</groupId>
429 <artifactId>swagger-sdk</artifactId>
430 <version>1.0.0</version>
435 <!-- End of profiles from ONAP oparent -->
440 <dependencyManagement>
443 <groupId>org.onap.sdnc.core</groupId>
444 <artifactId>sli-common</artifactId>
445 <version>${sdnctl.sli.version}</version>
449 <groupId>org.onap.sdnc.core</groupId>
450 <artifactId>sli-provider</artifactId>
451 <version>${sdnctl.sli.version}</version>
455 <groupId>org.onap.sdnc.core</groupId>
456 <artifactId>aai-service-provider</artifactId>
457 <version>${sdnctl.aai.service.version}</version>
461 <groupId>org.onap.sdnc.core</groupId>
462 <artifactId>dblib-provider</artifactId>
463 <version>${sdnctl.dblib.version}</version>
467 </dependencyManagement>
473 <artifactId>maven-javadoc-plugin</artifactId>
474 <version>2.10.4</version>
476 <failOnError>false</failOnError>
477 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
479 <groupId>org.umlgraph</groupId>
480 <artifactId>umlgraph</artifactId>
481 <version>5.6</version>
483 <additionalparam>-views</additionalparam>
484 <useStandardDocletOptions>true</useStandardDocletOptions>
485 <excludePackageNames>org.opendaylight.*</excludePackageNames>
486 <additionalDependencies>
487 <additionalDependency>
488 <groupId>org.slf4j</groupId>
489 <artifactId>slf4j-api</artifactId>
490 <version>${slf4j.version}</version>
491 </additionalDependency>
492 <additionalDependency>
493 <groupId>org.antlr</groupId>
494 <artifactId>antlr4</artifactId>
495 <version>${antlr.version}</version>
496 </additionalDependency>
497 <additionalDependency>
498 <groupId>org.antlr</groupId>
499 <artifactId>antlr4-runtime</artifactId>
500 <version>${antlr.version}</version>
501 </additionalDependency>
503 <additionalDependency>
504 <groupId>com.sun.jersey</groupId>
505 <artifactId>jersey-client</artifactId>
506 <version>${jersey.json.version}</version>
507 </additionalDependency>
508 <additionalDependency>
509 <groupId>com.sun.jersey</groupId>
510 <artifactId>jersey-core</artifactId>
511 <version>${jersey.json.version}</version>
512 </additionalDependency>
513 <additionalDependency>
514 <groupId>org.apache.httpcomponents</groupId>
515 <artifactId>httpcore-osgi</artifactId>
516 <version>${apache.httpcomponents.core.version}</version>
517 </additionalDependency>
518 <additionalDependency>
519 <groupId>org.apache.httpcomponents</groupId>
520 <artifactId>httpclient-osgi</artifactId>
521 <version>${apache.httpcomponents.client.version}</version>
522 </additionalDependency>
523 <additionalDependency>
524 <groupId>com.fasterxml.jackson.core</groupId>
525 <artifactId>jackson-databind</artifactId>
526 <version>${fasterxml.jackson.version}</version>
527 </additionalDependency>
528 <additionalDependency>
529 <groupId>com.fasterxml.jackson.core</groupId>
530 <artifactId>jackson-annotations</artifactId>
531 <version>${fasterxml.jackson.version}</version>
532 </additionalDependency>
533 <additionalDependency>
534 <groupId>com.fasterxml.jackson.core</groupId>
535 <artifactId>jackson-core</artifactId>
536 <version>${fasterxml.jackson.version}</version>
537 </additionalDependency>
538 <additionalDependency>
539 <groupId>commons-lang</groupId>
540 <artifactId>commons-lang</artifactId>
541 <version>${commons.lang.version}</version>
542 </additionalDependency>
543 </additionalDependencies>
548 <report>javadoc-no-fork</report>
549 <report>test-javadoc-no-fork</report>
555 <report>aggregate</report>
556 <report>test-aggregate</report>
562 <groupId>org.apache.maven.plugins</groupId>
563 <artifactId>maven-jxr-plugin</artifactId>
564 <version>2.3</version>
569 <report>aggregate</report>
570 <report>test-aggregate</report>
577 <artifactId>maven-surefire-plugin</artifactId>
578 <version>2.17</version>
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-changelog-plugin</artifactId>
583 <version>2.3</version>
592 <report>changelog</report>
593 <report>file-activity</report>
599 <groupId>org.codehaus.mojo</groupId>
600 <artifactId>taglist-maven-plugin</artifactId>
601 <version>2.4</version>
610 <url>${onap.nexus.public-url}</url>
612 <enabled>true</enabled>
615 <enabled>true</enabled>
619 <id>onap-snapshot</id>
620 <url>${onap.nexus.snapshot-url}</url>
622 <enabled>false</enabled>
625 <enabled>true</enabled>
629 <id>opendaylight-mirror</id>
630 <name>opendaylight-mirror</name>
631 <url>${opendaylight.nexus.public-url}</url>
633 <enabled>true</enabled>
634 <updatePolicy>never</updatePolicy>
637 <enabled>false</enabled>
641 <id>opendaylight-snapshot</id>
642 <name>opendaylight-snapshot</name>
643 <url>${opendaylight.nexus.snapshot-url}</url>
645 <enabled>false</enabled>
648 <enabled>true</enabled>
651 <!-- Black Duck plugin dependencies -->
654 <name>JCenter Repository</name>
655 <url>http://jcenter.bintray.com</url>
660 <name>Restlet Repository</name>
661 <url>http://maven.restlet.com</url>
663 </pluginRepositories>
669 <url>https://nexus.onap.org/content/groups/public</url>
671 <enabled>true</enabled>
672 <updatePolicy>never</updatePolicy>
675 <enabled>true</enabled>
676 <updatePolicy>always</updatePolicy>
680 <id>onap-staging</id>
681 <url>https://nexus.onap.org/content/groups/staging</url>
683 <enabled>true</enabled>
684 <updatePolicy>never</updatePolicy>
687 <enabled>true</enabled>
688 <updatePolicy>always</updatePolicy>
692 <id>ecomp-release</id>
693 <name>onap-repository-releases</name>
694 <url>https://nexus.onap.org/content/repositories/releases</url>
696 <enabled>true</enabled>
697 <updatePolicy>never</updatePolicy>
700 <enabled>false</enabled>
704 <id>ecomp-snapshot</id>
705 <name>onap-repository-snapshots</name>
706 <url>https://nexus.onap.org/content/repositories/snapshots</url>
708 <enabled>false</enabled>
711 <enabled>true</enabled>
715 <id>opendaylight-mirror</id>
716 <name>opendaylight-mirror</name>
717 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
719 <enabled>true</enabled>
720 <updatePolicy>never</updatePolicy>
723 <enabled>false</enabled>
727 <id>opendaylight-snapshot</id>
728 <name>opendaylight-snapshot</name>
729 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
731 <enabled>false</enabled>
734 <enabled>true</enabled>
740 <distributionManagement>
742 <id>ecomp-releases</id>
743 <url>http://nexus.onap.org/content/repositories/releases</url>
746 <id>ecomp-snapshots</id>
747 <url>http://nexus.onap.org/content/repositories/snapshots</url>
748 </snapshotRepository>
749 </distributionManagement>
755 <!-- Plugins from ONAP oparent -->
757 <groupId>org.apache.maven.plugins</groupId>
758 <artifactId>maven-deploy-plugin</artifactId>
759 <!-- This version supports the "deployAtEnd" parameter -->
760 <version>2.8</version>
767 <groupId>org.apache.maven.plugins</groupId>
768 <artifactId>maven-site-plugin</artifactId>
769 <version>3.6</version>
772 <groupId>org.apache.maven.wagon</groupId>
773 <artifactId>wagon-webdav-jackrabbit</artifactId>
774 <version>2.10</version>
777 <groupId>org.apache.maven.doxia</groupId>
778 <artifactId>doxia-core</artifactId>
779 <version>1.7</version>
782 <groupId>org.apache.maven.doxia</groupId>
783 <artifactId>doxia-sink-api</artifactId>
784 <version>1.7</version>
787 <groupId>org.apache.maven.doxia</groupId>
788 <artifactId>doxia-logging-api</artifactId>
789 <version>1.7</version>
794 <id>attach-descriptor</id>
796 <goal>attach-descriptor</goal>
802 <artifactId>maven-checkstyle-plugin</artifactId>
803 <version>2.17</version>
806 <groupId>org.onap.oparent</groupId>
807 <artifactId>checkstyle</artifactId>
808 <version>1.1.0-SNAPSHOT</version>
813 <id>check-license</id>
817 <phase>process-sources</phase>
819 <configLocation>onap-checkstyle/check-license.xml</configLocation>
820 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
821 <includeResources>false</includeResources>
822 <includeTestSourceDirectory>true</includeTestSourceDirectory>
823 <includeTestResources>false</includeTestResources>
824 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
827 <failsOnError>false</failsOnError>
828 <consoleOutput>true</consoleOutput>
836 <phase>process-sources</phase>
838 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
839 with minor changes -->
840 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
841 <!-- <sourceDirectory> is needed so that
842 checkstyle ignores the generated sources directory -->
843 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
844 <includeResources>true</includeResources>
845 <includeTestSourceDirectory>true</includeTestSourceDirectory>
846 <includeTestResources>true</includeTestResources>
849 <failsOnError>false</failsOnError>
850 <consoleOutput>true</consoleOutput>
856 <groupId>org.jacoco</groupId>
857 <artifactId>jacoco-maven-plugin</artifactId>
858 <version>${jacoco.version}</version>
860 <!-- Note: This exclusion list should match <sonar.exclusions>
863 <exclude>**/gen/**</exclude>
864 <exclude>**/generated-sources/**</exclude>
865 <exclude>**/yang-gen/**</exclude>
866 <exclude>**/pax/**</exclude>
870 <!-- Prepares the property pointing to the JaCoCo
871 runtime agent which is passed as VM argument when Maven the Surefire plugin
874 <id>pre-unit-test</id>
876 <goal>prepare-agent</goal>
879 <!-- Sets the path to the file which contains
880 the execution data. -->
881 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
882 <!-- Sets the name of the property containing
883 the settings for JaCoCo runtime agent. -->
884 <propertyName>surefireArgLine</propertyName>
887 <!-- Ensures that the code coverage report for unit
888 tests is created after unit tests have been run. -->
890 <id>post-unit-test</id>
896 <!-- Sets the path to the file which contains
897 the execution data. -->
898 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
899 <!-- Sets the output directory for the code
901 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
905 <id>pre-integration-test</id>
906 <phase>pre-integration-test</phase>
908 <goal>prepare-agent</goal>
911 <!-- Sets the path to the file which contains
912 the execution data. -->
913 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
914 <!-- Sets the name of the property containing
915 the settings for JaCoCo runtime agent. -->
916 <propertyName>failsafeArgLine</propertyName>
919 <!-- Ensures that the code coverage report for integration
920 tests after integration tests have been run. -->
922 <id>post-integration-test</id>
923 <phase>post-integration-test</phase>
928 <!-- Sets the path to the file which contains
929 the execution data. -->
930 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
931 <!-- Sets the output directory for the code
933 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
939 <groupId>org.apache.maven.plugins</groupId>
940 <artifactId>maven-surefire-plugin</artifactId>
941 <version>2.19.1</version>
943 <!-- Sets the VM argument line used when unit tests
945 <argLine>${surefireArgLine}</argLine>
946 <!-- Excludes integration tests when unit tests are
949 <exclude>**/IT*.java</exclude>
954 <groupId>org.apache.maven.plugins</groupId>
955 <artifactId>maven-failsafe-plugin</artifactId>
956 <version>2.19.1</version>
958 <!-- Ensures that both integration-test and verify
959 goals of the Failsafe Maven plugin are executed. -->
961 <id>integration-tests</id>
963 <goal>integration-test</goal>
967 <!-- Sets the VM argument line used when
968 integration tests are run. -->
969 <argLine>${failsafeArgLine}</argLine>
975 <groupId>org.apache.maven.plugins</groupId>
976 <artifactId>maven-compiler-plugin</artifactId>
977 <version>${maven.compile.plugin.version}</version>
979 <source>${java.version.source}</source>
980 <target>${java.version.target}</target>
984 <groupId>org.sonarsource.scanner.maven</groupId>
985 <artifactId>sonar-maven-plugin</artifactId>
986 <version>3.3.0.603</version>
989 <!-- End of plugins from ONAP oparent -->
992 <groupId>org.apache.maven.plugins</groupId>
993 <artifactId>maven-javadoc-plugin</artifactId>
994 <version>2.10</version>
996 <additionalDependencies>
997 <additionalDependency>
998 <groupId>org.slf4j</groupId>
999 <artifactId>slf4j-api</artifactId>
1000 <version>${slf4j.version}</version>
1001 </additionalDependency>
1002 <additionalDependency>
1003 <groupId>org.antlr</groupId>
1004 <artifactId>antlr4</artifactId>
1005 <version>${antlr.version}</version>
1006 </additionalDependency>
1007 <additionalDependency>
1008 <groupId>org.antlr</groupId>
1009 <artifactId>antlr4-runtime</artifactId>
1010 <version>${antlr.version}</version>
1011 </additionalDependency>
1013 <additionalDependency>
1014 <groupId>com.sun.jersey</groupId>
1015 <artifactId>jersey-client</artifactId>
1016 <version>${jersey.client.version}</version>
1017 </additionalDependency>
1018 <additionalDependency>
1019 <groupId>com.sun.jersey</groupId>
1020 <artifactId>jersey-core</artifactId>
1021 <version>${jersey.version}</version>
1022 </additionalDependency>
1023 <additionalDependency>
1024 <groupId>org.apache.httpcomponents</groupId>
1025 <artifactId>httpcore-osgi</artifactId>
1026 <version>${apache.httpcomponents.core.version}</version>
1027 </additionalDependency>
1028 <additionalDependency>
1029 <groupId>org.apache.httpcomponents</groupId>
1030 <artifactId>httpclient-osgi</artifactId>
1031 <version>${apache.httpcomponents.client.version}</version>
1032 </additionalDependency>
1033 <additionalDependency>
1034 <groupId>com.fasterxml.jackson.core</groupId>
1035 <artifactId>jackson-databind</artifactId>
1036 <version>${jackson.version}</version>
1037 </additionalDependency>
1038 <additionalDependency>
1039 <groupId>com.fasterxml.jackson.core</groupId>
1040 <artifactId>jackson-annotations</artifactId>
1041 <version>${jackson.version}</version>
1042 </additionalDependency>
1043 <additionalDependency>
1044 <groupId>com.fasterxml.jackson.core</groupId>
1045 <artifactId>jackson-core</artifactId>
1046 <version>${jackson.version}</version>
1047 </additionalDependency>
1048 <additionalDependency>
1049 <groupId>commons-lang</groupId>
1050 <artifactId>commons-lang</artifactId>
1051 <version>${commons.lang.version}</version>
1052 </additionalDependency>
1053 </additionalDependencies>
1060 <goal>aggregate</goal>
1068 <artifactId>maven-source-plugin</artifactId>
1069 <version>2.1.1</version>
1072 <id>bundle-sources</id>
1073 <phase>package</phase>
1075 <!-- produce source artifact for main project
1077 <goal>jar-no-fork</goal>
1079 <!-- produce source artifact for project
1081 <goal>test-jar-no-fork</goal>
1093 <!-- Plugins from ONAP oparent -->
1095 <artifactId>maven-checkstyle-plugin</artifactId>
1098 <groupId>org.codehaus.mojo</groupId>
1099 <artifactId>build-helper-maven-plugin</artifactId>
1100 <version>1.12</version>
1102 <!-- Jacoco / Sonar -->
1104 <groupId>org.jacoco</groupId>
1105 <artifactId>jacoco-maven-plugin</artifactId>
1108 <groupId>org.apache.maven.plugins</groupId>
1109 <artifactId>maven-surefire-plugin</artifactId>
1112 <groupId>org.apache.maven.plugins</groupId>
1113 <artifactId>maven-failsafe-plugin</artifactId>
1116 <!-- End of plugins from ONAP oparent -->
1118 <groupId>org.codehaus.mojo</groupId>
1119 <artifactId>properties-maven-plugin</artifactId>
1120 <version>1.0.0</version>
1124 <goal>set-system-properties</goal>
1129 <name>maven.wagon.http.ssl.allowall</name>
1130 <value>${ssl.allowall}</value>
1133 <name>maven.wagon.http.ssl.insecure</name>
1134 <value>${ssl.insecure}</value>
1142 <groupId>org.sonatype.plugins</groupId>
1143 <artifactId>nexus-staging-maven-plugin</artifactId>
1144 <version>1.6.7</version>
1145 <extensions>true</extensions>
1147 <nexusUrl>${onap.nexus.url}</nexusUrl>
1148 <stagingProfileId>176c31dfe190a</stagingProfileId>
1149 <serverId>ecomp-staging</serverId>
1153 <groupId>org.codehaus.mojo</groupId>
1154 <artifactId>versions-maven-plugin</artifactId>
1155 <version>2.3</version>
1158 <artifactId>maven-scm-plugin</artifactId>
1159 <version>1.8.1</version>
1161 <tag>${project.artifactId}-${project.version}</tag>