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.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
45 <!-- Note: This list should match jacoco-maven-plugin's exclusion
47 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
48 <!-- If following file exist, auto-generation of swagger.json will
50 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
51 <!-- If following file exist, auto-generation of sdk will be done -->
52 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
53 <!--- end of properties from oparent -->
55 <!-- ONAP repositories -->
56 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
57 <onap.nexus.port>443</onap.nexus.port>
58 <onap.nexus.protocol>https</onap.nexus.protocol>
59 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
60 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
61 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
62 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
63 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
64 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
67 <!-- OpenDaylight repositories -->
68 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
69 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
72 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
73 <java.version.source>1.8</java.version.source>
74 <java.version.target>1.8</java.version.target>
75 <bundle.plugin.version>2.5.0</bundle.plugin.version>
76 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
77 <features.file>features.xml</features.file>
78 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
79 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
80 <checkstyle.skip>true</checkstyle.skip>
83 <sonar.language>java</sonar.language>
84 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
85 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
86 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
87 <sonar.projectVersion>${project.version}</sonar.projectVersion>
92 <!-- CCSDK component versions -->
93 <ccsdk.sli.core.version>0.2.1-SNAPSHOT</ccsdk.sli.core.version>
94 <ccsdk.sli.adaptors.version>0.2.1-SNAPSHOT</ccsdk.sli.adaptors.version>
95 <ccsdk.sli.northbound.version>0.2.1-SNAPSHOT</ccsdk.sli.northbound.version>
96 <ccsdk.sli.plugins.version>0.2.1-SNAPSHOT</ccsdk.sli.plugins.version>
97 <ccsdl.distribution.version>0.2.1-SNAPSHOT</ccsdl.distribution.version>
98 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
99 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
100 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
101 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
102 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
105 <!-- Support libraries used by OpenDaylight -->
106 <odl.mdsal.version>1.6.1</odl.mdsal.version>
107 <!-- Used by aaa, vtn -->
108 <commons.codec.version>1.10</commons.codec.version>
109 <!-- Used by netconf, ovsdb -->
110 <commons.lang3.version>3.6</commons.lang3.version>
111 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
112 <commons.lang.version>2.6</commons.lang.version>
113 <!-- Used by neutron; see also controller, vtn -->
114 <commons.net.version>3.6</commons.net.version>
115 <!-- Used by neutron -->
116 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
118 <felix.dependencymanager.version>4.3.0</felix.dependencymanager.version>
119 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
120 <gson.version>2.7</gson.version>
121 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
122 <guava.version>22.0</guava.version>
123 <!-- Used by lispflowmapping, sxp, vtn/manager -->
124 <hamcrest.version>1.3</hamcrest.version>
125 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
126 integration/distribution, snmp4sdn, toolkit, ttp -->
127 <jackson.version>2.3.2</jackson.version>
128 <!-- Used by snmp4sdn, yangtools -->
129 <javassist.version>3.20.0-GA</javassist.version>
131 <!-- FIXME remove all dependencies for jersey 1.17 after migration
133 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity,
134 defense4all, snmp4sdn, toolkit -->
135 <jersey.version>1.17</jersey.version>
137 <jersey.client.version>1.17</jersey.client.version>
139 <!-- New packages for jersey migration 1.17 to 2.8 -->
140 <!-- appache.geronimo.bundle for DocGen -->
141 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
142 <org.json.version>20131018</org.json.version>
145 <jettison.version>1.3.7</jettison.version>
146 <!-- Used by persistence -->
147 <jsr305.api.version>3.0.0</jsr305.api.version>
148 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
149 is fixed (either in PowerMock or with a new JUnit release) -->
150 <!-- Used everywhere -->
151 <junit.version>4.11</junit.version>
152 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity,
154 <logback.version>1.2.2</logback.version>
155 <!-- Used by nic, sfc, sxp, tsdr -->
156 <mockito.version>1.10.19</mockito.version>
157 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
158 <netty.version>4.1.8.Final</netty.version>
159 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also
160 affinity, toolkit -->
161 <slf4j.version>1.7.21</slf4j.version>
162 <!-- Used in integration/distribution; see also affinity, snmp4sdn,
163 toolkit, tsdr, ttp -->
164 <spring.version>3.2.17.RELEASE</spring.version>
168 <!-- Extra support libraries used by SDN-C -->
169 <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
170 <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
171 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
172 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
173 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
174 <antlr.version>4.7</antlr.version>
175 <mysql.connector.version>5.1.39</mysql.connector.version>
176 <mariadb.connector.version>2.1.1</mariadb.connector.version>
177 <h2database.version>1.4.186</h2database.version>
179 <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.ccsdk.sli.core</groupId>
445 <artifactId>sli-common</artifactId>
446 <version>${ccsdk.sli.core.version}</version>
450 <groupId>org.onap.ccsdk.sli.core</groupId>
451 <artifactId>sli-provider</artifactId>
452 <version>${ccsdk.sli.core.version}</version>
455 <groupId>org.onap.ccsdk.sli.core</groupId>
456 <artifactId>ccsdk-sli</artifactId>
457 <version>${ccsdk.sli.core.version}</version>
459 <classifier>features</classifier>
462 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
463 <artifactId>aai-service-provider</artifactId>
464 <version>${sdnctl.aai.service.version}</version>
468 <groupId>org.onap.ccsdk.sli.core</groupId>
469 <artifactId>dblib-provider</artifactId>
470 <version>${sdnctl.dblib.version}</version>
474 <groupId>org.testng</groupId>
475 <artifactId>testng</artifactId>
476 <version>6.11</version>
479 <groupId>org.springframework</groupId>
480 <artifactId>spring-test</artifactId>
481 <version>${spring.version}</version>
484 <groupId>org.springframework</groupId>
485 <artifactId>spring-beans</artifactId>
486 <version>${spring.version}</version>
489 <groupId>org.springframework</groupId>
490 <artifactId>spring-context</artifactId>
491 <version>${spring.version}</version>
495 </dependencyManagement>
501 <artifactId>maven-javadoc-plugin</artifactId>
502 <version>2.10.4</version>
504 <failOnError>false</failOnError>
505 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
507 <groupId>org.umlgraph</groupId>
508 <artifactId>umlgraph</artifactId>
509 <version>5.6</version>
511 <additionalparam>-views</additionalparam>
512 <useStandardDocletOptions>true</useStandardDocletOptions>
513 <excludePackageNames>org.opendaylight.*</excludePackageNames>
514 <additionalDependencies>
515 <additionalDependency>
516 <groupId>org.slf4j</groupId>
517 <artifactId>slf4j-api</artifactId>
518 <version>${slf4j.version}</version>
519 </additionalDependency>
520 <additionalDependency>
521 <groupId>org.antlr</groupId>
522 <artifactId>antlr4</artifactId>
523 <version>${antlr.version}</version>
524 </additionalDependency>
525 <additionalDependency>
526 <groupId>org.antlr</groupId>
527 <artifactId>antlr4-runtime</artifactId>
528 <version>${antlr.version}</version>
529 </additionalDependency>
531 <additionalDependency>
532 <groupId>com.sun.jersey</groupId>
533 <artifactId>jersey-client</artifactId>
534 <version>${jersey.json.version}</version>
535 </additionalDependency>
536 <additionalDependency>
537 <groupId>com.sun.jersey</groupId>
538 <artifactId>jersey-core</artifactId>
539 <version>${jersey.json.version}</version>
540 </additionalDependency>
541 <additionalDependency>
542 <groupId>org.apache.httpcomponents</groupId>
543 <artifactId>httpcore-osgi</artifactId>
544 <version>${apache.httpcomponents.core.version}</version>
545 </additionalDependency>
546 <additionalDependency>
547 <groupId>org.apache.httpcomponents</groupId>
548 <artifactId>httpclient-osgi</artifactId>
549 <version>${apache.httpcomponents.client.version}</version>
550 </additionalDependency>
551 <additionalDependency>
552 <groupId>com.fasterxml.jackson.core</groupId>
553 <artifactId>jackson-databind</artifactId>
554 <version>${fasterxml.jackson.version}</version>
555 </additionalDependency>
556 <additionalDependency>
557 <groupId>com.fasterxml.jackson.core</groupId>
558 <artifactId>jackson-annotations</artifactId>
559 <version>${fasterxml.jackson.version}</version>
560 </additionalDependency>
561 <additionalDependency>
562 <groupId>com.fasterxml.jackson.core</groupId>
563 <artifactId>jackson-core</artifactId>
564 <version>${fasterxml.jackson.version}</version>
565 </additionalDependency>
566 <additionalDependency>
567 <groupId>commons-lang</groupId>
568 <artifactId>commons-lang</artifactId>
569 <version>${commons.lang.version}</version>
570 </additionalDependency>
571 </additionalDependencies>
576 <report>javadoc-no-fork</report>
577 <report>test-javadoc-no-fork</report>
583 <report>aggregate</report>
584 <report>test-aggregate</report>
590 <groupId>org.apache.maven.plugins</groupId>
591 <artifactId>maven-jxr-plugin</artifactId>
592 <version>2.3</version>
597 <report>aggregate</report>
598 <report>test-aggregate</report>
605 <artifactId>maven-surefire-plugin</artifactId>
606 <version>2.17</version>
609 <groupId>org.apache.maven.plugins</groupId>
610 <artifactId>maven-changelog-plugin</artifactId>
611 <version>2.3</version>
620 <report>changelog</report>
621 <report>file-activity</report>
627 <groupId>org.codehaus.mojo</groupId>
628 <artifactId>taglist-maven-plugin</artifactId>
629 <version>2.4</version>
638 <url>${onap.nexus.public-url}</url>
640 <enabled>true</enabled>
643 <enabled>true</enabled>
647 <id>onap-snapshot</id>
648 <url>${onap.nexus.snapshot-url}</url>
650 <enabled>false</enabled>
653 <enabled>true</enabled>
657 <id>opendaylight-mirror</id>
658 <name>opendaylight-mirror</name>
659 <url>${opendaylight.nexus.public-url}</url>
661 <enabled>true</enabled>
662 <updatePolicy>never</updatePolicy>
665 <enabled>false</enabled>
669 <id>opendaylight-snapshot</id>
670 <name>opendaylight-snapshot</name>
671 <url>${opendaylight.nexus.snapshot-url}</url>
673 <enabled>false</enabled>
676 <enabled>true</enabled>
679 <!-- Black Duck plugin dependencies -->
682 <name>JCenter Repository</name>
683 <url>http://jcenter.bintray.com</url>
688 <name>Restlet Repository</name>
689 <url>http://maven.restlet.com</url>
691 </pluginRepositories>
697 <url>https://nexus.onap.org/content/groups/public</url>
699 <enabled>true</enabled>
700 <updatePolicy>never</updatePolicy>
703 <enabled>true</enabled>
704 <updatePolicy>always</updatePolicy>
708 <id>onap-staging</id>
709 <url>https://nexus.onap.org/content/groups/staging</url>
711 <enabled>true</enabled>
712 <updatePolicy>never</updatePolicy>
715 <enabled>true</enabled>
716 <updatePolicy>always</updatePolicy>
720 <id>ecomp-release</id>
721 <name>onap-repository-releases</name>
722 <url>https://nexus.onap.org/content/repositories/releases</url>
724 <enabled>true</enabled>
725 <updatePolicy>never</updatePolicy>
728 <enabled>false</enabled>
732 <id>ecomp-snapshot</id>
733 <name>onap-repository-snapshots</name>
734 <url>https://nexus.onap.org/content/repositories/snapshots</url>
736 <enabled>false</enabled>
739 <enabled>true</enabled>
743 <id>opendaylight-mirror</id>
744 <name>opendaylight-mirror</name>
745 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
747 <enabled>true</enabled>
748 <updatePolicy>never</updatePolicy>
751 <enabled>false</enabled>
755 <id>opendaylight-snapshot</id>
756 <name>opendaylight-snapshot</name>
757 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
759 <enabled>false</enabled>
762 <enabled>true</enabled>
768 <distributionManagement>
770 <id>ecomp-releases</id>
771 <url>http://nexus.onap.org/content/repositories/releases</url>
774 <id>ecomp-snapshots</id>
775 <url>http://nexus.onap.org/content/repositories/snapshots</url>
776 </snapshotRepository>
777 </distributionManagement>
783 <!-- Plugins from ONAP oparent -->
785 <groupId>org.apache.maven.plugins</groupId>
786 <artifactId>maven-deploy-plugin</artifactId>
787 <!-- This version supports the "deployAtEnd" parameter -->
788 <version>2.8</version>
795 <groupId>org.apache.maven.plugins</groupId>
796 <artifactId>maven-site-plugin</artifactId>
797 <version>3.6</version>
800 <groupId>org.apache.maven.wagon</groupId>
801 <artifactId>wagon-webdav-jackrabbit</artifactId>
802 <version>2.10</version>
805 <groupId>org.apache.maven.doxia</groupId>
806 <artifactId>doxia-core</artifactId>
807 <version>1.7</version>
810 <groupId>org.apache.maven.doxia</groupId>
811 <artifactId>doxia-sink-api</artifactId>
812 <version>1.7</version>
815 <groupId>org.apache.maven.doxia</groupId>
816 <artifactId>doxia-logging-api</artifactId>
817 <version>1.7</version>
822 <id>attach-descriptor</id>
824 <goal>attach-descriptor</goal>
830 <artifactId>maven-checkstyle-plugin</artifactId>
831 <version>2.17</version>
834 <groupId>org.onap.oparent</groupId>
835 <artifactId>checkstyle</artifactId>
836 <version>1.1.0-SNAPSHOT</version>
841 <id>check-license</id>
845 <phase>process-sources</phase>
847 <configLocation>onap-checkstyle/check-license.xml</configLocation>
848 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
849 <includeResources>false</includeResources>
850 <includeTestSourceDirectory>true</includeTestSourceDirectory>
851 <includeTestResources>false</includeTestResources>
852 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
855 <failsOnError>false</failsOnError>
856 <consoleOutput>true</consoleOutput>
864 <phase>process-sources</phase>
866 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
867 with minor changes -->
868 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
869 <!-- <sourceDirectory> is needed so that
870 checkstyle ignores the generated sources directory -->
871 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
872 <includeResources>true</includeResources>
873 <includeTestSourceDirectory>true</includeTestSourceDirectory>
874 <includeTestResources>true</includeTestResources>
877 <failsOnError>false</failsOnError>
878 <consoleOutput>true</consoleOutput>
884 <groupId>org.jacoco</groupId>
885 <artifactId>jacoco-maven-plugin</artifactId>
886 <version>${jacoco.version}</version>
888 <!-- Note: This exclusion list should match <sonar.exclusions>
891 <exclude>**/gen/**</exclude>
892 <exclude>**/generated-sources/**</exclude>
893 <exclude>**/yang-gen/**</exclude>
894 <exclude>**/pax/**</exclude>
898 <!-- Prepares the property pointing to the JaCoCo
899 runtime agent which is passed as VM argument when Maven the Surefire plugin
902 <id>pre-unit-test</id>
904 <goal>prepare-agent</goal>
907 <!-- Sets the path to the file which contains
908 the execution data. -->
909 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
910 <!-- Sets the name of the property containing
911 the settings for JaCoCo runtime agent. -->
912 <propertyName>surefireArgLine</propertyName>
915 <!-- Ensures that the code coverage report for unit
916 tests is created after unit tests have been run. -->
918 <id>post-unit-test</id>
924 <!-- Sets the path to the file which contains
925 the execution data. -->
926 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
927 <!-- Sets the output directory for the code
929 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
933 <id>pre-integration-test</id>
934 <phase>pre-integration-test</phase>
936 <goal>prepare-agent</goal>
939 <!-- Sets the path to the file which contains
940 the execution data. -->
941 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
942 <!-- Sets the name of the property containing
943 the settings for JaCoCo runtime agent. -->
944 <propertyName>failsafeArgLine</propertyName>
947 <!-- Ensures that the code coverage report for integration
948 tests after integration tests have been run. -->
950 <id>post-integration-test</id>
951 <phase>post-integration-test</phase>
956 <!-- Sets the path to the file which contains
957 the execution data. -->
958 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
959 <!-- Sets the output directory for the code
961 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
967 <groupId>org.apache.maven.plugins</groupId>
968 <artifactId>maven-surefire-plugin</artifactId>
969 <version>2.19.1</version>
971 <!-- Sets the VM argument line used when unit tests
973 <argLine>${surefireArgLine}</argLine>
974 <!-- Excludes integration tests when unit tests are
977 <exclude>**/IT*.java</exclude>
982 <groupId>org.apache.maven.plugins</groupId>
983 <artifactId>maven-failsafe-plugin</artifactId>
984 <version>2.19.1</version>
986 <!-- Ensures that both integration-test and verify
987 goals of the Failsafe Maven plugin are executed. -->
989 <id>integration-tests</id>
991 <goal>integration-test</goal>
995 <!-- Sets the VM argument line used when
996 integration tests are run. -->
997 <argLine>${failsafeArgLine}</argLine>
1003 <groupId>org.apache.maven.plugins</groupId>
1004 <artifactId>maven-compiler-plugin</artifactId>
1005 <version>${maven.compile.plugin.version}</version>
1007 <source>${java.version.source}</source>
1008 <target>${java.version.target}</target>
1012 <groupId>org.sonarsource.scanner.maven</groupId>
1013 <artifactId>sonar-maven-plugin</artifactId>
1014 <version>3.3.0.603</version>
1017 <!-- End of plugins from ONAP oparent -->
1020 <groupId>org.apache.maven.plugins</groupId>
1021 <artifactId>maven-javadoc-plugin</artifactId>
1022 <version>2.10</version>
1024 <additionalDependencies>
1025 <additionalDependency>
1026 <groupId>org.slf4j</groupId>
1027 <artifactId>slf4j-api</artifactId>
1028 <version>${slf4j.version}</version>
1029 </additionalDependency>
1030 <additionalDependency>
1031 <groupId>org.antlr</groupId>
1032 <artifactId>antlr4</artifactId>
1033 <version>${antlr.version}</version>
1034 </additionalDependency>
1035 <additionalDependency>
1036 <groupId>org.antlr</groupId>
1037 <artifactId>antlr4-runtime</artifactId>
1038 <version>${antlr.version}</version>
1039 </additionalDependency>
1041 <additionalDependency>
1042 <groupId>com.sun.jersey</groupId>
1043 <artifactId>jersey-client</artifactId>
1044 <version>${jersey.client.version}</version>
1045 </additionalDependency>
1046 <additionalDependency>
1047 <groupId>com.sun.jersey</groupId>
1048 <artifactId>jersey-core</artifactId>
1049 <version>${jersey.version}</version>
1050 </additionalDependency>
1051 <additionalDependency>
1052 <groupId>org.apache.httpcomponents</groupId>
1053 <artifactId>httpcore-osgi</artifactId>
1054 <version>${apache.httpcomponents.core.version}</version>
1055 </additionalDependency>
1056 <additionalDependency>
1057 <groupId>org.apache.httpcomponents</groupId>
1058 <artifactId>httpclient-osgi</artifactId>
1059 <version>${apache.httpcomponents.client.version}</version>
1060 </additionalDependency>
1061 <additionalDependency>
1062 <groupId>com.fasterxml.jackson.core</groupId>
1063 <artifactId>jackson-databind</artifactId>
1064 <version>${jackson.version}</version>
1065 </additionalDependency>
1066 <additionalDependency>
1067 <groupId>com.fasterxml.jackson.core</groupId>
1068 <artifactId>jackson-annotations</artifactId>
1069 <version>${jackson.version}</version>
1070 </additionalDependency>
1071 <additionalDependency>
1072 <groupId>com.fasterxml.jackson.core</groupId>
1073 <artifactId>jackson-core</artifactId>
1074 <version>${jackson.version}</version>
1075 </additionalDependency>
1076 <additionalDependency>
1077 <groupId>commons-lang</groupId>
1078 <artifactId>commons-lang</artifactId>
1079 <version>${commons.lang.version}</version>
1080 </additionalDependency>
1081 </additionalDependencies>
1088 <goal>aggregate</goal>
1096 <artifactId>maven-source-plugin</artifactId>
1097 <version>2.1.1</version>
1100 <id>bundle-sources</id>
1101 <phase>package</phase>
1103 <!-- produce source artifact for main project
1105 <goal>jar-no-fork</goal>
1107 <!-- produce source artifact for project
1109 <goal>test-jar-no-fork</goal>
1121 <!-- Plugins from ONAP oparent -->
1123 <artifactId>maven-checkstyle-plugin</artifactId>
1126 <groupId>org.codehaus.mojo</groupId>
1127 <artifactId>build-helper-maven-plugin</artifactId>
1128 <version>1.12</version>
1130 <!-- Jacoco / Sonar -->
1132 <groupId>org.jacoco</groupId>
1133 <artifactId>jacoco-maven-plugin</artifactId>
1136 <groupId>org.apache.maven.plugins</groupId>
1137 <artifactId>maven-surefire-plugin</artifactId>
1140 <groupId>org.apache.maven.plugins</groupId>
1141 <artifactId>maven-failsafe-plugin</artifactId>
1144 <!-- End of plugins from ONAP oparent -->
1146 <groupId>org.codehaus.mojo</groupId>
1147 <artifactId>properties-maven-plugin</artifactId>
1148 <version>1.0.0</version>
1152 <goal>set-system-properties</goal>
1157 <name>maven.wagon.http.ssl.allowall</name>
1158 <value>${ssl.allowall}</value>
1161 <name>maven.wagon.http.ssl.insecure</name>
1162 <value>${ssl.insecure}</value>
1170 <groupId>org.sonatype.plugins</groupId>
1171 <artifactId>nexus-staging-maven-plugin</artifactId>
1172 <version>1.6.7</version>
1173 <extensions>true</extensions>
1175 <nexusUrl>${onap.nexus.url}</nexusUrl>
1176 <stagingProfileId>176c31dfe190a</stagingProfileId>
1177 <serverId>ecomp-staging</serverId>
1181 <groupId>org.codehaus.mojo</groupId>
1182 <artifactId>versions-maven-plugin</artifactId>
1183 <version>2.5</version>
1185 <processAllModules>true</processAllModules>
1189 <artifactId>maven-scm-plugin</artifactId>
1190 <version>1.8.1</version>
1192 <tag>${project.artifactId}-${project.version}</tag>