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>mdsal-it-parent</artifactId>
10 <version>1.0.1-SNAPSHOT</version>
13 <groupId>org.opendaylight.controller</groupId>
14 <artifactId>mdsal-it-parent</artifactId>
15 <version>1.6.1</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.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>
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.3</version>
1159 <artifactId>maven-scm-plugin</artifactId>
1160 <version>1.8.1</version>
1162 <tag>${project.artifactId}-${project.version}</tag>