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>feature-repo-parent</artifactId>
10 <version>1.1.0-SNAPSHOT</version>
13 <groupId>org.opendaylight.odlparent</groupId>
14 <artifactId>feature-repo-parent</artifactId>
15 <version>2.0.5</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.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.4</ccsdk.sli.core.version>
94 <ccsdk.sli.adaptors.version>0.2.4</ccsdk.sli.adaptors.version>
95 <ccsdk.sli.northbound.version>0.2.4</ccsdk.sli.northbound.version>
96 <ccsdk.sli.plugins.version>0.2.4</ccsdk.sli.plugins.version>
97 <ccsdk.distribution.version>0.2.4</ccsdk.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 <eelf.version>1.0.0</eelf.version>
180 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
182 <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>
469 <groupId>com.att.eelf</groupId>
470 <artifactId>eelf-core</artifactId>
471 <version>${eelf.version}</version>
475 </dependencyManagement>
481 <artifactId>maven-javadoc-plugin</artifactId>
482 <version>2.10.4</version>
484 <failOnError>false</failOnError>
485 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
487 <groupId>org.umlgraph</groupId>
488 <artifactId>umlgraph</artifactId>
489 <version>5.6</version>
491 <additionalparam>-views</additionalparam>
492 <useStandardDocletOptions>true</useStandardDocletOptions>
493 <excludePackageNames>org.opendaylight.*</excludePackageNames>
494 <additionalDependencies>
495 <additionalDependency>
496 <groupId>org.slf4j</groupId>
497 <artifactId>slf4j-api</artifactId>
498 <version>${slf4j.version}</version>
499 </additionalDependency>
500 <additionalDependency>
501 <groupId>org.antlr</groupId>
502 <artifactId>antlr4</artifactId>
503 <version>${antlr.version}</version>
504 </additionalDependency>
505 <additionalDependency>
506 <groupId>org.antlr</groupId>
507 <artifactId>antlr4-runtime</artifactId>
508 <version>${antlr.version}</version>
509 </additionalDependency>
511 <additionalDependency>
512 <groupId>com.sun.jersey</groupId>
513 <artifactId>jersey-client</artifactId>
514 <version>${jersey.json.version}</version>
515 </additionalDependency>
516 <additionalDependency>
517 <groupId>com.sun.jersey</groupId>
518 <artifactId>jersey-core</artifactId>
519 <version>${jersey.json.version}</version>
520 </additionalDependency>
521 <additionalDependency>
522 <groupId>org.apache.httpcomponents</groupId>
523 <artifactId>httpcore-osgi</artifactId>
524 <version>${apache.httpcomponents.core.version}</version>
525 </additionalDependency>
526 <additionalDependency>
527 <groupId>org.apache.httpcomponents</groupId>
528 <artifactId>httpclient-osgi</artifactId>
529 <version>${apache.httpcomponents.client.version}</version>
530 </additionalDependency>
531 <additionalDependency>
532 <groupId>com.fasterxml.jackson.core</groupId>
533 <artifactId>jackson-databind</artifactId>
534 <version>${fasterxml.jackson.version}</version>
535 </additionalDependency>
536 <additionalDependency>
537 <groupId>com.fasterxml.jackson.core</groupId>
538 <artifactId>jackson-annotations</artifactId>
539 <version>${fasterxml.jackson.version}</version>
540 </additionalDependency>
541 <additionalDependency>
542 <groupId>com.fasterxml.jackson.core</groupId>
543 <artifactId>jackson-core</artifactId>
544 <version>${fasterxml.jackson.version}</version>
545 </additionalDependency>
546 <additionalDependency>
547 <groupId>commons-lang</groupId>
548 <artifactId>commons-lang</artifactId>
549 <version>${commons.lang.version}</version>
550 </additionalDependency>
551 </additionalDependencies>
556 <report>javadoc-no-fork</report>
557 <report>test-javadoc-no-fork</report>
563 <report>aggregate</report>
564 <report>test-aggregate</report>
570 <groupId>org.apache.maven.plugins</groupId>
571 <artifactId>maven-jxr-plugin</artifactId>
572 <version>2.3</version>
577 <report>aggregate</report>
578 <report>test-aggregate</report>
585 <artifactId>maven-surefire-plugin</artifactId>
586 <version>2.17</version>
589 <groupId>org.apache.maven.plugins</groupId>
590 <artifactId>maven-changelog-plugin</artifactId>
591 <version>2.3</version>
600 <report>changelog</report>
601 <report>file-activity</report>
607 <groupId>org.codehaus.mojo</groupId>
608 <artifactId>taglist-maven-plugin</artifactId>
609 <version>2.4</version>
618 <url>${onap.nexus.public-url}</url>
620 <enabled>true</enabled>
623 <enabled>true</enabled>
627 <id>onap-staging</id>
628 <url>${onap.nexus.staging-url}</url>
630 <enabled>true</enabled>
633 <enabled>true</enabled>
637 <id>onap-snapshot</id>
638 <url>${onap.nexus.snapshot-url}</url>
640 <enabled>false</enabled>
643 <enabled>true</enabled>
647 <id>opendaylight-mirror</id>
648 <name>opendaylight-mirror</name>
649 <url>${opendaylight.nexus.public-url}</url>
651 <enabled>true</enabled>
652 <updatePolicy>never</updatePolicy>
655 <enabled>false</enabled>
659 <id>opendaylight-snapshot</id>
660 <name>opendaylight-snapshot</name>
661 <url>${opendaylight.nexus.snapshot-url}</url>
663 <enabled>false</enabled>
666 <enabled>true</enabled>
669 <!-- Black Duck plugin dependencies -->
672 <name>JCenter Repository</name>
673 <url>http://jcenter.bintray.com</url>
678 <name>Restlet Repository</name>
679 <url>http://maven.restlet.com</url>
681 </pluginRepositories>
687 <url>https://nexus.onap.org/content/groups/public</url>
689 <enabled>true</enabled>
690 <updatePolicy>never</updatePolicy>
693 <enabled>true</enabled>
694 <updatePolicy>always</updatePolicy>
698 <id>onap-staging</id>
699 <url>https://nexus.onap.org/content/groups/staging</url>
701 <enabled>true</enabled>
702 <updatePolicy>never</updatePolicy>
705 <enabled>true</enabled>
706 <updatePolicy>always</updatePolicy>
710 <id>ecomp-release</id>
711 <name>onap-repository-releases</name>
712 <url>https://nexus.onap.org/content/repositories/releases</url>
714 <enabled>true</enabled>
715 <updatePolicy>never</updatePolicy>
718 <enabled>false</enabled>
722 <id>ecomp-snapshot</id>
723 <name>onap-repository-snapshots</name>
724 <url>https://nexus.onap.org/content/repositories/snapshots</url>
726 <enabled>false</enabled>
729 <enabled>true</enabled>
733 <id>opendaylight-mirror</id>
734 <name>opendaylight-mirror</name>
735 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
737 <enabled>true</enabled>
738 <updatePolicy>never</updatePolicy>
741 <enabled>false</enabled>
745 <id>opendaylight-snapshot</id>
746 <name>opendaylight-snapshot</name>
747 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
749 <enabled>false</enabled>
752 <enabled>true</enabled>
758 <distributionManagement>
760 <id>ecomp-releases</id>
761 <url>http://nexus.onap.org/content/repositories/releases</url>
764 <id>ecomp-snapshots</id>
765 <url>http://nexus.onap.org/content/repositories/snapshots</url>
766 </snapshotRepository>
767 </distributionManagement>
773 <!-- Plugins from ONAP oparent -->
775 <groupId>org.apache.maven.plugins</groupId>
776 <artifactId>maven-deploy-plugin</artifactId>
777 <!-- This version supports the "deployAtEnd" parameter -->
778 <version>2.8</version>
785 <groupId>org.apache.maven.plugins</groupId>
786 <artifactId>maven-site-plugin</artifactId>
787 <version>3.6</version>
790 <groupId>org.apache.maven.wagon</groupId>
791 <artifactId>wagon-webdav-jackrabbit</artifactId>
792 <version>2.10</version>
795 <groupId>org.apache.maven.doxia</groupId>
796 <artifactId>doxia-core</artifactId>
797 <version>1.7</version>
800 <groupId>org.apache.maven.doxia</groupId>
801 <artifactId>doxia-sink-api</artifactId>
802 <version>1.7</version>
805 <groupId>org.apache.maven.doxia</groupId>
806 <artifactId>doxia-logging-api</artifactId>
807 <version>1.7</version>
812 <id>attach-descriptor</id>
814 <goal>attach-descriptor</goal>
820 <artifactId>maven-checkstyle-plugin</artifactId>
821 <version>2.17</version>
824 <groupId>org.onap.oparent</groupId>
825 <artifactId>checkstyle</artifactId>
826 <version>1.1.1</version>
831 <id>check-license</id>
835 <phase>process-sources</phase>
837 <configLocation>onap-checkstyle/check-license.xml</configLocation>
838 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
839 <includeResources>false</includeResources>
840 <includeTestSourceDirectory>true</includeTestSourceDirectory>
841 <includeTestResources>false</includeTestResources>
842 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
845 <failsOnError>false</failsOnError>
846 <consoleOutput>true</consoleOutput>
854 <phase>process-sources</phase>
856 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
857 with minor changes -->
858 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
859 <!-- <sourceDirectory> is needed so that
860 checkstyle ignores the generated sources directory -->
861 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
862 <includeResources>true</includeResources>
863 <includeTestSourceDirectory>true</includeTestSourceDirectory>
864 <includeTestResources>true</includeTestResources>
867 <failsOnError>false</failsOnError>
868 <consoleOutput>true</consoleOutput>
874 <groupId>org.jacoco</groupId>
875 <artifactId>jacoco-maven-plugin</artifactId>
876 <version>${jacoco.version}</version>
878 <!-- Note: This exclusion list should match <sonar.exclusions>
881 <exclude>**/gen/**</exclude>
882 <exclude>**/generated-sources/**</exclude>
883 <exclude>**/yang-gen/**</exclude>
884 <exclude>**/pax/**</exclude>
888 <!-- Prepares the property pointing to the JaCoCo
889 runtime agent which is passed as VM argument when Maven the Surefire plugin
892 <id>pre-unit-test</id>
894 <goal>prepare-agent</goal>
897 <!-- Sets the path to the file which contains
898 the execution data. -->
899 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
900 <!-- Sets the name of the property containing
901 the settings for JaCoCo runtime agent. -->
902 <propertyName>surefireArgLine</propertyName>
905 <!-- Ensures that the code coverage report for unit
906 tests is created after unit tests have been run. -->
908 <id>post-unit-test</id>
914 <!-- Sets the path to the file which contains
915 the execution data. -->
916 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
917 <!-- Sets the output directory for the code
919 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
923 <id>pre-integration-test</id>
924 <phase>pre-integration-test</phase>
926 <goal>prepare-agent</goal>
929 <!-- Sets the path to the file which contains
930 the execution data. -->
931 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
932 <!-- Sets the name of the property containing
933 the settings for JaCoCo runtime agent. -->
934 <propertyName>failsafeArgLine</propertyName>
937 <!-- Ensures that the code coverage report for integration
938 tests after integration tests have been run. -->
940 <id>post-integration-test</id>
941 <phase>post-integration-test</phase>
946 <!-- Sets the path to the file which contains
947 the execution data. -->
948 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
949 <!-- Sets the output directory for the code
951 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
957 <groupId>org.apache.maven.plugins</groupId>
958 <artifactId>maven-surefire-plugin</artifactId>
959 <version>2.19.1</version>
961 <!-- Sets the VM argument line used when unit tests
963 <argLine>${surefireArgLine}</argLine>
964 <!-- Excludes integration tests when unit tests are
967 <exclude>**/IT*.java</exclude>
972 <groupId>org.apache.maven.plugins</groupId>
973 <artifactId>maven-failsafe-plugin</artifactId>
974 <version>2.19.1</version>
976 <!-- Ensures that both integration-test and verify
977 goals of the Failsafe Maven plugin are executed. -->
979 <id>integration-tests</id>
981 <goal>integration-test</goal>
985 <!-- Sets the VM argument line used when
986 integration tests are run. -->
987 <argLine>${failsafeArgLine}</argLine>
993 <groupId>org.apache.maven.plugins</groupId>
994 <artifactId>maven-compiler-plugin</artifactId>
995 <version>${maven.compile.plugin.version}</version>
997 <source>${java.version.source}</source>
998 <target>${java.version.target}</target>
1002 <groupId>org.sonarsource.scanner.maven</groupId>
1003 <artifactId>sonar-maven-plugin</artifactId>
1004 <version>3.3.0.603</version>
1007 <!-- End of plugins from ONAP oparent -->
1010 <groupId>org.apache.maven.plugins</groupId>
1011 <artifactId>maven-javadoc-plugin</artifactId>
1012 <version>2.10</version>
1014 <additionalDependencies>
1015 <additionalDependency>
1016 <groupId>org.slf4j</groupId>
1017 <artifactId>slf4j-api</artifactId>
1018 <version>${slf4j.version}</version>
1019 </additionalDependency>
1020 <additionalDependency>
1021 <groupId>org.antlr</groupId>
1022 <artifactId>antlr4</artifactId>
1023 <version>${antlr.version}</version>
1024 </additionalDependency>
1025 <additionalDependency>
1026 <groupId>org.antlr</groupId>
1027 <artifactId>antlr4-runtime</artifactId>
1028 <version>${antlr.version}</version>
1029 </additionalDependency>
1031 <additionalDependency>
1032 <groupId>com.sun.jersey</groupId>
1033 <artifactId>jersey-client</artifactId>
1034 <version>${jersey.client.version}</version>
1035 </additionalDependency>
1036 <additionalDependency>
1037 <groupId>com.sun.jersey</groupId>
1038 <artifactId>jersey-core</artifactId>
1039 <version>${jersey.version}</version>
1040 </additionalDependency>
1041 <additionalDependency>
1042 <groupId>org.apache.httpcomponents</groupId>
1043 <artifactId>httpcore-osgi</artifactId>
1044 <version>${apache.httpcomponents.core.version}</version>
1045 </additionalDependency>
1046 <additionalDependency>
1047 <groupId>org.apache.httpcomponents</groupId>
1048 <artifactId>httpclient-osgi</artifactId>
1049 <version>${apache.httpcomponents.client.version}</version>
1050 </additionalDependency>
1051 <additionalDependency>
1052 <groupId>com.fasterxml.jackson.core</groupId>
1053 <artifactId>jackson-databind</artifactId>
1054 <version>${jackson.version}</version>
1055 </additionalDependency>
1056 <additionalDependency>
1057 <groupId>com.fasterxml.jackson.core</groupId>
1058 <artifactId>jackson-annotations</artifactId>
1059 <version>${jackson.version}</version>
1060 </additionalDependency>
1061 <additionalDependency>
1062 <groupId>com.fasterxml.jackson.core</groupId>
1063 <artifactId>jackson-core</artifactId>
1064 <version>${jackson.version}</version>
1065 </additionalDependency>
1066 <additionalDependency>
1067 <groupId>commons-lang</groupId>
1068 <artifactId>commons-lang</artifactId>
1069 <version>${commons.lang.version}</version>
1070 </additionalDependency>
1071 </additionalDependencies>
1078 <goal>aggregate</goal>
1086 <artifactId>maven-source-plugin</artifactId>
1087 <version>2.1.1</version>
1090 <id>bundle-sources</id>
1091 <phase>package</phase>
1093 <!-- produce source artifact for main project
1095 <goal>jar-no-fork</goal>
1097 <!-- produce source artifact for project
1099 <goal>test-jar-no-fork</goal>
1111 <!-- Plugins from ONAP oparent -->
1113 <artifactId>maven-checkstyle-plugin</artifactId>
1116 <groupId>org.codehaus.mojo</groupId>
1117 <artifactId>build-helper-maven-plugin</artifactId>
1118 <version>1.12</version>
1120 <!-- Jacoco / Sonar -->
1122 <groupId>org.jacoco</groupId>
1123 <artifactId>jacoco-maven-plugin</artifactId>
1126 <groupId>org.apache.maven.plugins</groupId>
1127 <artifactId>maven-surefire-plugin</artifactId>
1130 <groupId>org.apache.maven.plugins</groupId>
1131 <artifactId>maven-failsafe-plugin</artifactId>
1134 <!-- End of plugins from ONAP oparent -->
1136 <groupId>org.codehaus.mojo</groupId>
1137 <artifactId>properties-maven-plugin</artifactId>
1138 <version>1.0.0</version>
1142 <goal>set-system-properties</goal>
1147 <name>maven.wagon.http.ssl.allowall</name>
1148 <value>${ssl.allowall}</value>
1151 <name>maven.wagon.http.ssl.insecure</name>
1152 <value>${ssl.insecure}</value>
1160 <groupId>org.sonatype.plugins</groupId>
1161 <artifactId>nexus-staging-maven-plugin</artifactId>
1162 <version>1.6.7</version>
1163 <extensions>true</extensions>
1165 <nexusUrl>${onap.nexus.url}</nexusUrl>
1166 <stagingProfileId>176c31dfe190a</stagingProfileId>
1167 <serverId>ecomp-staging</serverId>
1171 <groupId>org.codehaus.mojo</groupId>
1172 <artifactId>versions-maven-plugin</artifactId>
1173 <version>2.5</version>
1175 <processAllModules>true</processAllModules>
1179 <artifactId>maven-scm-plugin</artifactId>
1180 <version>1.8.1</version>
1182 <tag>${project.artifactId}-${project.version}</tag>