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.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.6</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.6</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.7</gson.version>
120 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
121 <guava.version>22.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.7</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.2.2</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.1.8.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.17.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.4.4</apache.httpcomponents.core.version>
172 <apache.httpcomponents.client.version>4.5.2</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.ccsdk.sli.core</groupId>
444 <artifactId>sli-common</artifactId>
445 <version>${ccsdk.sli.core.version}</version>
449 <groupId>org.onap.ccsdk.sli.core</groupId>
450 <artifactId>sli-provider</artifactId>
451 <version>${ccsdk.sli.core.version}</version>
454 <groupId>org.onap.ccsdk.sli.core</groupId>
455 <artifactId>ccsdk-sli</artifactId>
456 <version>${ccsdk.sli.core.version}</version>
458 <classifier>features</classifier>
461 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
462 <artifactId>aai-service-provider</artifactId>
463 <version>${sdnctl.aai.service.version}</version>
467 <groupId>org.onap.ccsdk.sli.core</groupId>
468 <artifactId>dblib-provider</artifactId>
469 <version>${sdnctl.dblib.version}</version>
473 <groupId>org.testng</groupId>
474 <artifactId>testng</artifactId>
475 <version>6.11</version>
478 <groupId>org.springframework</groupId>
479 <artifactId>spring-test</artifactId>
480 <version>${spring.version}</version>
483 <groupId>org.springframework</groupId>
484 <artifactId>spring-beans</artifactId>
485 <version>${spring.version}</version>
488 <groupId>org.springframework</groupId>
489 <artifactId>spring-context</artifactId>
490 <version>${spring.version}</version>
494 </dependencyManagement>
500 <artifactId>maven-javadoc-plugin</artifactId>
501 <version>2.10.4</version>
503 <failOnError>false</failOnError>
504 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
506 <groupId>org.umlgraph</groupId>
507 <artifactId>umlgraph</artifactId>
508 <version>5.6</version>
510 <additionalparam>-views</additionalparam>
511 <useStandardDocletOptions>true</useStandardDocletOptions>
512 <excludePackageNames>org.opendaylight.*</excludePackageNames>
513 <additionalDependencies>
514 <additionalDependency>
515 <groupId>org.slf4j</groupId>
516 <artifactId>slf4j-api</artifactId>
517 <version>${slf4j.version}</version>
518 </additionalDependency>
519 <additionalDependency>
520 <groupId>org.antlr</groupId>
521 <artifactId>antlr4</artifactId>
522 <version>${antlr.version}</version>
523 </additionalDependency>
524 <additionalDependency>
525 <groupId>org.antlr</groupId>
526 <artifactId>antlr4-runtime</artifactId>
527 <version>${antlr.version}</version>
528 </additionalDependency>
530 <additionalDependency>
531 <groupId>com.sun.jersey</groupId>
532 <artifactId>jersey-client</artifactId>
533 <version>${jersey.json.version}</version>
534 </additionalDependency>
535 <additionalDependency>
536 <groupId>com.sun.jersey</groupId>
537 <artifactId>jersey-core</artifactId>
538 <version>${jersey.json.version}</version>
539 </additionalDependency>
540 <additionalDependency>
541 <groupId>org.apache.httpcomponents</groupId>
542 <artifactId>httpcore-osgi</artifactId>
543 <version>${apache.httpcomponents.core.version}</version>
544 </additionalDependency>
545 <additionalDependency>
546 <groupId>org.apache.httpcomponents</groupId>
547 <artifactId>httpclient-osgi</artifactId>
548 <version>${apache.httpcomponents.client.version}</version>
549 </additionalDependency>
550 <additionalDependency>
551 <groupId>com.fasterxml.jackson.core</groupId>
552 <artifactId>jackson-databind</artifactId>
553 <version>${fasterxml.jackson.version}</version>
554 </additionalDependency>
555 <additionalDependency>
556 <groupId>com.fasterxml.jackson.core</groupId>
557 <artifactId>jackson-annotations</artifactId>
558 <version>${fasterxml.jackson.version}</version>
559 </additionalDependency>
560 <additionalDependency>
561 <groupId>com.fasterxml.jackson.core</groupId>
562 <artifactId>jackson-core</artifactId>
563 <version>${fasterxml.jackson.version}</version>
564 </additionalDependency>
565 <additionalDependency>
566 <groupId>commons-lang</groupId>
567 <artifactId>commons-lang</artifactId>
568 <version>${commons.lang.version}</version>
569 </additionalDependency>
570 </additionalDependencies>
575 <report>javadoc-no-fork</report>
576 <report>test-javadoc-no-fork</report>
582 <report>aggregate</report>
583 <report>test-aggregate</report>
589 <groupId>org.apache.maven.plugins</groupId>
590 <artifactId>maven-jxr-plugin</artifactId>
591 <version>2.3</version>
596 <report>aggregate</report>
597 <report>test-aggregate</report>
604 <artifactId>maven-surefire-plugin</artifactId>
605 <version>2.17</version>
608 <groupId>org.apache.maven.plugins</groupId>
609 <artifactId>maven-changelog-plugin</artifactId>
610 <version>2.3</version>
619 <report>changelog</report>
620 <report>file-activity</report>
626 <groupId>org.codehaus.mojo</groupId>
627 <artifactId>taglist-maven-plugin</artifactId>
628 <version>2.4</version>
637 <url>${onap.nexus.public-url}</url>
639 <enabled>true</enabled>
642 <enabled>true</enabled>
646 <id>onap-snapshot</id>
647 <url>${onap.nexus.snapshot-url}</url>
649 <enabled>false</enabled>
652 <enabled>true</enabled>
656 <id>opendaylight-mirror</id>
657 <name>opendaylight-mirror</name>
658 <url>${opendaylight.nexus.public-url}</url>
660 <enabled>true</enabled>
661 <updatePolicy>never</updatePolicy>
664 <enabled>false</enabled>
668 <id>opendaylight-snapshot</id>
669 <name>opendaylight-snapshot</name>
670 <url>${opendaylight.nexus.snapshot-url}</url>
672 <enabled>false</enabled>
675 <enabled>true</enabled>
678 <!-- Black Duck plugin dependencies -->
681 <name>JCenter Repository</name>
682 <url>http://jcenter.bintray.com</url>
687 <name>Restlet Repository</name>
688 <url>http://maven.restlet.com</url>
690 </pluginRepositories>
696 <url>https://nexus.onap.org/content/groups/public</url>
698 <enabled>true</enabled>
699 <updatePolicy>never</updatePolicy>
702 <enabled>true</enabled>
703 <updatePolicy>always</updatePolicy>
707 <id>onap-staging</id>
708 <url>https://nexus.onap.org/content/groups/staging</url>
710 <enabled>true</enabled>
711 <updatePolicy>never</updatePolicy>
714 <enabled>true</enabled>
715 <updatePolicy>always</updatePolicy>
719 <id>ecomp-release</id>
720 <name>onap-repository-releases</name>
721 <url>https://nexus.onap.org/content/repositories/releases</url>
723 <enabled>true</enabled>
724 <updatePolicy>never</updatePolicy>
727 <enabled>false</enabled>
731 <id>ecomp-snapshot</id>
732 <name>onap-repository-snapshots</name>
733 <url>https://nexus.onap.org/content/repositories/snapshots</url>
735 <enabled>false</enabled>
738 <enabled>true</enabled>
742 <id>opendaylight-mirror</id>
743 <name>opendaylight-mirror</name>
744 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
746 <enabled>true</enabled>
747 <updatePolicy>never</updatePolicy>
750 <enabled>false</enabled>
754 <id>opendaylight-snapshot</id>
755 <name>opendaylight-snapshot</name>
756 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
758 <enabled>false</enabled>
761 <enabled>true</enabled>
767 <distributionManagement>
769 <id>ecomp-releases</id>
770 <url>http://nexus.onap.org/content/repositories/releases</url>
773 <id>ecomp-snapshots</id>
774 <url>http://nexus.onap.org/content/repositories/snapshots</url>
775 </snapshotRepository>
776 </distributionManagement>
782 <!-- Plugins from ONAP oparent -->
784 <groupId>org.apache.maven.plugins</groupId>
785 <artifactId>maven-deploy-plugin</artifactId>
786 <!-- This version supports the "deployAtEnd" parameter -->
787 <version>2.8</version>
794 <groupId>org.apache.maven.plugins</groupId>
795 <artifactId>maven-site-plugin</artifactId>
796 <version>3.6</version>
799 <groupId>org.apache.maven.wagon</groupId>
800 <artifactId>wagon-webdav-jackrabbit</artifactId>
801 <version>2.10</version>
804 <groupId>org.apache.maven.doxia</groupId>
805 <artifactId>doxia-core</artifactId>
806 <version>1.7</version>
809 <groupId>org.apache.maven.doxia</groupId>
810 <artifactId>doxia-sink-api</artifactId>
811 <version>1.7</version>
814 <groupId>org.apache.maven.doxia</groupId>
815 <artifactId>doxia-logging-api</artifactId>
816 <version>1.7</version>
821 <id>attach-descriptor</id>
823 <goal>attach-descriptor</goal>
829 <artifactId>maven-checkstyle-plugin</artifactId>
830 <version>2.17</version>
833 <groupId>org.onap.oparent</groupId>
834 <artifactId>checkstyle</artifactId>
835 <version>1.1.0-SNAPSHOT</version>
840 <id>check-license</id>
844 <phase>process-sources</phase>
846 <configLocation>onap-checkstyle/check-license.xml</configLocation>
847 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
848 <includeResources>false</includeResources>
849 <includeTestSourceDirectory>true</includeTestSourceDirectory>
850 <includeTestResources>false</includeTestResources>
851 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
854 <failsOnError>false</failsOnError>
855 <consoleOutput>true</consoleOutput>
863 <phase>process-sources</phase>
865 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
866 with minor changes -->
867 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
868 <!-- <sourceDirectory> is needed so that
869 checkstyle ignores the generated sources directory -->
870 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
871 <includeResources>true</includeResources>
872 <includeTestSourceDirectory>true</includeTestSourceDirectory>
873 <includeTestResources>true</includeTestResources>
876 <failsOnError>false</failsOnError>
877 <consoleOutput>true</consoleOutput>
883 <groupId>org.jacoco</groupId>
884 <artifactId>jacoco-maven-plugin</artifactId>
885 <version>${jacoco.version}</version>
887 <!-- Note: This exclusion list should match <sonar.exclusions>
890 <exclude>**/gen/**</exclude>
891 <exclude>**/generated-sources/**</exclude>
892 <exclude>**/yang-gen/**</exclude>
893 <exclude>**/pax/**</exclude>
897 <!-- Prepares the property pointing to the JaCoCo
898 runtime agent which is passed as VM argument when Maven the Surefire plugin
901 <id>pre-unit-test</id>
903 <goal>prepare-agent</goal>
906 <!-- Sets the path to the file which contains
907 the execution data. -->
908 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
909 <!-- Sets the name of the property containing
910 the settings for JaCoCo runtime agent. -->
911 <propertyName>surefireArgLine</propertyName>
914 <!-- Ensures that the code coverage report for unit
915 tests is created after unit tests have been run. -->
917 <id>post-unit-test</id>
923 <!-- Sets the path to the file which contains
924 the execution data. -->
925 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
926 <!-- Sets the output directory for the code
928 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
932 <id>pre-integration-test</id>
933 <phase>pre-integration-test</phase>
935 <goal>prepare-agent</goal>
938 <!-- Sets the path to the file which contains
939 the execution data. -->
940 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
941 <!-- Sets the name of the property containing
942 the settings for JaCoCo runtime agent. -->
943 <propertyName>failsafeArgLine</propertyName>
946 <!-- Ensures that the code coverage report for integration
947 tests after integration tests have been run. -->
949 <id>post-integration-test</id>
950 <phase>post-integration-test</phase>
955 <!-- Sets the path to the file which contains
956 the execution data. -->
957 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
958 <!-- Sets the output directory for the code
960 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
966 <groupId>org.apache.maven.plugins</groupId>
967 <artifactId>maven-surefire-plugin</artifactId>
968 <version>2.19.1</version>
970 <!-- Sets the VM argument line used when unit tests
972 <argLine>${surefireArgLine}</argLine>
973 <!-- Excludes integration tests when unit tests are
976 <exclude>**/IT*.java</exclude>
981 <groupId>org.apache.maven.plugins</groupId>
982 <artifactId>maven-failsafe-plugin</artifactId>
983 <version>2.19.1</version>
985 <!-- Ensures that both integration-test and verify
986 goals of the Failsafe Maven plugin are executed. -->
988 <id>integration-tests</id>
990 <goal>integration-test</goal>
994 <!-- Sets the VM argument line used when
995 integration tests are run. -->
996 <argLine>${failsafeArgLine}</argLine>
1002 <groupId>org.apache.maven.plugins</groupId>
1003 <artifactId>maven-compiler-plugin</artifactId>
1004 <version>${maven.compile.plugin.version}</version>
1006 <source>${java.version.source}</source>
1007 <target>${java.version.target}</target>
1011 <groupId>org.sonarsource.scanner.maven</groupId>
1012 <artifactId>sonar-maven-plugin</artifactId>
1013 <version>3.3.0.603</version>
1016 <!-- End of plugins from ONAP oparent -->
1019 <groupId>org.apache.maven.plugins</groupId>
1020 <artifactId>maven-javadoc-plugin</artifactId>
1021 <version>2.10</version>
1023 <additionalDependencies>
1024 <additionalDependency>
1025 <groupId>org.slf4j</groupId>
1026 <artifactId>slf4j-api</artifactId>
1027 <version>${slf4j.version}</version>
1028 </additionalDependency>
1029 <additionalDependency>
1030 <groupId>org.antlr</groupId>
1031 <artifactId>antlr4</artifactId>
1032 <version>${antlr.version}</version>
1033 </additionalDependency>
1034 <additionalDependency>
1035 <groupId>org.antlr</groupId>
1036 <artifactId>antlr4-runtime</artifactId>
1037 <version>${antlr.version}</version>
1038 </additionalDependency>
1040 <additionalDependency>
1041 <groupId>com.sun.jersey</groupId>
1042 <artifactId>jersey-client</artifactId>
1043 <version>${jersey.client.version}</version>
1044 </additionalDependency>
1045 <additionalDependency>
1046 <groupId>com.sun.jersey</groupId>
1047 <artifactId>jersey-core</artifactId>
1048 <version>${jersey.version}</version>
1049 </additionalDependency>
1050 <additionalDependency>
1051 <groupId>org.apache.httpcomponents</groupId>
1052 <artifactId>httpcore-osgi</artifactId>
1053 <version>${apache.httpcomponents.core.version}</version>
1054 </additionalDependency>
1055 <additionalDependency>
1056 <groupId>org.apache.httpcomponents</groupId>
1057 <artifactId>httpclient-osgi</artifactId>
1058 <version>${apache.httpcomponents.client.version}</version>
1059 </additionalDependency>
1060 <additionalDependency>
1061 <groupId>com.fasterxml.jackson.core</groupId>
1062 <artifactId>jackson-databind</artifactId>
1063 <version>${jackson.version}</version>
1064 </additionalDependency>
1065 <additionalDependency>
1066 <groupId>com.fasterxml.jackson.core</groupId>
1067 <artifactId>jackson-annotations</artifactId>
1068 <version>${jackson.version}</version>
1069 </additionalDependency>
1070 <additionalDependency>
1071 <groupId>com.fasterxml.jackson.core</groupId>
1072 <artifactId>jackson-core</artifactId>
1073 <version>${jackson.version}</version>
1074 </additionalDependency>
1075 <additionalDependency>
1076 <groupId>commons-lang</groupId>
1077 <artifactId>commons-lang</artifactId>
1078 <version>${commons.lang.version}</version>
1079 </additionalDependency>
1080 </additionalDependencies>
1087 <goal>aggregate</goal>
1095 <artifactId>maven-source-plugin</artifactId>
1096 <version>2.1.1</version>
1099 <id>bundle-sources</id>
1100 <phase>package</phase>
1102 <!-- produce source artifact for main project
1104 <goal>jar-no-fork</goal>
1106 <!-- produce source artifact for project
1108 <goal>test-jar-no-fork</goal>
1120 <!-- Plugins from ONAP oparent -->
1122 <artifactId>maven-checkstyle-plugin</artifactId>
1125 <groupId>org.codehaus.mojo</groupId>
1126 <artifactId>build-helper-maven-plugin</artifactId>
1127 <version>1.12</version>
1129 <!-- Jacoco / Sonar -->
1131 <groupId>org.jacoco</groupId>
1132 <artifactId>jacoco-maven-plugin</artifactId>
1135 <groupId>org.apache.maven.plugins</groupId>
1136 <artifactId>maven-surefire-plugin</artifactId>
1139 <groupId>org.apache.maven.plugins</groupId>
1140 <artifactId>maven-failsafe-plugin</artifactId>
1143 <!-- End of plugins from ONAP oparent -->
1145 <groupId>org.codehaus.mojo</groupId>
1146 <artifactId>properties-maven-plugin</artifactId>
1147 <version>1.0.0</version>
1151 <goal>set-system-properties</goal>
1156 <name>maven.wagon.http.ssl.allowall</name>
1157 <value>${ssl.allowall}</value>
1160 <name>maven.wagon.http.ssl.insecure</name>
1161 <value>${ssl.insecure}</value>
1169 <groupId>org.sonatype.plugins</groupId>
1170 <artifactId>nexus-staging-maven-plugin</artifactId>
1171 <version>1.6.7</version>
1172 <extensions>true</extensions>
1174 <nexusUrl>${onap.nexus.url}</nexusUrl>
1175 <stagingProfileId>176c31dfe190a</stagingProfileId>
1176 <serverId>ecomp-staging</serverId>
1180 <groupId>org.codehaus.mojo</groupId>
1181 <artifactId>versions-maven-plugin</artifactId>
1182 <version>2.5</version>
1184 <processAllModules>true</processAllModules>
1188 <artifactId>maven-scm-plugin</artifactId>
1189 <version>1.8.1</version>
1191 <tag>${project.artifactId}-${project.version}</tag>