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>bundle-parent</artifactId>
10 <version>1.0.1-SNAPSHOT</version>
13 <groupId>org.opendaylight.odlparent</groupId>
14 <artifactId>bundle-parent</artifactId>
15 <version>2.0.4</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 <ccsdl.distribution.version>0.2.1-SNAPSHOT</ccsdl.distribution.version>
100 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
101 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
102 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
103 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
104 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
107 <!-- Support libraries used by OpenDaylight -->
108 <odl.mdsal.version>1.6.1</odl.mdsal.version>
109 <!-- Used by aaa, vtn -->
110 <commons.codec.version>1.10</commons.codec.version>
111 <!-- Used by netconf, ovsdb -->
112 <commons.lang3.version>3.6</commons.lang3.version>
113 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
114 <commons.lang.version>2.6</commons.lang.version>
115 <!-- Used by neutron; see also controller, vtn -->
116 <commons.net.version>3.6</commons.net.version>
117 <!-- Used by neutron -->
118 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
120 <felix.dependencymanager.version>4.3.0</felix.dependencymanager.version>
121 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
122 <gson.version>2.7</gson.version>
123 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
124 <guava.version>22.0</guava.version>
125 <!-- Used by lispflowmapping, sxp, vtn/manager -->
126 <hamcrest.version>1.3</hamcrest.version>
127 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
128 integration/distribution, snmp4sdn, toolkit, ttp -->
129 <jackson.version>2.3.2</jackson.version>
130 <!-- Used by snmp4sdn, yangtools -->
131 <javassist.version>3.20.0-GA</javassist.version>
133 <!-- FIXME remove all dependencies for jersey 1.17 after migration
135 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity,
136 defense4all, snmp4sdn, toolkit -->
137 <jersey.version>1.17</jersey.version>
139 <jersey.client.version>1.17</jersey.client.version>
141 <!-- New packages for jersey migration 1.17 to 2.8 -->
142 <!-- appache.geronimo.bundle for DocGen -->
143 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
144 <org.json.version>20131018</org.json.version>
147 <jettison.version>1.3.7</jettison.version>
148 <!-- Used by persistence -->
149 <jsr305.api.version>3.0.0</jsr305.api.version>
150 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
151 is fixed (either in PowerMock or with a new JUnit release) -->
152 <!-- Used everywhere -->
153 <junit.version>4.11</junit.version>
154 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity,
156 <logback.version>1.2.2</logback.version>
157 <!-- Used by nic, sfc, sxp, tsdr -->
158 <mockito.version>1.10.19</mockito.version>
159 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
160 <netty.version>4.1.8.Final</netty.version>
161 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also
162 affinity, toolkit -->
163 <slf4j.version>1.7.21</slf4j.version>
164 <!-- Used in integration/distribution; see also affinity, snmp4sdn,
165 toolkit, tsdr, ttp -->
166 <spring.version>5.0.4.RELEASE</spring.version>
170 <!-- Extra support libraries used by SDN-C -->
171 <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
172 <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
173 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
174 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
175 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
176 <antlr.version>4.7</antlr.version>
177 <mysql.connector.version>5.1.39</mysql.connector.version>
178 <mariadb.connector.version>2.1.1</mariadb.connector.version>
179 <h2database.version>1.4.186</h2database.version>
181 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
186 <!-- Profiles from ONAP oparent -->
188 <id>generate-json</id>
191 <exists>${swagger-properties}</exists>
194 <name>swagger-sdk.generate-json</name>
200 <groupId>org.codehaus.mojo</groupId>
201 <artifactId>properties-maven-plugin</artifactId>
202 <version>1.0.0</version>
205 <phase>initialize</phase>
207 <goal>read-project-properties</goal>
211 <file>${basedir}/src/main/resources/swagger.properties</file>
218 <groupId>com.github.kongchen</groupId>
219 <artifactId>swagger-maven-plugin</artifactId>
220 <version>3.1.4</version>
224 <locations>${api-rest-package}</locations>
225 <schemes>http,https</schemes>
226 <host>${api-host-ip}:${api-host-port}</host>
227 <basePath>${api-base-path}</basePath>
229 <title>${api-title}</title>
230 <version>${api-version}</version>
231 <description>${api-description}</description>
233 <name>${api-license}</name>
236 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
242 <phase>compile</phase>
244 <goal>generate</goal>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-install-plugin</artifactId>
252 <version>2.3.1</version>
255 <id>install-file-id</id>
256 <phase>install</phase>
258 <goal>install-file</goal>
261 <file>${basedir}/src/main/resources/swagger.json</file>
262 <groupId>${project.groupId}</groupId>
263 <artifactId>${project.artifactId}-swagger-schema</artifactId>
264 <version>${project.version}</version>
265 <packaging>json</packaging>
274 <id>generate-sdk</id>
277 <exists>${swagger-json}</exists>
280 <name>swagger-sdk.generate-java-sdk</name>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-antrun-plugin</artifactId>
288 <version>1.8</version>
291 <phase>initialize</phase>
292 <id>ant-create-script</id>
294 <exportAntProperties>true</exportAntProperties>
298 resource="net/sf/antcontrib/antlib.xml"
299 classpathref="maven.plugin.classpath" />
300 <condition property="is_windows"
302 <os family="windows" />
304 <condition property="isLinux"
309 <equals arg1="${is_windows}"
313 name="swagger.sdk.script.file"
314 value="generated-source-script.bat" />
316 file="${project.build.directory}${file.separator}generated-source-script.bat"
318 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
320 file="${project.build.directory}${file.separator}generated-source-script.bat"
322 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
326 name="swagger.sdk.script.file"
327 value="generated-source-script.sh" />
329 file="${project.build.directory}${file.separator}generated-source-script.sh"
331 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
333 file="${project.build.directory}${file.separator}generated-source-script.sh"
335 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
337 file="${project.build.directory}${file.separator}generated-source-script.sh"
350 <groupId>ant-contrib</groupId>
351 <artifactId>ant-contrib</artifactId>
352 <version>1.0b3</version>
355 <artifactId>ant</artifactId>
356 <groupId>ant</groupId>
363 <groupId>io.swagger</groupId>
364 <artifactId>swagger-codegen-maven-plugin</artifactId>
365 <version>2.2.1</version>
369 <goal>generate</goal>
372 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
373 <output>${project.build.directory}/generated-sources</output>
374 <language>java</language>
376 <dateLibrary>joda</dateLibrary>
378 <library>jersey2</library>
379 <groupId>${project.groupId}</groupId>
380 <artifactId>${project.artifactId}-java-sdk</artifactId>
381 <artifactVersion>${project.version}</artifactVersion>
382 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
383 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
384 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
390 <artifactId>exec-maven-plugin</artifactId>
391 <groupId>org.codehaus.mojo</groupId>
392 <version>1.5.0</version>
395 <id>swagger-generate-sources</id>
396 <phase>generate-sources</phase>
401 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
407 <groupId>org.apache.maven.plugins</groupId>
408 <artifactId>maven-clean-plugin</artifactId>
409 <version>3.0.0</version>
412 <id>clean-generated-files</id>
413 <phase>generate-sources</phase>
420 <directory>${project.build.directory}/generated-sources</directory>
431 <groupId>org.onap.msb.swagger-sdk</groupId>
432 <artifactId>swagger-sdk</artifactId>
433 <version>1.0.0</version>
438 <!-- End of profiles from ONAP oparent -->
443 <dependencyManagement>
446 <groupId>org.onap.sdnc.core</groupId>
447 <artifactId>sli-common</artifactId>
448 <version>${sdnctl.sli.version}</version>
452 <groupId>org.onap.sdnc.core</groupId>
453 <artifactId>sli-provider</artifactId>
454 <version>${sdnctl.sli.version}</version>
458 <groupId>org.onap.sdnc.core</groupId>
459 <artifactId>aai-service-provider</artifactId>
460 <version>${sdnctl.aai.service.version}</version>
464 <groupId>org.onap.sdnc.core</groupId>
465 <artifactId>dblib-provider</artifactId>
466 <version>${sdnctl.dblib.version}</version>
470 </dependencyManagement>
476 <artifactId>maven-javadoc-plugin</artifactId>
477 <version>2.10.4</version>
479 <failOnError>false</failOnError>
480 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
482 <groupId>org.umlgraph</groupId>
483 <artifactId>umlgraph</artifactId>
484 <version>5.6</version>
486 <additionalparam>-views</additionalparam>
487 <useStandardDocletOptions>true</useStandardDocletOptions>
488 <excludePackageNames>org.opendaylight.*</excludePackageNames>
489 <additionalDependencies>
490 <additionalDependency>
491 <groupId>org.slf4j</groupId>
492 <artifactId>slf4j-api</artifactId>
493 <version>${slf4j.version}</version>
494 </additionalDependency>
495 <additionalDependency>
496 <groupId>org.antlr</groupId>
497 <artifactId>antlr4</artifactId>
498 <version>${antlr.version}</version>
499 </additionalDependency>
500 <additionalDependency>
501 <groupId>org.antlr</groupId>
502 <artifactId>antlr4-runtime</artifactId>
503 <version>${antlr.version}</version>
504 </additionalDependency>
506 <additionalDependency>
507 <groupId>com.sun.jersey</groupId>
508 <artifactId>jersey-client</artifactId>
509 <version>${jersey.json.version}</version>
510 </additionalDependency>
511 <additionalDependency>
512 <groupId>com.sun.jersey</groupId>
513 <artifactId>jersey-core</artifactId>
514 <version>${jersey.json.version}</version>
515 </additionalDependency>
516 <additionalDependency>
517 <groupId>org.apache.httpcomponents</groupId>
518 <artifactId>httpcore-osgi</artifactId>
519 <version>${apache.httpcomponents.core.version}</version>
520 </additionalDependency>
521 <additionalDependency>
522 <groupId>org.apache.httpcomponents</groupId>
523 <artifactId>httpclient-osgi</artifactId>
524 <version>${apache.httpcomponents.client.version}</version>
525 </additionalDependency>
526 <additionalDependency>
527 <groupId>com.fasterxml.jackson.core</groupId>
528 <artifactId>jackson-databind</artifactId>
529 <version>${fasterxml.jackson.version}</version>
530 </additionalDependency>
531 <additionalDependency>
532 <groupId>com.fasterxml.jackson.core</groupId>
533 <artifactId>jackson-annotations</artifactId>
534 <version>${fasterxml.jackson.version}</version>
535 </additionalDependency>
536 <additionalDependency>
537 <groupId>com.fasterxml.jackson.core</groupId>
538 <artifactId>jackson-core</artifactId>
539 <version>${fasterxml.jackson.version}</version>
540 </additionalDependency>
541 <additionalDependency>
542 <groupId>commons-lang</groupId>
543 <artifactId>commons-lang</artifactId>
544 <version>${commons.lang.version}</version>
545 </additionalDependency>
546 </additionalDependencies>
551 <report>javadoc-no-fork</report>
552 <report>test-javadoc-no-fork</report>
558 <report>aggregate</report>
559 <report>test-aggregate</report>
565 <groupId>org.apache.maven.plugins</groupId>
566 <artifactId>maven-jxr-plugin</artifactId>
567 <version>2.3</version>
572 <report>aggregate</report>
573 <report>test-aggregate</report>
580 <artifactId>maven-surefire-plugin</artifactId>
581 <version>2.17</version>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-changelog-plugin</artifactId>
586 <version>2.3</version>
595 <report>changelog</report>
596 <report>file-activity</report>
602 <groupId>org.codehaus.mojo</groupId>
603 <artifactId>taglist-maven-plugin</artifactId>
604 <version>2.4</version>
613 <url>${onap.nexus.public-url}</url>
615 <enabled>true</enabled>
618 <enabled>true</enabled>
622 <id>onap-snapshot</id>
623 <url>${onap.nexus.snapshot-url}</url>
625 <enabled>false</enabled>
628 <enabled>true</enabled>
632 <id>opendaylight-mirror</id>
633 <name>opendaylight-mirror</name>
634 <url>${opendaylight.nexus.public-url}</url>
636 <enabled>true</enabled>
637 <updatePolicy>never</updatePolicy>
640 <enabled>false</enabled>
644 <id>opendaylight-snapshot</id>
645 <name>opendaylight-snapshot</name>
646 <url>${opendaylight.nexus.snapshot-url}</url>
648 <enabled>false</enabled>
651 <enabled>true</enabled>
654 <!-- Black Duck plugin dependencies -->
657 <name>JCenter Repository</name>
658 <url>http://jcenter.bintray.com</url>
663 <name>Restlet Repository</name>
664 <url>http://maven.restlet.com</url>
666 </pluginRepositories>
672 <url>https://nexus.onap.org/content/groups/public</url>
674 <enabled>true</enabled>
675 <updatePolicy>never</updatePolicy>
678 <enabled>true</enabled>
679 <updatePolicy>always</updatePolicy>
683 <id>onap-staging</id>
684 <url>https://nexus.onap.org/content/groups/staging</url>
686 <enabled>true</enabled>
687 <updatePolicy>never</updatePolicy>
690 <enabled>true</enabled>
691 <updatePolicy>always</updatePolicy>
695 <id>ecomp-release</id>
696 <name>onap-repository-releases</name>
697 <url>https://nexus.onap.org/content/repositories/releases</url>
699 <enabled>true</enabled>
700 <updatePolicy>never</updatePolicy>
703 <enabled>false</enabled>
707 <id>ecomp-snapshot</id>
708 <name>onap-repository-snapshots</name>
709 <url>https://nexus.onap.org/content/repositories/snapshots</url>
711 <enabled>false</enabled>
714 <enabled>true</enabled>
718 <id>opendaylight-mirror</id>
719 <name>opendaylight-mirror</name>
720 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
722 <enabled>true</enabled>
723 <updatePolicy>never</updatePolicy>
726 <enabled>false</enabled>
730 <id>opendaylight-snapshot</id>
731 <name>opendaylight-snapshot</name>
732 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
734 <enabled>false</enabled>
737 <enabled>true</enabled>
743 <distributionManagement>
745 <id>ecomp-releases</id>
746 <url>http://nexus.onap.org/content/repositories/releases</url>
749 <id>ecomp-snapshots</id>
750 <url>http://nexus.onap.org/content/repositories/snapshots</url>
751 </snapshotRepository>
752 </distributionManagement>
758 <!-- Plugins from ONAP oparent -->
760 <groupId>org.apache.maven.plugins</groupId>
761 <artifactId>maven-deploy-plugin</artifactId>
762 <!-- This version supports the "deployAtEnd" parameter -->
763 <version>2.8</version>
770 <groupId>org.apache.maven.plugins</groupId>
771 <artifactId>maven-site-plugin</artifactId>
772 <version>3.6</version>
775 <groupId>org.apache.maven.wagon</groupId>
776 <artifactId>wagon-webdav-jackrabbit</artifactId>
777 <version>2.10</version>
780 <groupId>org.apache.maven.doxia</groupId>
781 <artifactId>doxia-core</artifactId>
782 <version>1.7</version>
785 <groupId>org.apache.maven.doxia</groupId>
786 <artifactId>doxia-sink-api</artifactId>
787 <version>1.7</version>
790 <groupId>org.apache.maven.doxia</groupId>
791 <artifactId>doxia-logging-api</artifactId>
792 <version>1.7</version>
797 <id>attach-descriptor</id>
799 <goal>attach-descriptor</goal>
805 <artifactId>maven-checkstyle-plugin</artifactId>
806 <version>2.17</version>
809 <groupId>org.onap.oparent</groupId>
810 <artifactId>checkstyle</artifactId>
811 <version>1.1.0-SNAPSHOT</version>
816 <id>check-license</id>
820 <phase>process-sources</phase>
822 <configLocation>onap-checkstyle/check-license.xml</configLocation>
823 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
824 <includeResources>false</includeResources>
825 <includeTestSourceDirectory>true</includeTestSourceDirectory>
826 <includeTestResources>false</includeTestResources>
827 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
830 <failsOnError>false</failsOnError>
831 <consoleOutput>true</consoleOutput>
839 <phase>process-sources</phase>
841 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
842 with minor changes -->
843 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
844 <!-- <sourceDirectory> is needed so that
845 checkstyle ignores the generated sources directory -->
846 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
847 <includeResources>true</includeResources>
848 <includeTestSourceDirectory>true</includeTestSourceDirectory>
849 <includeTestResources>true</includeTestResources>
852 <failsOnError>false</failsOnError>
853 <consoleOutput>true</consoleOutput>
859 <groupId>org.jacoco</groupId>
860 <artifactId>jacoco-maven-plugin</artifactId>
861 <version>${jacoco.version}</version>
863 <!-- Note: This exclusion list should match <sonar.exclusions>
866 <exclude>**/gen/**</exclude>
867 <exclude>**/generated-sources/**</exclude>
868 <exclude>**/yang-gen/**</exclude>
869 <exclude>**/pax/**</exclude>
873 <!-- Prepares the property pointing to the JaCoCo
874 runtime agent which is passed as VM argument when Maven the Surefire plugin
877 <id>pre-unit-test</id>
879 <goal>prepare-agent</goal>
882 <!-- Sets the path to the file which contains
883 the execution data. -->
884 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
885 <!-- Sets the name of the property containing
886 the settings for JaCoCo runtime agent. -->
887 <propertyName>surefireArgLine</propertyName>
890 <!-- Ensures that the code coverage report for unit
891 tests is created after unit tests have been run. -->
893 <id>post-unit-test</id>
899 <!-- Sets the path to the file which contains
900 the execution data. -->
901 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
902 <!-- Sets the output directory for the code
904 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
908 <id>pre-integration-test</id>
909 <phase>pre-integration-test</phase>
911 <goal>prepare-agent</goal>
914 <!-- Sets the path to the file which contains
915 the execution data. -->
916 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
917 <!-- Sets the name of the property containing
918 the settings for JaCoCo runtime agent. -->
919 <propertyName>failsafeArgLine</propertyName>
922 <!-- Ensures that the code coverage report for integration
923 tests after integration tests have been run. -->
925 <id>post-integration-test</id>
926 <phase>post-integration-test</phase>
931 <!-- Sets the path to the file which contains
932 the execution data. -->
933 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
934 <!-- Sets the output directory for the code
936 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
942 <groupId>org.apache.maven.plugins</groupId>
943 <artifactId>maven-surefire-plugin</artifactId>
944 <version>2.19.1</version>
946 <!-- Sets the VM argument line used when unit tests
948 <argLine>${surefireArgLine}</argLine>
949 <!-- Excludes integration tests when unit tests are
952 <exclude>**/IT*.java</exclude>
957 <groupId>org.apache.maven.plugins</groupId>
958 <artifactId>maven-failsafe-plugin</artifactId>
959 <version>2.19.1</version>
961 <!-- Ensures that both integration-test and verify
962 goals of the Failsafe Maven plugin are executed. -->
964 <id>integration-tests</id>
966 <goal>integration-test</goal>
970 <!-- Sets the VM argument line used when
971 integration tests are run. -->
972 <argLine>${failsafeArgLine}</argLine>
978 <groupId>org.apache.maven.plugins</groupId>
979 <artifactId>maven-compiler-plugin</artifactId>
980 <version>${maven.compile.plugin.version}</version>
982 <source>${java.version.source}</source>
983 <target>${java.version.target}</target>
987 <groupId>org.sonarsource.scanner.maven</groupId>
988 <artifactId>sonar-maven-plugin</artifactId>
989 <version>3.3.0.603</version>
992 <!-- End of plugins from ONAP oparent -->
995 <groupId>org.apache.maven.plugins</groupId>
996 <artifactId>maven-javadoc-plugin</artifactId>
997 <version>2.10</version>
999 <additionalDependencies>
1000 <additionalDependency>
1001 <groupId>org.slf4j</groupId>
1002 <artifactId>slf4j-api</artifactId>
1003 <version>${slf4j.version}</version>
1004 </additionalDependency>
1005 <additionalDependency>
1006 <groupId>org.antlr</groupId>
1007 <artifactId>antlr4</artifactId>
1008 <version>${antlr.version}</version>
1009 </additionalDependency>
1010 <additionalDependency>
1011 <groupId>org.antlr</groupId>
1012 <artifactId>antlr4-runtime</artifactId>
1013 <version>${antlr.version}</version>
1014 </additionalDependency>
1016 <additionalDependency>
1017 <groupId>com.sun.jersey</groupId>
1018 <artifactId>jersey-client</artifactId>
1019 <version>${jersey.client.version}</version>
1020 </additionalDependency>
1021 <additionalDependency>
1022 <groupId>com.sun.jersey</groupId>
1023 <artifactId>jersey-core</artifactId>
1024 <version>${jersey.version}</version>
1025 </additionalDependency>
1026 <additionalDependency>
1027 <groupId>org.apache.httpcomponents</groupId>
1028 <artifactId>httpcore-osgi</artifactId>
1029 <version>${apache.httpcomponents.core.version}</version>
1030 </additionalDependency>
1031 <additionalDependency>
1032 <groupId>org.apache.httpcomponents</groupId>
1033 <artifactId>httpclient-osgi</artifactId>
1034 <version>${apache.httpcomponents.client.version}</version>
1035 </additionalDependency>
1036 <additionalDependency>
1037 <groupId>com.fasterxml.jackson.core</groupId>
1038 <artifactId>jackson-databind</artifactId>
1039 <version>${jackson.version}</version>
1040 </additionalDependency>
1041 <additionalDependency>
1042 <groupId>com.fasterxml.jackson.core</groupId>
1043 <artifactId>jackson-annotations</artifactId>
1044 <version>${jackson.version}</version>
1045 </additionalDependency>
1046 <additionalDependency>
1047 <groupId>com.fasterxml.jackson.core</groupId>
1048 <artifactId>jackson-core</artifactId>
1049 <version>${jackson.version}</version>
1050 </additionalDependency>
1051 <additionalDependency>
1052 <groupId>commons-lang</groupId>
1053 <artifactId>commons-lang</artifactId>
1054 <version>${commons.lang.version}</version>
1055 </additionalDependency>
1056 </additionalDependencies>
1063 <goal>aggregate</goal>
1071 <artifactId>maven-source-plugin</artifactId>
1072 <version>2.1.1</version>
1075 <id>bundle-sources</id>
1076 <phase>package</phase>
1078 <!-- produce source artifact for main project
1080 <goal>jar-no-fork</goal>
1082 <!-- produce source artifact for project
1084 <goal>test-jar-no-fork</goal>
1096 <!-- Plugins from ONAP oparent -->
1098 <artifactId>maven-checkstyle-plugin</artifactId>
1101 <groupId>org.codehaus.mojo</groupId>
1102 <artifactId>build-helper-maven-plugin</artifactId>
1103 <version>1.12</version>
1105 <!-- Jacoco / Sonar -->
1107 <groupId>org.jacoco</groupId>
1108 <artifactId>jacoco-maven-plugin</artifactId>
1111 <groupId>org.apache.maven.plugins</groupId>
1112 <artifactId>maven-surefire-plugin</artifactId>
1115 <groupId>org.apache.maven.plugins</groupId>
1116 <artifactId>maven-failsafe-plugin</artifactId>
1119 <!-- End of plugins from ONAP oparent -->
1121 <groupId>org.codehaus.mojo</groupId>
1122 <artifactId>properties-maven-plugin</artifactId>
1123 <version>1.0.0</version>
1127 <goal>set-system-properties</goal>
1132 <name>maven.wagon.http.ssl.allowall</name>
1133 <value>${ssl.allowall}</value>
1136 <name>maven.wagon.http.ssl.insecure</name>
1137 <value>${ssl.insecure}</value>
1145 <groupId>org.sonatype.plugins</groupId>
1146 <artifactId>nexus-staging-maven-plugin</artifactId>
1147 <version>1.6.7</version>
1148 <extensions>true</extensions>
1150 <nexusUrl>${onap.nexus.url}</nexusUrl>
1151 <stagingProfileId>176c31dfe190a</stagingProfileId>
1152 <serverId>ecomp-staging</serverId>
1156 <groupId>org.codehaus.mojo</groupId>
1157 <artifactId>versions-maven-plugin</artifactId>
1158 <version>2.5</version>
1160 <processAllModules>true</processAllModules>
1164 <artifactId>maven-scm-plugin</artifactId>
1165 <version>1.8.1</version>
1167 <tag>${project.artifactId}-${project.version}</tag>