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-lite</artifactId>
10 <version>1.0.1-SNAPSHOT</version>
13 <groupId>org.opendaylight.odlparent</groupId>
14 <artifactId>odlparent-lite</artifactId>
15 <version>2.0.5</version>
20 <url>http://wiki.onap.org</url>
21 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
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>
185 <!-- Profiles from ONAP oparent -->
187 <id>generate-json</id>
190 <exists>${swagger-properties}</exists>
193 <name>swagger-sdk.generate-json</name>
199 <groupId>org.codehaus.mojo</groupId>
200 <artifactId>properties-maven-plugin</artifactId>
201 <version>1.0.0</version>
204 <phase>initialize</phase>
206 <goal>read-project-properties</goal>
210 <file>${basedir}/src/main/resources/swagger.properties</file>
217 <groupId>com.github.kongchen</groupId>
218 <artifactId>swagger-maven-plugin</artifactId>
219 <version>3.1.4</version>
223 <locations>${api-rest-package}</locations>
224 <schemes>http,https</schemes>
225 <host>${api-host-ip}:${api-host-port}</host>
226 <basePath>${api-base-path}</basePath>
228 <title>${api-title}</title>
229 <version>${api-version}</version>
230 <description>${api-description}</description>
232 <name>${api-license}</name>
235 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
241 <phase>compile</phase>
243 <goal>generate</goal>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-install-plugin</artifactId>
251 <version>2.3.1</version>
254 <id>install-file-id</id>
255 <phase>install</phase>
257 <goal>install-file</goal>
260 <file>${basedir}/src/main/resources/swagger.json</file>
261 <groupId>${project.groupId}</groupId>
262 <artifactId>${project.artifactId}-swagger-schema</artifactId>
263 <version>${project.version}</version>
264 <packaging>json</packaging>
273 <id>generate-sdk</id>
276 <exists>${swagger-json}</exists>
279 <name>swagger-sdk.generate-java-sdk</name>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-antrun-plugin</artifactId>
287 <version>1.8</version>
290 <phase>initialize</phase>
291 <id>ant-create-script</id>
293 <exportAntProperties>true</exportAntProperties>
297 resource="net/sf/antcontrib/antlib.xml"
298 classpathref="maven.plugin.classpath" />
299 <condition property="is_windows"
301 <os family="windows" />
303 <condition property="isLinux"
308 <equals arg1="${is_windows}"
312 name="swagger.sdk.script.file"
313 value="generated-source-script.bat" />
315 file="${project.build.directory}${file.separator}generated-source-script.bat"
317 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
319 file="${project.build.directory}${file.separator}generated-source-script.bat"
321 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
325 name="swagger.sdk.script.file"
326 value="generated-source-script.sh" />
328 file="${project.build.directory}${file.separator}generated-source-script.sh"
330 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
332 file="${project.build.directory}${file.separator}generated-source-script.sh"
334 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
336 file="${project.build.directory}${file.separator}generated-source-script.sh"
349 <groupId>ant-contrib</groupId>
350 <artifactId>ant-contrib</artifactId>
351 <version>1.0b3</version>
354 <artifactId>ant</artifactId>
355 <groupId>ant</groupId>
362 <groupId>io.swagger</groupId>
363 <artifactId>swagger-codegen-maven-plugin</artifactId>
364 <version>2.2.1</version>
368 <goal>generate</goal>
371 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
372 <output>${project.build.directory}/generated-sources</output>
373 <language>java</language>
375 <dateLibrary>joda</dateLibrary>
377 <library>jersey2</library>
378 <groupId>${project.groupId}</groupId>
379 <artifactId>${project.artifactId}-java-sdk</artifactId>
380 <artifactVersion>${project.version}</artifactVersion>
381 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
382 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
383 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
389 <artifactId>exec-maven-plugin</artifactId>
390 <groupId>org.codehaus.mojo</groupId>
391 <version>1.5.0</version>
394 <id>swagger-generate-sources</id>
395 <phase>generate-sources</phase>
400 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-clean-plugin</artifactId>
408 <version>3.0.0</version>
411 <id>clean-generated-files</id>
412 <phase>generate-sources</phase>
419 <directory>${project.build.directory}/generated-sources</directory>
430 <groupId>org.onap.msb.swagger-sdk</groupId>
431 <artifactId>swagger-sdk</artifactId>
432 <version>1.0.0</version>
437 <!-- End of profiles from ONAP oparent -->
442 <dependencyManagement>
445 <groupId>org.onap.ccsdk.sli.core</groupId>
446 <artifactId>sli-common</artifactId>
447 <version>${ccsdk.sli.core.version}</version>
451 <groupId>org.onap.ccsdk.sli.core</groupId>
452 <artifactId>sli-provider</artifactId>
453 <version>${ccsdk.sli.core.version}</version>
456 <groupId>org.onap.ccsdk.sli.core</groupId>
457 <artifactId>ccsdk-sli</artifactId>
458 <version>${ccsdk.sli.core.version}</version>
460 <classifier>features</classifier>
463 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
464 <artifactId>aai-service-provider</artifactId>
465 <version>${sdnctl.aai.service.version}</version>
469 <groupId>org.onap.ccsdk.sli.core</groupId>
470 <artifactId>dblib-provider</artifactId>
471 <version>${sdnctl.dblib.version}</version>
475 <groupId>org.testng</groupId>
476 <artifactId>testng</artifactId>
477 <version>6.11</version>
480 <groupId>org.springframework</groupId>
481 <artifactId>spring-test</artifactId>
482 <version>${spring.version}</version>
485 <groupId>org.springframework</groupId>
486 <artifactId>spring-beans</artifactId>
487 <version>${spring.version}</version>
490 <groupId>org.springframework</groupId>
491 <artifactId>spring-context</artifactId>
492 <version>${spring.version}</version>
496 </dependencyManagement>
502 <artifactId>maven-javadoc-plugin</artifactId>
503 <version>2.10.4</version>
505 <failOnError>false</failOnError>
506 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
508 <groupId>org.umlgraph</groupId>
509 <artifactId>umlgraph</artifactId>
510 <version>5.6</version>
512 <additionalparam>-views</additionalparam>
513 <useStandardDocletOptions>true</useStandardDocletOptions>
514 <excludePackageNames>org.opendaylight.*</excludePackageNames>
515 <additionalDependencies>
516 <additionalDependency>
517 <groupId>org.slf4j</groupId>
518 <artifactId>slf4j-api</artifactId>
519 <version>${slf4j.version}</version>
520 </additionalDependency>
521 <additionalDependency>
522 <groupId>org.antlr</groupId>
523 <artifactId>antlr4</artifactId>
524 <version>${antlr.version}</version>
525 </additionalDependency>
526 <additionalDependency>
527 <groupId>org.antlr</groupId>
528 <artifactId>antlr4-runtime</artifactId>
529 <version>${antlr.version}</version>
530 </additionalDependency>
532 <additionalDependency>
533 <groupId>com.sun.jersey</groupId>
534 <artifactId>jersey-client</artifactId>
535 <version>${jersey.json.version}</version>
536 </additionalDependency>
537 <additionalDependency>
538 <groupId>com.sun.jersey</groupId>
539 <artifactId>jersey-core</artifactId>
540 <version>${jersey.json.version}</version>
541 </additionalDependency>
542 <additionalDependency>
543 <groupId>org.apache.httpcomponents</groupId>
544 <artifactId>httpcore-osgi</artifactId>
545 <version>${apache.httpcomponents.core.version}</version>
546 </additionalDependency>
547 <additionalDependency>
548 <groupId>org.apache.httpcomponents</groupId>
549 <artifactId>httpclient-osgi</artifactId>
550 <version>${apache.httpcomponents.client.version}</version>
551 </additionalDependency>
552 <additionalDependency>
553 <groupId>com.fasterxml.jackson.core</groupId>
554 <artifactId>jackson-databind</artifactId>
555 <version>${fasterxml.jackson.version}</version>
556 </additionalDependency>
557 <additionalDependency>
558 <groupId>com.fasterxml.jackson.core</groupId>
559 <artifactId>jackson-annotations</artifactId>
560 <version>${fasterxml.jackson.version}</version>
561 </additionalDependency>
562 <additionalDependency>
563 <groupId>com.fasterxml.jackson.core</groupId>
564 <artifactId>jackson-core</artifactId>
565 <version>${fasterxml.jackson.version}</version>
566 </additionalDependency>
567 <additionalDependency>
568 <groupId>commons-lang</groupId>
569 <artifactId>commons-lang</artifactId>
570 <version>${commons.lang.version}</version>
571 </additionalDependency>
572 </additionalDependencies>
577 <report>javadoc-no-fork</report>
578 <report>test-javadoc-no-fork</report>
584 <report>aggregate</report>
585 <report>test-aggregate</report>
591 <groupId>org.apache.maven.plugins</groupId>
592 <artifactId>maven-jxr-plugin</artifactId>
593 <version>2.3</version>
598 <report>aggregate</report>
599 <report>test-aggregate</report>
606 <artifactId>maven-surefire-plugin</artifactId>
607 <version>2.17</version>
610 <groupId>org.apache.maven.plugins</groupId>
611 <artifactId>maven-changelog-plugin</artifactId>
612 <version>2.3</version>
621 <report>changelog</report>
622 <report>file-activity</report>
628 <groupId>org.codehaus.mojo</groupId>
629 <artifactId>taglist-maven-plugin</artifactId>
630 <version>2.4</version>
639 <url>${onap.nexus.public-url}</url>
641 <enabled>true</enabled>
644 <enabled>true</enabled>
648 <id>onap-snapshot</id>
649 <url>${onap.nexus.snapshot-url}</url>
651 <enabled>false</enabled>
654 <enabled>true</enabled>
658 <id>opendaylight-mirror</id>
659 <name>opendaylight-mirror</name>
660 <url>${opendaylight.nexus.public-url}</url>
662 <enabled>true</enabled>
663 <updatePolicy>never</updatePolicy>
666 <enabled>false</enabled>
670 <id>opendaylight-snapshot</id>
671 <name>opendaylight-snapshot</name>
672 <url>${opendaylight.nexus.snapshot-url}</url>
674 <enabled>false</enabled>
677 <enabled>true</enabled>
680 <!-- Black Duck plugin dependencies -->
683 <name>JCenter Repository</name>
684 <url>http://jcenter.bintray.com</url>
689 <name>Restlet Repository</name>
690 <url>http://maven.restlet.com</url>
692 </pluginRepositories>
698 <url>https://nexus.onap.org/content/groups/public</url>
700 <enabled>true</enabled>
701 <updatePolicy>never</updatePolicy>
704 <enabled>true</enabled>
705 <updatePolicy>always</updatePolicy>
709 <id>onap-staging</id>
710 <url>https://nexus.onap.org/content/groups/staging</url>
712 <enabled>true</enabled>
713 <updatePolicy>never</updatePolicy>
716 <enabled>true</enabled>
717 <updatePolicy>always</updatePolicy>
721 <id>ecomp-release</id>
722 <name>onap-repository-releases</name>
723 <url>https://nexus.onap.org/content/repositories/releases</url>
725 <enabled>true</enabled>
726 <updatePolicy>never</updatePolicy>
729 <enabled>false</enabled>
733 <id>ecomp-snapshot</id>
734 <name>onap-repository-snapshots</name>
735 <url>https://nexus.onap.org/content/repositories/snapshots</url>
737 <enabled>false</enabled>
740 <enabled>true</enabled>
744 <id>opendaylight-mirror</id>
745 <name>opendaylight-mirror</name>
746 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
748 <enabled>true</enabled>
749 <updatePolicy>never</updatePolicy>
752 <enabled>false</enabled>
756 <id>opendaylight-snapshot</id>
757 <name>opendaylight-snapshot</name>
758 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
760 <enabled>false</enabled>
763 <enabled>true</enabled>
769 <distributionManagement>
771 <id>ecomp-releases</id>
772 <url>http://nexus.onap.org/content/repositories/releases</url>
775 <id>ecomp-snapshots</id>
776 <url>http://nexus.onap.org/content/repositories/snapshots</url>
777 </snapshotRepository>
778 </distributionManagement>
784 <!-- Plugins from ONAP oparent -->
786 <groupId>org.apache.maven.plugins</groupId>
787 <artifactId>maven-deploy-plugin</artifactId>
788 <!-- This version supports the "deployAtEnd" parameter -->
789 <version>2.8</version>
796 <groupId>org.apache.maven.plugins</groupId>
797 <artifactId>maven-site-plugin</artifactId>
798 <version>3.6</version>
801 <groupId>org.apache.maven.wagon</groupId>
802 <artifactId>wagon-webdav-jackrabbit</artifactId>
803 <version>2.10</version>
806 <groupId>org.apache.maven.doxia</groupId>
807 <artifactId>doxia-core</artifactId>
808 <version>1.7</version>
811 <groupId>org.apache.maven.doxia</groupId>
812 <artifactId>doxia-sink-api</artifactId>
813 <version>1.7</version>
816 <groupId>org.apache.maven.doxia</groupId>
817 <artifactId>doxia-logging-api</artifactId>
818 <version>1.7</version>
823 <id>attach-descriptor</id>
825 <goal>attach-descriptor</goal>
831 <artifactId>maven-checkstyle-plugin</artifactId>
832 <version>2.17</version>
835 <groupId>org.onap.oparent</groupId>
836 <artifactId>checkstyle</artifactId>
837 <version>1.1.0-SNAPSHOT</version>
842 <id>check-license</id>
846 <phase>process-sources</phase>
848 <configLocation>onap-checkstyle/check-license.xml</configLocation>
849 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
850 <includeResources>false</includeResources>
851 <includeTestSourceDirectory>true</includeTestSourceDirectory>
852 <includeTestResources>false</includeTestResources>
853 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
856 <failsOnError>false</failsOnError>
857 <consoleOutput>true</consoleOutput>
865 <phase>process-sources</phase>
867 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
868 with minor changes -->
869 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
870 <!-- <sourceDirectory> is needed so that
871 checkstyle ignores the generated sources directory -->
872 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
873 <includeResources>true</includeResources>
874 <includeTestSourceDirectory>true</includeTestSourceDirectory>
875 <includeTestResources>true</includeTestResources>
878 <failsOnError>false</failsOnError>
879 <consoleOutput>true</consoleOutput>
885 <groupId>org.jacoco</groupId>
886 <artifactId>jacoco-maven-plugin</artifactId>
887 <version>${jacoco.version}</version>
889 <!-- Note: This exclusion list should match <sonar.exclusions>
892 <exclude>**/gen/**</exclude>
893 <exclude>**/generated-sources/**</exclude>
894 <exclude>**/yang-gen/**</exclude>
895 <exclude>**/pax/**</exclude>
899 <!-- Prepares the property pointing to the JaCoCo
900 runtime agent which is passed as VM argument when Maven the Surefire plugin
903 <id>pre-unit-test</id>
905 <goal>prepare-agent</goal>
908 <!-- Sets the path to the file which contains
909 the execution data. -->
910 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
911 <!-- Sets the name of the property containing
912 the settings for JaCoCo runtime agent. -->
913 <propertyName>surefireArgLine</propertyName>
916 <!-- Ensures that the code coverage report for unit
917 tests is created after unit tests have been run. -->
919 <id>post-unit-test</id>
925 <!-- Sets the path to the file which contains
926 the execution data. -->
927 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
928 <!-- Sets the output directory for the code
930 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
934 <id>pre-integration-test</id>
935 <phase>pre-integration-test</phase>
937 <goal>prepare-agent</goal>
940 <!-- Sets the path to the file which contains
941 the execution data. -->
942 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
943 <!-- Sets the name of the property containing
944 the settings for JaCoCo runtime agent. -->
945 <propertyName>failsafeArgLine</propertyName>
948 <!-- Ensures that the code coverage report for integration
949 tests after integration tests have been run. -->
951 <id>post-integration-test</id>
952 <phase>post-integration-test</phase>
957 <!-- Sets the path to the file which contains
958 the execution data. -->
959 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
960 <!-- Sets the output directory for the code
962 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
968 <groupId>org.apache.maven.plugins</groupId>
969 <artifactId>maven-surefire-plugin</artifactId>
970 <version>2.19.1</version>
972 <!-- Sets the VM argument line used when unit tests
974 <argLine>${surefireArgLine}</argLine>
975 <!-- Excludes integration tests when unit tests are
978 <exclude>**/IT*.java</exclude>
983 <groupId>org.apache.maven.plugins</groupId>
984 <artifactId>maven-failsafe-plugin</artifactId>
985 <version>2.19.1</version>
987 <!-- Ensures that both integration-test and verify
988 goals of the Failsafe Maven plugin are executed. -->
990 <id>integration-tests</id>
992 <goal>integration-test</goal>
996 <!-- Sets the VM argument line used when
997 integration tests are run. -->
998 <argLine>${failsafeArgLine}</argLine>
1004 <groupId>org.apache.maven.plugins</groupId>
1005 <artifactId>maven-compiler-plugin</artifactId>
1006 <version>${maven.compile.plugin.version}</version>
1008 <source>${java.version.source}</source>
1009 <target>${java.version.target}</target>
1013 <groupId>org.sonarsource.scanner.maven</groupId>
1014 <artifactId>sonar-maven-plugin</artifactId>
1015 <version>3.3.0.603</version>
1018 <!-- End of plugins from ONAP oparent -->
1021 <groupId>org.apache.maven.plugins</groupId>
1022 <artifactId>maven-javadoc-plugin</artifactId>
1023 <version>2.10</version>
1025 <additionalDependencies>
1026 <additionalDependency>
1027 <groupId>org.slf4j</groupId>
1028 <artifactId>slf4j-api</artifactId>
1029 <version>${slf4j.version}</version>
1030 </additionalDependency>
1031 <additionalDependency>
1032 <groupId>org.antlr</groupId>
1033 <artifactId>antlr4</artifactId>
1034 <version>${antlr.version}</version>
1035 </additionalDependency>
1036 <additionalDependency>
1037 <groupId>org.antlr</groupId>
1038 <artifactId>antlr4-runtime</artifactId>
1039 <version>${antlr.version}</version>
1040 </additionalDependency>
1042 <additionalDependency>
1043 <groupId>com.sun.jersey</groupId>
1044 <artifactId>jersey-client</artifactId>
1045 <version>${jersey.client.version}</version>
1046 </additionalDependency>
1047 <additionalDependency>
1048 <groupId>com.sun.jersey</groupId>
1049 <artifactId>jersey-core</artifactId>
1050 <version>${jersey.version}</version>
1051 </additionalDependency>
1052 <additionalDependency>
1053 <groupId>org.apache.httpcomponents</groupId>
1054 <artifactId>httpcore-osgi</artifactId>
1055 <version>${apache.httpcomponents.core.version}</version>
1056 </additionalDependency>
1057 <additionalDependency>
1058 <groupId>org.apache.httpcomponents</groupId>
1059 <artifactId>httpclient-osgi</artifactId>
1060 <version>${apache.httpcomponents.client.version}</version>
1061 </additionalDependency>
1062 <additionalDependency>
1063 <groupId>com.fasterxml.jackson.core</groupId>
1064 <artifactId>jackson-databind</artifactId>
1065 <version>${jackson.version}</version>
1066 </additionalDependency>
1067 <additionalDependency>
1068 <groupId>com.fasterxml.jackson.core</groupId>
1069 <artifactId>jackson-annotations</artifactId>
1070 <version>${jackson.version}</version>
1071 </additionalDependency>
1072 <additionalDependency>
1073 <groupId>com.fasterxml.jackson.core</groupId>
1074 <artifactId>jackson-core</artifactId>
1075 <version>${jackson.version}</version>
1076 </additionalDependency>
1077 <additionalDependency>
1078 <groupId>commons-lang</groupId>
1079 <artifactId>commons-lang</artifactId>
1080 <version>${commons.lang.version}</version>
1081 </additionalDependency>
1082 </additionalDependencies>
1089 <goal>aggregate</goal>
1097 <artifactId>maven-source-plugin</artifactId>
1098 <version>2.1.1</version>
1101 <id>bundle-sources</id>
1102 <phase>package</phase>
1104 <!-- produce source artifact for main project
1106 <goal>jar-no-fork</goal>
1108 <!-- produce source artifact for project
1110 <goal>test-jar-no-fork</goal>
1122 <!-- Plugins from ONAP oparent -->
1124 <artifactId>maven-checkstyle-plugin</artifactId>
1127 <groupId>org.codehaus.mojo</groupId>
1128 <artifactId>build-helper-maven-plugin</artifactId>
1129 <version>1.12</version>
1131 <!-- Jacoco / Sonar -->
1133 <groupId>org.jacoco</groupId>
1134 <artifactId>jacoco-maven-plugin</artifactId>
1137 <groupId>org.apache.maven.plugins</groupId>
1138 <artifactId>maven-surefire-plugin</artifactId>
1141 <groupId>org.apache.maven.plugins</groupId>
1142 <artifactId>maven-failsafe-plugin</artifactId>
1145 <!-- End of plugins from ONAP oparent -->
1147 <groupId>org.codehaus.mojo</groupId>
1148 <artifactId>properties-maven-plugin</artifactId>
1149 <version>1.0.0</version>
1153 <goal>set-system-properties</goal>
1158 <name>maven.wagon.http.ssl.allowall</name>
1159 <value>${ssl.allowall}</value>
1162 <name>maven.wagon.http.ssl.insecure</name>
1163 <value>${ssl.insecure}</value>
1171 <groupId>org.sonatype.plugins</groupId>
1172 <artifactId>nexus-staging-maven-plugin</artifactId>
1173 <version>1.6.7</version>
1174 <extensions>true</extensions>
1176 <nexusUrl>${onap.nexus.url}</nexusUrl>
1177 <stagingProfileId>176c31dfe190a</stagingProfileId>
1178 <serverId>ecomp-staging</serverId>
1182 <groupId>org.codehaus.mojo</groupId>
1183 <artifactId>versions-maven-plugin</artifactId>
1184 <version>2.5</version>
1186 <processAllModules>true</processAllModules>
1190 <artifactId>maven-scm-plugin</artifactId>
1191 <version>1.8.1</version>
1193 <tag>${project.artifactId}-${project.version}</tag>