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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/setup/src/main/template/pom-template.xml
6 Any updates needed should be made to that template and not to the generated
9 <groupId>org.opendaylight.odlparent</groupId>
10 <artifactId>odlparent</artifactId>
11 <version>9.0.8</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>odlparent</artifactId>
17 <version>2.3.3-SNAPSHOT</version>
18 <packaging>pom</packaging>
20 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
22 <url>http://wiki.onap.org</url>
29 <url>https://jira.onap.org/</url>
31 <distributionManagement>
33 <id>ecomp-releases</id>
34 <url>${onap.nexus.release-url}</url>
37 <id>ecomp-snapshots</id>
38 <url>${onap.nexus.snapshot-url}</url>
40 </distributionManagement>
43 <!-- Sonar properties -->
44 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
45 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
46 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
47 <!-- Default Sonar configuration -->
48 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
49 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
50 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
52 <!-- Jacoco properties -->
53 <jacoco.version>0.8.5</jacoco.version>
55 <!-- properties from oparent -->
56 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
58 <!-- sitePath may be overridden in the inheriting POM if desired -->
59 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
61 <!-- If following file exist, auto-generation of swagger.json will be done -->
62 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
63 <!-- If following file exist, auto-generation of sdk will be done -->
64 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
65 <!-- end of properties from oparent -->
67 <!-- ONAP repositories -->
68 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
69 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
70 <onap.nexus.port>443</onap.nexus.port>
71 <onap.nexus.protocol>https</onap.nexus.protocol>
72 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
73 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
74 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
75 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
76 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
77 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
79 <!-- OpenDaylight repositories -->
80 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
81 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
83 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
84 <java.version>11</java.version>
85 <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
86 <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
87 <bundle.plugin.version>4.2.1</bundle.plugin.version>
88 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
89 <features.file>features.xml</features.file>
90 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
91 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
92 <checkstyle.plugin.version>3.1.1</checkstyle.plugin.version>
93 <checkstyle.skip>true</checkstyle.skip>
94 <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
96 <!-- logging-analytics versions -->
97 <logging-analytics.version>1.6.9</logging-analytics.version>
99 <!-- CCSDK component versions -->
100 <ccsdk.cds.version>(1.2.99999, 1.3.99999-SNAPSHOT]</ccsdk.cds.version>
101 <ccsdk.features.version>(1.2.99999, 1.3.99999-SNAPSHOT]</ccsdk.features.version>
102 <ccsdk.distribution.version>(1.2.99999, 1.3.99999-SNAPSHOT]</ccsdk.distribution.version>
103 <ccsdk.sli.version>(1.3.99999, 1.4.99999-SNAPSHOT]</ccsdk.sli.version>
104 <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
105 <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
106 <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
107 <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
108 <sdnctl.aai.service.version>${ccsdk.sli.version}</sdnctl.aai.service.version>
109 <sdnctl.dblib.version>${ccsdk.sli.version}</sdnctl.dblib.version>
110 <sdnctl.mdsal.resource.version>${ccsdk.sli.version}</sdnctl.mdsal.resource.version>
111 <sdnctl.slipluginutils.version>${ccsdk.sli.version}</sdnctl.slipluginutils.version>
113 <!-- Support libraries used by OpenDaylight -->
114 <odl.controller.mdsal.version>8.0.7</odl.controller.mdsal.version>
115 <odl.mdsal.version>9.0.8</odl.mdsal.version>
116 <odl.mdsal.model.version>9.0.8</odl.mdsal.model.version>
117 <odl.mdsal.generator.version>8.0.5</odl.mdsal.generator.version>
118 <odl.netconf.restconf.version>8.0.7</odl.netconf.restconf.version>
119 <odl.netconf.netconf.version>8.0.7</odl.netconf.netconf.version>
120 <odl.netconf.sal.rest.docgen.version>8.0.7</odl.netconf.sal.rest.docgen.version>
122 <!-- Used by aaa, vtn -->
123 <commons.codec.version>1.15</commons.codec.version>
124 <!-- Used by netconf, ovsdb -->
125 <commons.lang3.version>3.12.0</commons.lang3.version>
126 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
127 <commons.lang.version>2.6</commons.lang.version>
128 <!-- Used by neutron; see also controller, vtn -->
129 <commons.net.version>3.8.0</commons.net.version>
130 <!-- Used by neutron -->
131 <eclipse.persistence.version>None</eclipse.persistence.version>
133 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
134 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
135 <gson.version>2.8.8</gson.version>
136 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
137 <guava.version>30.1.1-jre</guava.version>
138 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
139 integration/distribution, snmp4sdn, toolkit, ttp -->
140 <jackson.version>2.12.5</jackson.version>
141 <!-- Used by snmp4sdn, yangtools -->
142 <javassist.version>3.27.0-GA</javassist.version>
144 <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
145 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, snmp4sdn, toolkit -->
146 <jersey.version>2.27</jersey.version>
148 <jersey.client.version>2.27</jersey.client.version>
150 <!-- New packages for jersey migration 1.17 to 2.8 -->
151 <!-- appache.geronimo.bundle for DocGen -->
152 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
153 <org.json.version>20131018</org.json.version>
155 <!-- Used everywhere -->
156 <junit.version>4.13.2</junit.version>
157 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
158 <logback.version>1.11.7</logback.version>
159 <!-- Used by nic, sfc, sxp, tsdr -->
160 <mockito.version>3.3.3</mockito.version>
161 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
162 <netty.version>4.1.69.Final</netty.version>
163 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
164 <slf4j.version>1.7.32</slf4j.version>
165 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
166 <spring.version>4.3.25.RELEASE</spring.version>
168 <!-- Extra support libraries used by SDN-C -->
169 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
170 <antlr.version>4.8-1</antlr.version>
172 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
174 <!-- Managed dependency versions -->
175 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
176 <apache.httpcomponents.client.version>4.5.13</apache.httpcomponents.client.version>
177 <derby.version>10.14.2.0</derby.version>
178 <eelf.version>1.0.0</eelf.version>
179 <grpc.version>1.21.1</grpc.version>
180 <log4j.version>2.17.1</log4j.version>
181 <log4j2.version>2.17.1</log4j2.version>
182 <jetty.version>9.4.43.v20210629</jetty.version>
183 <mariadb.connector.version>2.7.5</mariadb.connector.version>
184 <mariadb4j.version>2.4.0</mariadb4j.version>
185 <testng.version>6.14.3</testng.version>
186 <tomcat-jdbc.version>9.0.52</tomcat-jdbc.version>
187 <skip.karaf.featureTest>true</skip.karaf.featureTest>
188 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
191 <dependencyManagement>
193 <!-- Note: If value in BOM conflicts with value inherited from
194 parent pom, inherited value takes precedence. This seems more like
195 a bug than a feature, but this is how maven 3.6 works -->
197 <groupId>org.onap.ccsdk.parent</groupId>
198 <artifactId>dependencies-odl-bom</artifactId>
199 <version>2.3.3-SNAPSHOT</version>
201 <scope>import</scope>
204 <groupId>org.onap.ccsdk.parent</groupId>
205 <artifactId>dependencies-bom</artifactId>
206 <version>2.3.3-SNAPSHOT</version>
208 <scope>import</scope>
211 <groupId>org.springframework.boot</groupId>
212 <artifactId>spring-boot-dependencies</artifactId>
213 <version>2.3.8.RELEASE</version>
214 <scope>import</scope>
218 <groupId>org.mariadb.jdbc</groupId>
219 <artifactId>mariadb-java-client</artifactId>
220 <version>${mariadb.connector.version}</version>
223 <groupId>org.onap.logging-analytics</groupId>
224 <artifactId>logging-slf4j</artifactId>
225 <version>${logging-analytics.version}</version>
228 <groupId>org.onap.logging-analytics</groupId>
229 <artifactId>logging-filter-base</artifactId>
230 <version>${logging-analytics.version}</version>
233 <groupId>junit</groupId>
234 <artifactId>junit</artifactId>
235 <version>${junit.version}</version>
239 </dependencyManagement>
244 <url>${onap.nexus.public-url}</url>
246 <enabled>true</enabled>
247 <updatePolicy>never</updatePolicy>
250 <enabled>true</enabled>
251 <updatePolicy>always</updatePolicy>
255 <id>onap-staging</id>
256 <url>${onap.nexus.staging-url}</url>
258 <enabled>true</enabled>
259 <updatePolicy>never</updatePolicy>
262 <enabled>true</enabled>
263 <updatePolicy>always</updatePolicy>
267 <id>ecomp-release</id>
268 <name>onap-repository-releases</name>
269 <url>${onap.nexus.release-url}</url>
271 <enabled>true</enabled>
272 <updatePolicy>never</updatePolicy>
275 <enabled>false</enabled>
279 <id>ecomp-snapshot</id>
280 <name>onap-repository-snapshots</name>
281 <url>${onap.nexus.snapshot-url}</url>
283 <enabled>false</enabled>
286 <enabled>true</enabled>
290 <id>opendaylight-mirror</id>
291 <name>opendaylight-mirror</name>
292 <url>${opendaylight.nexus.public-url}</url>
294 <enabled>true</enabled>
295 <updatePolicy>never</updatePolicy>
298 <enabled>false</enabled>
302 <id>opendaylight-snapshot</id>
303 <name>opendaylight-snapshot</name>
304 <url>${opendaylight.nexus.snapshot-url}</url>
306 <enabled>false</enabled>
309 <enabled>true</enabled>
317 <url>${onap.nexus.public-url}</url>
319 <enabled>true</enabled>
322 <enabled>true</enabled>
326 <id>onap-staging</id>
327 <url>${onap.nexus.staging-url}</url>
329 <enabled>true</enabled>
332 <enabled>true</enabled>
336 <id>onap-snapshot</id>
337 <url>${onap.nexus.snapshot-url}</url>
339 <enabled>false</enabled>
342 <enabled>true</enabled>
346 <id>opendaylight-mirror</id>
347 <name>opendaylight-mirror</name>
348 <url>${opendaylight.nexus.public-url}</url>
350 <enabled>true</enabled>
351 <updatePolicy>never</updatePolicy>
354 <enabled>false</enabled>
358 <id>opendaylight-snapshot</id>
359 <name>opendaylight-snapshot</name>
360 <url>${opendaylight.nexus.snapshot-url}</url>
362 <enabled>false</enabled>
365 <enabled>true</enabled>
368 <!-- Black Duck plugin dependencies -->
371 <name>JCenter Repository</name>
372 <url>http://jcenter.bintray.com</url>
376 <name>Restlet Repository</name>
377 <url>http://maven.restlet.com</url>
379 </pluginRepositories>
384 <!-- Plugins from ONAP version (parent of oparent) -->
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-deploy-plugin</artifactId>
388 <!-- This version supports the "deployAtEnd" parameter -->
389 <version>2.8</version>
392 <deployAtEnd>true</deployAtEnd>
396 <groupId>org.apache.maven.plugins</groupId>
397 <artifactId>maven-site-plugin</artifactId>
398 <version>3.6</version>
401 <groupId>org.apache.maven.wagon</groupId>
402 <artifactId>wagon-webdav-jackrabbit</artifactId>
403 <version>2.10</version>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-enforcer-plugin</artifactId>
410 <version>3.0.0-M2</version>
413 <id>enforce-property</id>
420 <property>onap.nexus.url</property>
421 <message>You must set a onap.nexus.url property in your
422 ~/.m2/settings.xml. See oparent/settings.xml for an example.
430 <id>enforce-no-snapshots</id>
437 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
438 <onlyWhenRelease>true</onlyWhenRelease>
440 </requireReleaseDeps>
445 <id>enforce-maven</id>
453 </requireJavaVersion>
454 <requireMavenVersion>
455 <version>[3.5.0,)</version>
456 </requireMavenVersion>
461 <id>enforce-banned-dependencies</id>
468 <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
470 <exclude>org.mockito:mockito-all</exclude>
471 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
473 </bannedDependencies>
480 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
482 <groupId>org.sonarsource.scanner.maven</groupId>
483 <artifactId>sonar-maven-plugin</artifactId>
484 <version>${sonar.scanner.version}</version>
486 <!-- end of plugins from ONAP version (parent of oparent) -->
487 <!-- Plugins from ONAP oparent -->
489 <groupId>org.apache.maven.plugins</groupId>
490 <artifactId>maven-surefire-plugin</artifactId>
491 <version>${maven-surefire-plugin.version}</version>
493 <!-- Sets the VM argument line used when unit tests are run. -->
494 <argLine>${surefireArgLine}</argLine>
495 <!-- Excludes integration tests when unit tests are run. -->
497 <exclude>**/IT*.java</exclude>
502 <groupId>org.apache.maven.plugins</groupId>
503 <artifactId>maven-failsafe-plugin</artifactId>
504 <version>${maven-failsafe-plugin.version}</version>
506 <!-- Ensures that both integration-test and verify goals of the Failsafe
507 Maven plugin are executed. -->
509 <id>integration-tests</id>
511 <goal>integration-test</goal>
515 <!-- Sets the VM argument line used when integration tests are run. -->
516 <argLine>${failsafeArgLine}</argLine>
522 <!-- End of plugins from ONAP oparent -->
524 <groupId>org.codehaus.mojo</groupId>
525 <artifactId>properties-maven-plugin</artifactId>
526 <version>1.0.0</version>
530 <goal>set-system-properties</goal>
535 <name>maven.wagon.http.ssl.allowall</name>
536 <value>${ssl.allowall}</value>
539 <name>maven.wagon.http.ssl.insecure</name>
540 <value>${ssl.insecure}</value>
549 <groupId>org.codehaus.mojo</groupId>
550 <artifactId>versions-maven-plugin</artifactId>
551 <version>2.5</version>
553 <processAllModules>true</processAllModules>
557 <artifactId>maven-scm-plugin</artifactId>
558 <version>1.8.1</version>
560 <tag>${project.artifactId}-${project.version}</tag>
564 <groupId>com.github.ferstl</groupId>
565 <artifactId>depgraph-maven-plugin</artifactId>
566 <version>3.3.0</version>
568 <graphFormat>text</graphFormat>
569 <outputFileName>${dependency-list.file}</outputFileName>
570 <outputDirectory>${project.basedir}</outputDirectory>
571 <transitiveExcludes>*</transitiveExcludes>
572 <showVersions>true</showVersions>
573 <showGroupIds>true</showGroupIds>
577 <groupId>de.jacks-it-lab</groupId>
578 <artifactId>frontend-maven-plugin</artifactId>
579 <version>1.7.2</version>
582 <groupId>com.github.alexcojocaru</groupId>
583 <artifactId>elasticsearch-maven-plugin</artifactId>
584 <version>6.16</version>
586 <version>7.1.1</version>
590 <groupId>org.apache.maven.plugins</groupId>
591 <artifactId>maven-javadoc-plugin</artifactId>
592 <version>3.2.0</version>
594 <failOnError>false</failOnError>
598 <groupId>com.github.spotbugs</groupId>
599 <artifactId>spotbugs-maven-plugin</artifactId>
600 <version>3.1.12.2</version>
603 <id>analyze-compile</id>
604 <phase>compile</phase>
611 <groupId>jp.skypencil.findbugs.slf4j</groupId>
612 <artifactId>bug-pattern</artifactId>
613 <version>1.5.0</version>
617 <threshold>Low</threshold>
618 <failOnError>false</failOnError>
620 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
621 <xmlOutput>true</xmlOutput>
622 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
628 <groupId>com.github.spotbugs</groupId>
629 <artifactId>spotbugs</artifactId>
630 <version>3.1.12</version>
631 <scope>compile</scope>
634 <groupId>org.opendaylight.odlparent</groupId>
635 <artifactId>spotbugs</artifactId>
636 <version>7.0.5</version>
637 <scope>compile</scope>
640 <groupId>org.slf4j</groupId>
641 <artifactId>slf4j-simple</artifactId>
642 <version>1.8.0-beta2</version>
643 <scope>compile</scope>
649 <groupId>jp.skypencil.findbugs.slf4j</groupId>
650 <artifactId>bug-pattern</artifactId>
651 <version>1.5.0</version>
655 <threshold>Low</threshold>
656 <failOnError>false</failOnError>
658 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
659 <xmlOutput>true</xmlOutput>
660 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
664 <groupId>org.apache.maven.plugins</groupId>
665 <artifactId>maven-checkstyle-plugin</artifactId>
666 <version>${checkstyle.plugin.version}</version>
669 <groupId>org.onap.oparent</groupId>
670 <artifactId>checkstyle</artifactId>
671 <version>1.2.2</version>
676 <phase>process-sources</phase>
681 <failOnViolation>false</failOnViolation>
686 <id>check-license</id>
690 <phase>process-sources</phase>
692 <configLocation>onap-checkstyle/check-license.xml</configLocation>
693 <includeResources>false</includeResources>
694 <includeTestSourceDirectory>true</includeTestSourceDirectory>
695 <includeTestResources>false</includeTestResources>
697 <directory>${project.build.sourceDirectory}</directory>
701 <consoleOutput>true</consoleOutput>
702 <failOnViolation>false</failOnViolation>
706 <id>onap-java-style</id>
710 <phase>process-sources</phase>
712 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
713 with minor changes -->
714 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
715 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
717 <directory>${project.build.sourceDirectory}/src/main/java</directory>
719 <includeResources>true</includeResources>
720 <includeTestSourceDirectory>true</includeTestSourceDirectory>
721 <includeTestResources>true</includeTestResources>
724 <consoleOutput>true</consoleOutput>
725 <failOnViolation>false</failOnViolation>
731 <groupId>org.gaul</groupId>
732 <artifactId>modernizer-maven-plugin</artifactId>
733 <version>2.1.0</version>
737 <phase>verify</phase>
739 <goal>modernizer</goal>
742 <failOnViolations>false</failOnViolations>
748 <failOnViolations>false</failOnViolations>
754 <groupId>org.apache.karaf.tooling</groupId>
755 <artifactId>karaf-maven-plugin</artifactId>
757 <useVersionRange>true</useVersionRange>
758 <includeTransitiveVersionRanges>true</includeTransitiveVersionRanges>
765 <!-- Plugins from oparent version (parent of oparent) -->
767 <groupId>org.apache.maven.plugins</groupId>
768 <artifactId>maven-deploy-plugin</artifactId>
771 <groupId>org.apache.maven.plugins</groupId>
772 <artifactId>maven-site-plugin</artifactId>
777 <groupId>org.apache.maven.plugins</groupId>
778 <artifactId>maven-checkstyle-plugin</artifactId>
779 <version>${checkstyle.plugin.version}</version>
785 <!-- end of plugins from oparent version (parent of oparent) -->
787 <!-- Plugins from oparent -->
789 <groupId>org.apache.maven.plugins</groupId>
790 <artifactId>maven-checkstyle-plugin</artifactId>
793 <groupId>org.codehaus.mojo</groupId>
794 <artifactId>build-helper-maven-plugin</artifactId>
795 <version>1.12</version>
797 <!-- Jacoco / Sonar -->
799 <groupId>org.jacoco</groupId>
800 <artifactId>jacoco-maven-plugin</artifactId>
801 <version>${jacoco.version}</version>
804 <id>pre-unit-test</id>
806 <goal>prepare-agent</goal>
809 <!-- Sets the path to the file which contains the execution data. -->
810 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
811 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
812 <propertyName>surefireArgLine</propertyName>
815 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
817 <id>post-unit-test</id>
823 <!-- Sets the path to the file which contains the execution data. -->
824 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
825 <!-- Sets the output directory for the code coverage report. -->
826 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
830 <id>pre-integration-test</id>
831 <phase>pre-integration-test</phase>
833 <goal>prepare-agent</goal>
836 <!-- Sets the path to the file which contains the execution data. -->
837 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
838 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
839 <propertyName>failsafeArgLine</propertyName>
842 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
844 <id>post-integration-test</id>
845 <phase>post-integration-test</phase>
850 <!-- Sets the path to the file which contains the execution data. -->
851 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
852 <!-- Sets the output directory for the code coverage report. -->
853 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
857 <id>default-prepare-agent</id>
859 <goal>prepare-agent</goal>
863 <id>default-report</id>
864 <phase>prepare-package</phase>
870 <id>default-check</id>
877 <element>PACKAGE</element>
880 <counter>COMPLEXITY</counter>
881 <value>COVEREDRATIO</value>
882 <minimum>0.0</minimum>
892 <groupId>org.apache.maven.plugins</groupId>
893 <artifactId>maven-surefire-plugin</artifactId>
896 <groupId>org.apache.maven.plugins</groupId>
897 <artifactId>maven-failsafe-plugin</artifactId>
899 <!-- end of plugins from oparent -->
901 <groupId>org.apache.maven.plugins</groupId>
902 <artifactId>maven-javadoc-plugin</artifactId>
905 <id>attach-javadocs</id>
910 <additionalparam>-Xdoclint:none</additionalparam>
916 <artifactId>maven-enforcer-plugin</artifactId>
917 <version>3.0.0-M2</version>
920 <id>enforce-property</id>
927 <property>onap.nexus.url</property>
928 <message>You must set a onap.nexus.url property in your
929 ~/.m2/settings.xml. See oparent/settings.xml for an example.
937 <id>enforce-no-snapshots</id>
944 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
945 <onlyWhenRelease>true</onlyWhenRelease>
947 </requireReleaseDeps>
952 <id>enforce-maven</id>
959 <version>1.8.0</version>
960 </requireJavaVersion>
961 <requireMavenVersion>
962 <version>[3.5.0,)</version>
963 </requireMavenVersion>
968 <id>enforce-banned-dependencies</id>
975 <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
977 <exclude>org.mockito:mockito-all</exclude>
978 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
980 </bannedDependencies>
988 <groupId>pl.project13.maven</groupId>
989 <artifactId>git-commit-id-plugin</artifactId>
990 <version>4.0.0</version>
992 <commitIdGenerationMode>full</commitIdGenerationMode>
993 <includeOnlyProperties>
994 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
995 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
996 </includeOnlyProperties>
1005 <artifactId>maven-javadoc-plugin</artifactId>
1007 <failOnError>false</failOnError>
1008 <additionalparam>-Xdoclint:none</additionalparam>
1015 <!-- Profiles from ONAP oparent -->
1017 <id>generate-json</id>
1020 <exists>${swagger-properties}</exists>
1023 <name>swagger-sdk.generate-json</name>
1029 <groupId>org.codehaus.mojo</groupId>
1030 <artifactId>properties-maven-plugin</artifactId>
1031 <version>1.0.0</version>
1034 <phase>initialize</phase>
1036 <goal>read-project-properties</goal>
1040 <file>${basedir}/src/main/resources/swagger.properties</file>
1047 <groupId>com.github.kongchen</groupId>
1048 <artifactId>swagger-maven-plugin</artifactId>
1049 <version>3.1.4</version>
1053 <locations>${api-rest-package}</locations>
1054 <schemes>http,https</schemes>
1055 <host>${api-host-ip}:${api-host-port}</host>
1056 <basePath>${api-base-path}</basePath>
1058 <title>${api-title}</title>
1059 <version>${api-version}</version>
1060 <description>${api-description}</description>
1062 <name>${api-license}</name>
1065 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
1071 <phase>compile</phase>
1073 <goal>generate</goal>
1079 <groupId>org.apache.maven.plugins</groupId>
1080 <artifactId>maven-install-plugin</artifactId>
1081 <version>2.3.1</version>
1084 <id>install-file-id</id>
1085 <phase>install</phase>
1087 <goal>install-file</goal>
1090 <file>${basedir}/src/main/resources/swagger.json</file>
1091 <groupId>${project.groupId}</groupId>
1092 <artifactId>${project.artifactId}-swagger-schema</artifactId>
1093 <version>${project.version}</version>
1094 <packaging>json</packaging>
1103 <id>generate-sdk</id>
1106 <exists>${swagger-json}</exists>
1109 <name>swagger-sdk.generate-java-sdk</name>
1115 <groupId>org.apache.maven.plugins</groupId>
1116 <artifactId>maven-antrun-plugin</artifactId>
1117 <version>1.8</version>
1120 <phase>initialize</phase>
1121 <id>ant-create-script</id>
1123 <exportAntProperties>true</exportAntProperties>
1125 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
1126 <condition property="is_windows" value="true">
1127 <os family="windows"/>
1129 <condition property="isLinux" value="true">
1133 <equals arg1="${is_windows}" arg2="true"/>
1135 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1136 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1137 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1138 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1139 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1142 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1143 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1144 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1145 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1146 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1147 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
1159 <groupId>ant-contrib</groupId>
1160 <artifactId>ant-contrib</artifactId>
1161 <version>1.0b3</version>
1164 <groupId>ant</groupId>
1165 <artifactId>ant</artifactId>
1172 <groupId>io.swagger</groupId>
1173 <artifactId>swagger-codegen-maven-plugin</artifactId>
1174 <version>2.2.1</version>
1178 <goal>generate</goal>
1181 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1182 <output>${project.build.directory}/generated-sources</output>
1183 <language>java</language>
1185 <dateLibrary>joda</dateLibrary>
1187 <library>jersey2</library>
1188 <groupId>${project.groupId}</groupId>
1189 <artifactId>${project.artifactId}-java-sdk</artifactId>
1190 <artifactVersion>${project.version}</artifactVersion>
1191 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1192 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1193 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1199 <groupId>org.codehaus.mojo</groupId>
1200 <artifactId>exec-maven-plugin</artifactId>
1201 <version>1.5.0</version>
1204 <id>swagger-generate-sources</id>
1205 <phase>generate-sources</phase>
1210 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1216 <groupId>org.apache.maven.plugins</groupId>
1217 <artifactId>maven-clean-plugin</artifactId>
1218 <version>3.0.0</version>
1221 <id>clean-generated-files</id>
1222 <phase>generate-sources</phase>
1229 <directory>${project.build.directory}/generated-sources</directory>
1240 <groupId>org.onap.msb.swagger-sdk</groupId>
1241 <artifactId>swagger-sdk</artifactId>
1242 <version>1.0.0</version>
1247 <id>sonar-jacoco-aggregate</id>
1250 <name>onap.jacoco.aggregateFile</name>
1256 <groupId>org.jacoco</groupId>
1257 <artifactId>jacoco-maven-plugin</artifactId>
1264 <phase>generate-resources</phase>
1266 <destFile>${onap.jacoco.aggregateFile}</destFile>
1269 <directory>${project.basedir}</directory>
1271 <include>**/target/code-coverage/*.exec</include>
1282 <!-- End of profiles from ONAP oparent -->