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</ccsdk.sli.core.version>
94 <ccsdk.sli.adaptors.version>0.2.1</ccsdk.sli.adaptors.version>
95 <ccsdk.sli.northbound.version>0.2.1</ccsdk.sli.northbound.version>
96 <ccsdk.sli.plugins.version>0.2.1</ccsdk.sli.plugins.version>
97 <ccsdk.distribution.version>0.2.1</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>
187 <!-- Profiles from ONAP oparent -->
189 <id>generate-json</id>
192 <exists>${swagger-properties}</exists>
195 <name>swagger-sdk.generate-json</name>
201 <groupId>org.codehaus.mojo</groupId>
202 <artifactId>properties-maven-plugin</artifactId>
203 <version>1.0.0</version>
206 <phase>initialize</phase>
208 <goal>read-project-properties</goal>
212 <file>${basedir}/src/main/resources/swagger.properties</file>
219 <groupId>com.github.kongchen</groupId>
220 <artifactId>swagger-maven-plugin</artifactId>
221 <version>3.1.4</version>
225 <locations>${api-rest-package}</locations>
226 <schemes>http,https</schemes>
227 <host>${api-host-ip}:${api-host-port}</host>
228 <basePath>${api-base-path}</basePath>
230 <title>${api-title}</title>
231 <version>${api-version}</version>
232 <description>${api-description}</description>
234 <name>${api-license}</name>
237 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
243 <phase>compile</phase>
245 <goal>generate</goal>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-install-plugin</artifactId>
253 <version>2.3.1</version>
256 <id>install-file-id</id>
257 <phase>install</phase>
259 <goal>install-file</goal>
262 <file>${basedir}/src/main/resources/swagger.json</file>
263 <groupId>${project.groupId}</groupId>
264 <artifactId>${project.artifactId}-swagger-schema</artifactId>
265 <version>${project.version}</version>
266 <packaging>json</packaging>
275 <id>generate-sdk</id>
278 <exists>${swagger-json}</exists>
281 <name>swagger-sdk.generate-java-sdk</name>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-antrun-plugin</artifactId>
289 <version>1.8</version>
292 <phase>initialize</phase>
293 <id>ant-create-script</id>
295 <exportAntProperties>true</exportAntProperties>
299 resource="net/sf/antcontrib/antlib.xml"
300 classpathref="maven.plugin.classpath" />
301 <condition property="is_windows"
303 <os family="windows" />
305 <condition property="isLinux"
310 <equals arg1="${is_windows}"
314 name="swagger.sdk.script.file"
315 value="generated-source-script.bat" />
317 file="${project.build.directory}${file.separator}generated-source-script.bat"
319 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
321 file="${project.build.directory}${file.separator}generated-source-script.bat"
323 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
327 name="swagger.sdk.script.file"
328 value="generated-source-script.sh" />
330 file="${project.build.directory}${file.separator}generated-source-script.sh"
332 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
334 file="${project.build.directory}${file.separator}generated-source-script.sh"
336 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
338 file="${project.build.directory}${file.separator}generated-source-script.sh"
351 <groupId>ant-contrib</groupId>
352 <artifactId>ant-contrib</artifactId>
353 <version>1.0b3</version>
356 <artifactId>ant</artifactId>
357 <groupId>ant</groupId>
364 <groupId>io.swagger</groupId>
365 <artifactId>swagger-codegen-maven-plugin</artifactId>
366 <version>2.2.1</version>
370 <goal>generate</goal>
373 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
374 <output>${project.build.directory}/generated-sources</output>
375 <language>java</language>
377 <dateLibrary>joda</dateLibrary>
379 <library>jersey2</library>
380 <groupId>${project.groupId}</groupId>
381 <artifactId>${project.artifactId}-java-sdk</artifactId>
382 <artifactVersion>${project.version}</artifactVersion>
383 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
384 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
385 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
391 <artifactId>exec-maven-plugin</artifactId>
392 <groupId>org.codehaus.mojo</groupId>
393 <version>1.5.0</version>
396 <id>swagger-generate-sources</id>
397 <phase>generate-sources</phase>
402 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-clean-plugin</artifactId>
410 <version>3.0.0</version>
413 <id>clean-generated-files</id>
414 <phase>generate-sources</phase>
421 <directory>${project.build.directory}/generated-sources</directory>
432 <groupId>org.onap.msb.swagger-sdk</groupId>
433 <artifactId>swagger-sdk</artifactId>
434 <version>1.0.0</version>
439 <!-- End of profiles from ONAP oparent -->
444 <dependencyManagement>
447 <groupId>org.onap.ccsdk.sli.core</groupId>
448 <artifactId>sli-common</artifactId>
449 <version>${ccsdk.sli.core.version}</version>
453 <groupId>org.onap.ccsdk.sli.core</groupId>
454 <artifactId>sli-provider</artifactId>
455 <version>${ccsdk.sli.core.version}</version>
458 <groupId>org.onap.ccsdk.sli.core</groupId>
459 <artifactId>ccsdk-sli</artifactId>
460 <version>${ccsdk.sli.core.version}</version>
462 <classifier>features</classifier>
465 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
466 <artifactId>aai-service-provider</artifactId>
467 <version>${sdnctl.aai.service.version}</version>
471 <groupId>org.onap.ccsdk.sli.core</groupId>
472 <artifactId>dblib-provider</artifactId>
473 <version>${sdnctl.dblib.version}</version>
477 <groupId>org.testng</groupId>
478 <artifactId>testng</artifactId>
479 <version>6.11</version>
482 <groupId>org.springframework</groupId>
483 <artifactId>spring-test</artifactId>
484 <version>${spring.version}</version>
487 <groupId>org.springframework</groupId>
488 <artifactId>spring-beans</artifactId>
489 <version>${spring.version}</version>
492 <groupId>org.springframework</groupId>
493 <artifactId>spring-context</artifactId>
494 <version>${spring.version}</version>
497 <groupId>com.att.eelf</groupId>
498 <artifactId>eelf-core</artifactId>
499 <version>${eelf.version}</version>
503 </dependencyManagement>
509 <artifactId>maven-javadoc-plugin</artifactId>
510 <version>2.10.4</version>
512 <failOnError>false</failOnError>
513 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
515 <groupId>org.umlgraph</groupId>
516 <artifactId>umlgraph</artifactId>
517 <version>5.6</version>
519 <additionalparam>-views</additionalparam>
520 <useStandardDocletOptions>true</useStandardDocletOptions>
521 <excludePackageNames>org.opendaylight.*</excludePackageNames>
522 <additionalDependencies>
523 <additionalDependency>
524 <groupId>org.slf4j</groupId>
525 <artifactId>slf4j-api</artifactId>
526 <version>${slf4j.version}</version>
527 </additionalDependency>
528 <additionalDependency>
529 <groupId>org.antlr</groupId>
530 <artifactId>antlr4</artifactId>
531 <version>${antlr.version}</version>
532 </additionalDependency>
533 <additionalDependency>
534 <groupId>org.antlr</groupId>
535 <artifactId>antlr4-runtime</artifactId>
536 <version>${antlr.version}</version>
537 </additionalDependency>
539 <additionalDependency>
540 <groupId>com.sun.jersey</groupId>
541 <artifactId>jersey-client</artifactId>
542 <version>${jersey.json.version}</version>
543 </additionalDependency>
544 <additionalDependency>
545 <groupId>com.sun.jersey</groupId>
546 <artifactId>jersey-core</artifactId>
547 <version>${jersey.json.version}</version>
548 </additionalDependency>
549 <additionalDependency>
550 <groupId>org.apache.httpcomponents</groupId>
551 <artifactId>httpcore-osgi</artifactId>
552 <version>${apache.httpcomponents.core.version}</version>
553 </additionalDependency>
554 <additionalDependency>
555 <groupId>org.apache.httpcomponents</groupId>
556 <artifactId>httpclient-osgi</artifactId>
557 <version>${apache.httpcomponents.client.version}</version>
558 </additionalDependency>
559 <additionalDependency>
560 <groupId>com.fasterxml.jackson.core</groupId>
561 <artifactId>jackson-databind</artifactId>
562 <version>${fasterxml.jackson.version}</version>
563 </additionalDependency>
564 <additionalDependency>
565 <groupId>com.fasterxml.jackson.core</groupId>
566 <artifactId>jackson-annotations</artifactId>
567 <version>${fasterxml.jackson.version}</version>
568 </additionalDependency>
569 <additionalDependency>
570 <groupId>com.fasterxml.jackson.core</groupId>
571 <artifactId>jackson-core</artifactId>
572 <version>${fasterxml.jackson.version}</version>
573 </additionalDependency>
574 <additionalDependency>
575 <groupId>commons-lang</groupId>
576 <artifactId>commons-lang</artifactId>
577 <version>${commons.lang.version}</version>
578 </additionalDependency>
579 </additionalDependencies>
584 <report>javadoc-no-fork</report>
585 <report>test-javadoc-no-fork</report>
591 <report>aggregate</report>
592 <report>test-aggregate</report>
598 <groupId>org.apache.maven.plugins</groupId>
599 <artifactId>maven-jxr-plugin</artifactId>
600 <version>2.3</version>
605 <report>aggregate</report>
606 <report>test-aggregate</report>
613 <artifactId>maven-surefire-plugin</artifactId>
614 <version>2.17</version>
617 <groupId>org.apache.maven.plugins</groupId>
618 <artifactId>maven-changelog-plugin</artifactId>
619 <version>2.3</version>
628 <report>changelog</report>
629 <report>file-activity</report>
635 <groupId>org.codehaus.mojo</groupId>
636 <artifactId>taglist-maven-plugin</artifactId>
637 <version>2.4</version>
646 <url>${onap.nexus.public-url}</url>
648 <enabled>true</enabled>
651 <enabled>true</enabled>
655 <id>onap-staging</id>
656 <url>${onap.nexus.staging-url}</url>
658 <enabled>true</enabled>
661 <enabled>true</enabled>
665 <id>onap-snapshot</id>
666 <url>${onap.nexus.snapshot-url}</url>
668 <enabled>false</enabled>
671 <enabled>true</enabled>
675 <id>opendaylight-mirror</id>
676 <name>opendaylight-mirror</name>
677 <url>${opendaylight.nexus.public-url}</url>
679 <enabled>true</enabled>
680 <updatePolicy>never</updatePolicy>
683 <enabled>false</enabled>
687 <id>opendaylight-snapshot</id>
688 <name>opendaylight-snapshot</name>
689 <url>${opendaylight.nexus.snapshot-url}</url>
691 <enabled>false</enabled>
694 <enabled>true</enabled>
697 <!-- Black Duck plugin dependencies -->
700 <name>JCenter Repository</name>
701 <url>http://jcenter.bintray.com</url>
706 <name>Restlet Repository</name>
707 <url>http://maven.restlet.com</url>
709 </pluginRepositories>
715 <url>https://nexus.onap.org/content/groups/public</url>
717 <enabled>true</enabled>
718 <updatePolicy>never</updatePolicy>
721 <enabled>true</enabled>
722 <updatePolicy>always</updatePolicy>
726 <id>onap-staging</id>
727 <url>https://nexus.onap.org/content/groups/staging</url>
729 <enabled>true</enabled>
730 <updatePolicy>never</updatePolicy>
733 <enabled>true</enabled>
734 <updatePolicy>always</updatePolicy>
738 <id>ecomp-release</id>
739 <name>onap-repository-releases</name>
740 <url>https://nexus.onap.org/content/repositories/releases</url>
742 <enabled>true</enabled>
743 <updatePolicy>never</updatePolicy>
746 <enabled>false</enabled>
750 <id>ecomp-snapshot</id>
751 <name>onap-repository-snapshots</name>
752 <url>https://nexus.onap.org/content/repositories/snapshots</url>
754 <enabled>false</enabled>
757 <enabled>true</enabled>
761 <id>opendaylight-mirror</id>
762 <name>opendaylight-mirror</name>
763 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
765 <enabled>true</enabled>
766 <updatePolicy>never</updatePolicy>
769 <enabled>false</enabled>
773 <id>opendaylight-snapshot</id>
774 <name>opendaylight-snapshot</name>
775 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
777 <enabled>false</enabled>
780 <enabled>true</enabled>
786 <distributionManagement>
788 <id>ecomp-releases</id>
789 <url>http://nexus.onap.org/content/repositories/releases</url>
792 <id>ecomp-snapshots</id>
793 <url>http://nexus.onap.org/content/repositories/snapshots</url>
794 </snapshotRepository>
795 </distributionManagement>
801 <!-- Plugins from ONAP oparent -->
803 <groupId>org.apache.maven.plugins</groupId>
804 <artifactId>maven-deploy-plugin</artifactId>
805 <!-- This version supports the "deployAtEnd" parameter -->
806 <version>2.8</version>
813 <groupId>org.apache.maven.plugins</groupId>
814 <artifactId>maven-site-plugin</artifactId>
815 <version>3.6</version>
818 <groupId>org.apache.maven.wagon</groupId>
819 <artifactId>wagon-webdav-jackrabbit</artifactId>
820 <version>2.10</version>
823 <groupId>org.apache.maven.doxia</groupId>
824 <artifactId>doxia-core</artifactId>
825 <version>1.7</version>
828 <groupId>org.apache.maven.doxia</groupId>
829 <artifactId>doxia-sink-api</artifactId>
830 <version>1.7</version>
833 <groupId>org.apache.maven.doxia</groupId>
834 <artifactId>doxia-logging-api</artifactId>
835 <version>1.7</version>
840 <id>attach-descriptor</id>
842 <goal>attach-descriptor</goal>
848 <artifactId>maven-checkstyle-plugin</artifactId>
849 <version>2.17</version>
852 <groupId>org.onap.oparent</groupId>
853 <artifactId>checkstyle</artifactId>
854 <version>1.1.1</version>
859 <id>check-license</id>
863 <phase>process-sources</phase>
865 <configLocation>onap-checkstyle/check-license.xml</configLocation>
866 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
867 <includeResources>false</includeResources>
868 <includeTestSourceDirectory>true</includeTestSourceDirectory>
869 <includeTestResources>false</includeTestResources>
870 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
873 <failsOnError>false</failsOnError>
874 <consoleOutput>true</consoleOutput>
882 <phase>process-sources</phase>
884 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
885 with minor changes -->
886 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
887 <!-- <sourceDirectory> is needed so that
888 checkstyle ignores the generated sources directory -->
889 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
890 <includeResources>true</includeResources>
891 <includeTestSourceDirectory>true</includeTestSourceDirectory>
892 <includeTestResources>true</includeTestResources>
895 <failsOnError>false</failsOnError>
896 <consoleOutput>true</consoleOutput>
902 <groupId>org.jacoco</groupId>
903 <artifactId>jacoco-maven-plugin</artifactId>
904 <version>${jacoco.version}</version>
906 <!-- Note: This exclusion list should match <sonar.exclusions>
909 <exclude>**/gen/**</exclude>
910 <exclude>**/generated-sources/**</exclude>
911 <exclude>**/yang-gen/**</exclude>
912 <exclude>**/pax/**</exclude>
916 <!-- Prepares the property pointing to the JaCoCo
917 runtime agent which is passed as VM argument when Maven the Surefire plugin
920 <id>pre-unit-test</id>
922 <goal>prepare-agent</goal>
925 <!-- Sets the path to the file which contains
926 the execution data. -->
927 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
928 <!-- Sets the name of the property containing
929 the settings for JaCoCo runtime agent. -->
930 <propertyName>surefireArgLine</propertyName>
933 <!-- Ensures that the code coverage report for unit
934 tests is created after unit tests have been run. -->
936 <id>post-unit-test</id>
942 <!-- Sets the path to the file which contains
943 the execution data. -->
944 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
945 <!-- Sets the output directory for the code
947 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
951 <id>pre-integration-test</id>
952 <phase>pre-integration-test</phase>
954 <goal>prepare-agent</goal>
957 <!-- Sets the path to the file which contains
958 the execution data. -->
959 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
960 <!-- Sets the name of the property containing
961 the settings for JaCoCo runtime agent. -->
962 <propertyName>failsafeArgLine</propertyName>
965 <!-- Ensures that the code coverage report for integration
966 tests after integration tests have been run. -->
968 <id>post-integration-test</id>
969 <phase>post-integration-test</phase>
974 <!-- Sets the path to the file which contains
975 the execution data. -->
976 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
977 <!-- Sets the output directory for the code
979 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
985 <groupId>org.apache.maven.plugins</groupId>
986 <artifactId>maven-surefire-plugin</artifactId>
987 <version>2.19.1</version>
989 <!-- Sets the VM argument line used when unit tests
991 <argLine>${surefireArgLine}</argLine>
992 <!-- Excludes integration tests when unit tests are
995 <exclude>**/IT*.java</exclude>
1000 <groupId>org.apache.maven.plugins</groupId>
1001 <artifactId>maven-failsafe-plugin</artifactId>
1002 <version>2.19.1</version>
1004 <!-- Ensures that both integration-test and verify
1005 goals of the Failsafe Maven plugin are executed. -->
1007 <id>integration-tests</id>
1009 <goal>integration-test</goal>
1013 <!-- Sets the VM argument line used when
1014 integration tests are run. -->
1015 <argLine>${failsafeArgLine}</argLine>
1021 <groupId>org.apache.maven.plugins</groupId>
1022 <artifactId>maven-compiler-plugin</artifactId>
1023 <version>${maven.compile.plugin.version}</version>
1025 <source>${java.version.source}</source>
1026 <target>${java.version.target}</target>
1030 <groupId>org.sonarsource.scanner.maven</groupId>
1031 <artifactId>sonar-maven-plugin</artifactId>
1032 <version>3.3.0.603</version>
1035 <!-- End of plugins from ONAP oparent -->
1038 <groupId>org.apache.maven.plugins</groupId>
1039 <artifactId>maven-javadoc-plugin</artifactId>
1040 <version>2.10</version>
1042 <additionalDependencies>
1043 <additionalDependency>
1044 <groupId>org.slf4j</groupId>
1045 <artifactId>slf4j-api</artifactId>
1046 <version>${slf4j.version}</version>
1047 </additionalDependency>
1048 <additionalDependency>
1049 <groupId>org.antlr</groupId>
1050 <artifactId>antlr4</artifactId>
1051 <version>${antlr.version}</version>
1052 </additionalDependency>
1053 <additionalDependency>
1054 <groupId>org.antlr</groupId>
1055 <artifactId>antlr4-runtime</artifactId>
1056 <version>${antlr.version}</version>
1057 </additionalDependency>
1059 <additionalDependency>
1060 <groupId>com.sun.jersey</groupId>
1061 <artifactId>jersey-client</artifactId>
1062 <version>${jersey.client.version}</version>
1063 </additionalDependency>
1064 <additionalDependency>
1065 <groupId>com.sun.jersey</groupId>
1066 <artifactId>jersey-core</artifactId>
1067 <version>${jersey.version}</version>
1068 </additionalDependency>
1069 <additionalDependency>
1070 <groupId>org.apache.httpcomponents</groupId>
1071 <artifactId>httpcore-osgi</artifactId>
1072 <version>${apache.httpcomponents.core.version}</version>
1073 </additionalDependency>
1074 <additionalDependency>
1075 <groupId>org.apache.httpcomponents</groupId>
1076 <artifactId>httpclient-osgi</artifactId>
1077 <version>${apache.httpcomponents.client.version}</version>
1078 </additionalDependency>
1079 <additionalDependency>
1080 <groupId>com.fasterxml.jackson.core</groupId>
1081 <artifactId>jackson-databind</artifactId>
1082 <version>${jackson.version}</version>
1083 </additionalDependency>
1084 <additionalDependency>
1085 <groupId>com.fasterxml.jackson.core</groupId>
1086 <artifactId>jackson-annotations</artifactId>
1087 <version>${jackson.version}</version>
1088 </additionalDependency>
1089 <additionalDependency>
1090 <groupId>com.fasterxml.jackson.core</groupId>
1091 <artifactId>jackson-core</artifactId>
1092 <version>${jackson.version}</version>
1093 </additionalDependency>
1094 <additionalDependency>
1095 <groupId>commons-lang</groupId>
1096 <artifactId>commons-lang</artifactId>
1097 <version>${commons.lang.version}</version>
1098 </additionalDependency>
1099 </additionalDependencies>
1106 <goal>aggregate</goal>
1114 <artifactId>maven-source-plugin</artifactId>
1115 <version>2.1.1</version>
1118 <id>bundle-sources</id>
1119 <phase>package</phase>
1121 <!-- produce source artifact for main project
1123 <goal>jar-no-fork</goal>
1125 <!-- produce source artifact for project
1127 <goal>test-jar-no-fork</goal>
1139 <!-- Plugins from ONAP oparent -->
1141 <artifactId>maven-checkstyle-plugin</artifactId>
1144 <groupId>org.codehaus.mojo</groupId>
1145 <artifactId>build-helper-maven-plugin</artifactId>
1146 <version>1.12</version>
1148 <!-- Jacoco / Sonar -->
1150 <groupId>org.jacoco</groupId>
1151 <artifactId>jacoco-maven-plugin</artifactId>
1154 <groupId>org.apache.maven.plugins</groupId>
1155 <artifactId>maven-surefire-plugin</artifactId>
1158 <groupId>org.apache.maven.plugins</groupId>
1159 <artifactId>maven-failsafe-plugin</artifactId>
1162 <!-- End of plugins from ONAP oparent -->
1164 <groupId>org.codehaus.mojo</groupId>
1165 <artifactId>properties-maven-plugin</artifactId>
1166 <version>1.0.0</version>
1170 <goal>set-system-properties</goal>
1175 <name>maven.wagon.http.ssl.allowall</name>
1176 <value>${ssl.allowall}</value>
1179 <name>maven.wagon.http.ssl.insecure</name>
1180 <value>${ssl.insecure}</value>
1188 <groupId>org.sonatype.plugins</groupId>
1189 <artifactId>nexus-staging-maven-plugin</artifactId>
1190 <version>1.6.7</version>
1191 <extensions>true</extensions>
1193 <nexusUrl>${onap.nexus.url}</nexusUrl>
1194 <stagingProfileId>176c31dfe190a</stagingProfileId>
1195 <serverId>ecomp-staging</serverId>
1199 <groupId>org.codehaus.mojo</groupId>
1200 <artifactId>versions-maven-plugin</artifactId>
1201 <version>2.5</version>
1203 <processAllModules>true</processAllModules>
1207 <artifactId>maven-scm-plugin</artifactId>
1208 <version>1.8.1</version>
1210 <tag>${project.artifactId}-${project.version}</tag>