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>12.0.5</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>odlparent</artifactId>
17 <version>2.6.1-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.8</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>17</java.version>
85 <maven-surefire-plugin.version>3.0.0-M8</maven-surefire-plugin.version>
86 <maven-failsafe-plugin.version>3.0.0-M8</maven-failsafe-plugin.version>
87 <bundle.plugin.version>5.1.1</bundle.plugin.version>
88 <maven-compiler-plugin.version>3.10.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.2.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.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.cds.version>
101 <ccsdk.features.version>(1.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.features.version>
102 <ccsdk.distribution.version>(1.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.distribution.version>
103 <ccsdk.sli.version>(1.6.99999, 1.7.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.mdsal.version>11.0.9</odl.mdsal.version>
115 <odl.mdsal.model.version>11.0.9</odl.mdsal.model.version>
116 <odl.mdsal.generator.version>11.0.9</odl.mdsal.generator.version>
117 <odl.netconf.restconf.version>5.0.6</odl.netconf.restconf.version>
118 <odl.netconf.netconf.version>5.0.6</odl.netconf.netconf.version>
119 <odl.netconf.sal.rest.docgen.version>5.0.6</odl.netconf.sal.rest.docgen.version>
121 <!-- Used by aaa, vtn -->
122 <commons.codec.version>1.15</commons.codec.version>
123 <!-- Used by netconf, ovsdb -->
124 <commons.lang3.version>3.12.0</commons.lang3.version>
125 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
126 <commons.lang.version>2.6</commons.lang.version>
127 <!-- Used by neutron; see also controller, vtn -->
128 <commons.net.version>3.8.0</commons.net.version>
129 <!-- Used by neutron -->
130 <eclipse.persistence.version>None</eclipse.persistence.version>
132 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
133 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
134 <gson.version>2.10.1</gson.version>
135 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
136 <guava.version>31.1-jre</guava.version>
137 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
138 integration/distribution, snmp4sdn, toolkit, ttp -->
139 <jackson.version>2.14.2</jackson.version>
140 <!-- Used by snmp4sdn, yangtools -->
141 <javassist.version>3.29.2-GA</javassist.version>
143 <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
144 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, snmp4sdn, toolkit -->
145 <jersey.version>2.39.1</jersey.version>
147 <jersey.client.version>2.39.1</jersey.client.version>
149 <!-- Used everywhere -->
150 <junit.version>4.13.2</junit.version>
151 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
152 <logback.version>1.2.11</logback.version>
153 <!-- Used by nic, sfc, sxp, tsdr -->
154 <mockito.version>3.12.4</mockito.version>
155 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
156 <netty.version>4.1.91.Final</netty.version>
157 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
158 <slf4j.version>1.7.32</slf4j.version>
159 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
160 <spring.version>4.3.25.RELEASE</spring.version>
162 <!-- Extra support libraries used by SDN-C -->
163 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
164 <antlr.version>4.12.0</antlr.version>
165 <antlr4.version>4.12.0</antlr4.version>
168 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
170 <!-- Managed dependency versions -->
171 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
172 <apache.httpcomponents.client.version>4.5.13</apache.httpcomponents.client.version>
173 <derby.version>10.14.2.0</derby.version>
174 <eelf.version>1.0.0</eelf.version>
175 <grpc.version>1.21.1</grpc.version>
176 <log4j.version>2.17.1</log4j.version>
177 <log4j2.version>2.17.1</log4j2.version>
178 <jetty.version>9.4.49.v20220914</jetty.version>
179 <mariadb.connector.version>2.7.5</mariadb.connector.version>
180 <mariadb4j.version>2.4.0</mariadb4j.version>
181 <testng.version>6.14.3</testng.version>
182 <tomcat-jdbc.version>9.0.52</tomcat-jdbc.version>
183 <skip.karaf.featureTest>true</skip.karaf.featureTest>
184 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
187 <dependencyManagement>
189 <!-- Note: If value in BOM conflicts with value inherited from
190 parent pom, inherited value takes precedence. This seems more like
191 a bug than a feature, but this is how maven 3.6 works -->
193 <groupId>org.onap.ccsdk.parent</groupId>
194 <artifactId>dependencies-odl-bom</artifactId>
195 <version>2.6.1-SNAPSHOT</version>
197 <scope>import</scope>
200 <groupId>org.onap.ccsdk.parent</groupId>
201 <artifactId>dependencies-bom</artifactId>
202 <version>2.6.1-SNAPSHOT</version>
204 <scope>import</scope>
207 <groupId>org.springframework.boot</groupId>
208 <artifactId>spring-boot-dependencies</artifactId>
209 <version>2.3.8.RELEASE</version>
210 <scope>import</scope>
214 <groupId>org.mariadb.jdbc</groupId>
215 <artifactId>mariadb-java-client</artifactId>
216 <version>${mariadb.connector.version}</version>
219 <groupId>org.onap.logging-analytics</groupId>
220 <artifactId>logging-slf4j</artifactId>
221 <version>${logging-analytics.version}</version>
224 <groupId>org.onap.logging-analytics</groupId>
225 <artifactId>logging-filter-base</artifactId>
226 <version>${logging-analytics.version}</version>
229 <groupId>org.antlr</groupId>
230 <artifactId>antlr4-runtime</artifactId>
231 <version>${antlr.version}</version>
234 <groupId>org.antlr</groupId>
235 <artifactId>antlr4</artifactId>
236 <version>${antlr.version}</version>
239 <groupId>junit</groupId>
240 <artifactId>junit</artifactId>
241 <version>${junit.version}</version>
245 </dependencyManagement>
250 <url>${onap.nexus.public-url}</url>
252 <enabled>true</enabled>
253 <updatePolicy>never</updatePolicy>
256 <enabled>true</enabled>
257 <updatePolicy>always</updatePolicy>
261 <id>onap-staging</id>
262 <url>${onap.nexus.staging-url}</url>
264 <enabled>true</enabled>
265 <updatePolicy>never</updatePolicy>
268 <enabled>true</enabled>
269 <updatePolicy>always</updatePolicy>
273 <id>ecomp-release</id>
274 <name>onap-repository-releases</name>
275 <url>${onap.nexus.release-url}</url>
277 <enabled>true</enabled>
278 <updatePolicy>never</updatePolicy>
281 <enabled>false</enabled>
285 <id>ecomp-snapshot</id>
286 <name>onap-repository-snapshots</name>
287 <url>${onap.nexus.snapshot-url}</url>
289 <enabled>false</enabled>
292 <enabled>true</enabled>
296 <id>opendaylight-mirror</id>
297 <name>opendaylight-mirror</name>
298 <url>${opendaylight.nexus.public-url}</url>
300 <enabled>true</enabled>
301 <updatePolicy>never</updatePolicy>
304 <enabled>false</enabled>
308 <id>opendaylight-snapshot</id>
309 <name>opendaylight-snapshot</name>
310 <url>${opendaylight.nexus.snapshot-url}</url>
312 <enabled>false</enabled>
315 <enabled>true</enabled>
323 <url>${onap.nexus.public-url}</url>
325 <enabled>true</enabled>
328 <enabled>true</enabled>
332 <id>onap-staging</id>
333 <url>${onap.nexus.staging-url}</url>
335 <enabled>true</enabled>
338 <enabled>true</enabled>
342 <id>onap-snapshot</id>
343 <url>${onap.nexus.snapshot-url}</url>
345 <enabled>false</enabled>
348 <enabled>true</enabled>
352 <id>opendaylight-mirror</id>
353 <name>opendaylight-mirror</name>
354 <url>${opendaylight.nexus.public-url}</url>
356 <enabled>true</enabled>
357 <updatePolicy>never</updatePolicy>
360 <enabled>false</enabled>
364 <id>opendaylight-snapshot</id>
365 <name>opendaylight-snapshot</name>
366 <url>${opendaylight.nexus.snapshot-url}</url>
368 <enabled>false</enabled>
371 <enabled>true</enabled>
374 </pluginRepositories>
379 <!-- Plugins from ONAP version (parent of oparent) -->
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-deploy-plugin</artifactId>
383 <!-- This version supports the "deployAtEnd" parameter -->
384 <version>2.8</version>
387 <deployAtEnd>true</deployAtEnd>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-site-plugin</artifactId>
393 <version>3.6</version>
396 <groupId>org.apache.maven.wagon</groupId>
397 <artifactId>wagon-webdav-jackrabbit</artifactId>
398 <version>2.10</version>
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-enforcer-plugin</artifactId>
405 <version>3.0.0-M2</version>
408 <id>enforce-property</id>
415 <property>onap.nexus.url</property>
416 <message>You must set a onap.nexus.url property in your
417 ~/.m2/settings.xml. See oparent/settings.xml for an example.
425 <id>enforce-no-snapshots</id>
432 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
433 <onlyWhenRelease>true</onlyWhenRelease>
435 </requireReleaseDeps>
440 <id>enforce-maven</id>
448 </requireJavaVersion>
449 <requireMavenVersion>
450 <version>[3.5.0,)</version>
451 </requireMavenVersion>
456 <id>enforce-banned-dependencies</id>
463 <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>
465 <exclude>org.mockito:mockito-all</exclude>
466 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
468 </bannedDependencies>
475 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
477 <groupId>org.sonarsource.scanner.maven</groupId>
478 <artifactId>sonar-maven-plugin</artifactId>
479 <version>${sonar.scanner.version}</version>
481 <!-- end of plugins from ONAP version (parent of oparent) -->
482 <!-- Plugins from ONAP oparent -->
484 <groupId>org.apache.maven.plugins</groupId>
485 <artifactId>maven-surefire-plugin</artifactId>
486 <version>${maven-surefire-plugin.version}</version>
488 <!-- Sets the VM argument line used when unit tests are run. -->
489 <argLine>${surefireArgLine}</argLine>
490 <!-- Excludes integration tests when unit tests are run. -->
492 <exclude>**/IT*.java</exclude>
497 <groupId>org.apache.maven.plugins</groupId>
498 <artifactId>maven-failsafe-plugin</artifactId>
499 <version>${maven-failsafe-plugin.version}</version>
501 <!-- Ensures that both integration-test and verify goals of the Failsafe
502 Maven plugin are executed. -->
504 <id>integration-tests</id>
506 <goal>integration-test</goal>
510 <!-- Sets the VM argument line used when integration tests are run. -->
511 <argLine>${failsafeArgLine}</argLine>
517 <!-- End of plugins from ONAP oparent -->
519 <groupId>org.codehaus.mojo</groupId>
520 <artifactId>properties-maven-plugin</artifactId>
521 <version>1.0.0</version>
525 <goal>set-system-properties</goal>
530 <name>maven.wagon.http.ssl.allowall</name>
531 <value>${ssl.allowall}</value>
534 <name>maven.wagon.http.ssl.insecure</name>
535 <value>${ssl.insecure}</value>
544 <groupId>org.codehaus.mojo</groupId>
545 <artifactId>versions-maven-plugin</artifactId>
546 <version>2.5</version>
548 <processAllModules>true</processAllModules>
552 <artifactId>maven-scm-plugin</artifactId>
553 <version>1.8.1</version>
555 <tag>${project.artifactId}-${project.version}</tag>
559 <groupId>com.github.ferstl</groupId>
560 <artifactId>depgraph-maven-plugin</artifactId>
561 <version>3.3.0</version>
563 <graphFormat>text</graphFormat>
564 <outputFileName>${dependency-list.file}</outputFileName>
565 <outputDirectory>${project.basedir}</outputDirectory>
566 <transitiveExcludes>*</transitiveExcludes>
567 <showVersions>true</showVersions>
568 <showGroupIds>true</showGroupIds>
572 <groupId>de.jacks-it-lab</groupId>
573 <artifactId>frontend-maven-plugin</artifactId>
574 <version>1.7.2</version>
577 <groupId>com.github.alexcojocaru</groupId>
578 <artifactId>elasticsearch-maven-plugin</artifactId>
579 <version>6.16</version>
581 <version>7.1.1</version>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-javadoc-plugin</artifactId>
587 <version>3.2.0</version>
589 <failOnError>false</failOnError>
593 <groupId>com.github.spotbugs</groupId>
594 <artifactId>spotbugs-maven-plugin</artifactId>
595 <version>3.1.12.2</version>
598 <id>analyze-compile</id>
599 <phase>compile</phase>
606 <groupId>jp.skypencil.findbugs.slf4j</groupId>
607 <artifactId>bug-pattern</artifactId>
608 <version>1.5.0</version>
612 <threshold>Low</threshold>
613 <failOnError>false</failOnError>
615 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
616 <xmlOutput>true</xmlOutput>
617 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
623 <groupId>com.github.spotbugs</groupId>
624 <artifactId>spotbugs</artifactId>
625 <version>3.1.12</version>
626 <scope>compile</scope>
629 <groupId>org.opendaylight.odlparent</groupId>
630 <artifactId>spotbugs</artifactId>
631 <version>7.0.5</version>
632 <scope>compile</scope>
635 <groupId>org.slf4j</groupId>
636 <artifactId>slf4j-simple</artifactId>
637 <version>1.8.0-beta2</version>
638 <scope>compile</scope>
644 <groupId>jp.skypencil.findbugs.slf4j</groupId>
645 <artifactId>bug-pattern</artifactId>
646 <version>1.5.0</version>
650 <threshold>Low</threshold>
651 <failOnError>false</failOnError>
653 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
654 <xmlOutput>true</xmlOutput>
655 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
659 <groupId>org.apache.maven.plugins</groupId>
660 <artifactId>maven-checkstyle-plugin</artifactId>
661 <version>${checkstyle.plugin.version}</version>
664 <groupId>org.onap.oparent</groupId>
665 <artifactId>checkstyle</artifactId>
666 <version>1.2.2</version>
671 <phase>process-sources</phase>
676 <failOnViolation>false</failOnViolation>
681 <id>check-license</id>
685 <phase>process-sources</phase>
687 <configLocation>onap-checkstyle/check-license.xml</configLocation>
688 <includeResources>false</includeResources>
689 <includeTestSourceDirectory>true</includeTestSourceDirectory>
690 <includeTestResources>false</includeTestResources>
692 <directory>${project.build.sourceDirectory}</directory>
696 <consoleOutput>true</consoleOutput>
697 <failOnViolation>false</failOnViolation>
701 <id>onap-java-style</id>
705 <phase>process-sources</phase>
707 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
708 with minor changes -->
709 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
710 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
712 <directory>${project.build.sourceDirectory}/src/main/java</directory>
714 <includeResources>true</includeResources>
715 <includeTestSourceDirectory>true</includeTestSourceDirectory>
716 <includeTestResources>true</includeTestResources>
719 <consoleOutput>true</consoleOutput>
720 <failOnViolation>false</failOnViolation>
726 <groupId>org.gaul</groupId>
727 <artifactId>modernizer-maven-plugin</artifactId>
728 <version>2.1.0</version>
732 <phase>verify</phase>
734 <goal>modernizer</goal>
737 <failOnViolations>false</failOnViolations>
743 <failOnViolations>false</failOnViolations>
749 <groupId>org.apache.karaf.tooling</groupId>
750 <artifactId>karaf-maven-plugin</artifactId>
752 <useVersionRange>true</useVersionRange>
753 <includeTransitiveVersionRanges>true</includeTransitiveVersionRanges>
760 <!-- Plugins from oparent version (parent of oparent) -->
762 <groupId>org.apache.maven.plugins</groupId>
763 <artifactId>maven-deploy-plugin</artifactId>
766 <groupId>org.apache.maven.plugins</groupId>
767 <artifactId>maven-site-plugin</artifactId>
772 <groupId>org.apache.maven.plugins</groupId>
773 <artifactId>maven-checkstyle-plugin</artifactId>
774 <version>${checkstyle.plugin.version}</version>
780 <!-- end of plugins from oparent version (parent of oparent) -->
782 <!-- Plugins from oparent -->
784 <groupId>org.apache.maven.plugins</groupId>
785 <artifactId>maven-checkstyle-plugin</artifactId>
788 <groupId>org.codehaus.mojo</groupId>
789 <artifactId>build-helper-maven-plugin</artifactId>
790 <version>1.12</version>
792 <!-- Jacoco / Sonar -->
794 <groupId>org.jacoco</groupId>
795 <artifactId>jacoco-maven-plugin</artifactId>
796 <version>${jacoco.version}</version>
799 <id>pre-unit-test</id>
801 <goal>prepare-agent</goal>
804 <!-- Sets the path to the file which contains the execution data. -->
805 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
806 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
807 <propertyName>surefireArgLine</propertyName>
810 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
812 <id>post-unit-test</id>
818 <!-- Sets the path to the file which contains the execution data. -->
819 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
820 <!-- Sets the output directory for the code coverage report. -->
821 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
825 <id>pre-integration-test</id>
826 <phase>pre-integration-test</phase>
828 <goal>prepare-agent</goal>
831 <!-- Sets the path to the file which contains the execution data. -->
832 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
833 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
834 <propertyName>failsafeArgLine</propertyName>
837 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
839 <id>post-integration-test</id>
840 <phase>post-integration-test</phase>
845 <!-- Sets the path to the file which contains the execution data. -->
846 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
847 <!-- Sets the output directory for the code coverage report. -->
848 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
852 <id>default-prepare-agent</id>
854 <goal>prepare-agent</goal>
858 <id>default-report</id>
859 <phase>prepare-package</phase>
865 <id>default-check</id>
872 <element>PACKAGE</element>
875 <counter>COMPLEXITY</counter>
876 <value>COVEREDRATIO</value>
877 <minimum>0.0</minimum>
887 <groupId>org.apache.maven.plugins</groupId>
888 <artifactId>maven-surefire-plugin</artifactId>
891 <groupId>org.apache.maven.plugins</groupId>
892 <artifactId>maven-failsafe-plugin</artifactId>
894 <!-- end of plugins from oparent -->
896 <groupId>org.apache.maven.plugins</groupId>
897 <artifactId>maven-javadoc-plugin</artifactId>
900 <id>attach-javadocs</id>
905 <additionalparam>-Xdoclint:none</additionalparam>
911 <artifactId>maven-enforcer-plugin</artifactId>
912 <version>3.0.0-M2</version>
915 <id>enforce-property</id>
922 <property>onap.nexus.url</property>
923 <message>You must set a onap.nexus.url property in your
924 ~/.m2/settings.xml. See oparent/settings.xml for an example.
932 <id>enforce-no-snapshots</id>
939 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
940 <onlyWhenRelease>true</onlyWhenRelease>
942 </requireReleaseDeps>
947 <id>enforce-maven</id>
954 <version>1.8.0</version>
955 </requireJavaVersion>
956 <requireMavenVersion>
957 <version>[3.5.0,)</version>
958 </requireMavenVersion>
963 <id>enforce-banned-dependencies</id>
970 <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>
972 <exclude>org.mockito:mockito-all</exclude>
973 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
975 </bannedDependencies>
983 <groupId>pl.project13.maven</groupId>
984 <artifactId>git-commit-id-plugin</artifactId>
985 <version>4.0.0</version>
987 <commitIdGenerationMode>full</commitIdGenerationMode>
988 <includeOnlyProperties>
989 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
990 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
991 </includeOnlyProperties>
1000 <artifactId>maven-javadoc-plugin</artifactId>
1002 <failOnError>false</failOnError>
1003 <additionalparam>-Xdoclint:none</additionalparam>
1010 <!-- Profiles from ONAP oparent -->
1012 <id>generate-json</id>
1015 <exists>${swagger-properties}</exists>
1018 <name>swagger-sdk.generate-json</name>
1024 <groupId>org.codehaus.mojo</groupId>
1025 <artifactId>properties-maven-plugin</artifactId>
1026 <version>1.0.0</version>
1029 <phase>initialize</phase>
1031 <goal>read-project-properties</goal>
1035 <file>${basedir}/src/main/resources/swagger.properties</file>
1042 <groupId>com.github.kongchen</groupId>
1043 <artifactId>swagger-maven-plugin</artifactId>
1044 <version>3.1.4</version>
1048 <locations>${api-rest-package}</locations>
1049 <schemes>http,https</schemes>
1050 <host>${api-host-ip}:${api-host-port}</host>
1051 <basePath>${api-base-path}</basePath>
1053 <title>${api-title}</title>
1054 <version>${api-version}</version>
1055 <description>${api-description}</description>
1057 <name>${api-license}</name>
1060 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
1066 <phase>compile</phase>
1068 <goal>generate</goal>
1074 <groupId>org.apache.maven.plugins</groupId>
1075 <artifactId>maven-install-plugin</artifactId>
1076 <version>2.3.1</version>
1079 <id>install-file-id</id>
1080 <phase>install</phase>
1082 <goal>install-file</goal>
1085 <file>${basedir}/src/main/resources/swagger.json</file>
1086 <groupId>${project.groupId}</groupId>
1087 <artifactId>${project.artifactId}-swagger-schema</artifactId>
1088 <version>${project.version}</version>
1089 <packaging>json</packaging>
1098 <id>generate-sdk</id>
1101 <exists>${swagger-json}</exists>
1104 <name>swagger-sdk.generate-java-sdk</name>
1110 <groupId>org.apache.maven.plugins</groupId>
1111 <artifactId>maven-antrun-plugin</artifactId>
1112 <version>1.8</version>
1115 <phase>initialize</phase>
1116 <id>ant-create-script</id>
1118 <exportAntProperties>true</exportAntProperties>
1120 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
1121 <condition property="is_windows" value="true">
1122 <os family="windows"/>
1124 <condition property="isLinux" value="true">
1128 <equals arg1="${is_windows}" arg2="true"/>
1130 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1131 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1132 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1133 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1134 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1137 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1138 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1139 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1140 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1141 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1142 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
1154 <groupId>ant-contrib</groupId>
1155 <artifactId>ant-contrib</artifactId>
1156 <version>1.0b3</version>
1159 <groupId>ant</groupId>
1160 <artifactId>ant</artifactId>
1167 <groupId>io.swagger</groupId>
1168 <artifactId>swagger-codegen-maven-plugin</artifactId>
1169 <version>2.2.1</version>
1173 <goal>generate</goal>
1176 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1177 <output>${project.build.directory}/generated-sources</output>
1178 <language>java</language>
1180 <dateLibrary>joda</dateLibrary>
1182 <library>jersey2</library>
1183 <groupId>${project.groupId}</groupId>
1184 <artifactId>${project.artifactId}-java-sdk</artifactId>
1185 <artifactVersion>${project.version}</artifactVersion>
1186 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1187 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1188 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1194 <groupId>org.codehaus.mojo</groupId>
1195 <artifactId>exec-maven-plugin</artifactId>
1196 <version>1.5.0</version>
1199 <id>swagger-generate-sources</id>
1200 <phase>generate-sources</phase>
1205 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1211 <groupId>org.apache.maven.plugins</groupId>
1212 <artifactId>maven-clean-plugin</artifactId>
1213 <version>3.0.0</version>
1216 <id>clean-generated-files</id>
1217 <phase>generate-sources</phase>
1224 <directory>${project.build.directory}/generated-sources</directory>
1235 <groupId>org.onap.msb.swagger-sdk</groupId>
1236 <artifactId>swagger-sdk</artifactId>
1237 <version>1.0.0</version>
1242 <id>sonar-jacoco-aggregate</id>
1245 <name>onap.jacoco.aggregateFile</name>
1251 <groupId>org.jacoco</groupId>
1252 <artifactId>jacoco-maven-plugin</artifactId>
1259 <phase>generate-resources</phase>
1261 <destFile>${onap.jacoco.aggregateFile}</destFile>
1264 <directory>${project.basedir}</directory>
1266 <include>**/target/code-coverage/*.exec</include>
1277 <!-- End of profiles from ONAP oparent -->