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-lite</artifactId>
11 <version>11.0.3</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>odlparent-lite</artifactId>
17 <version>2.5.4</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.4.99999, 1.5.99999]</ccsdk.cds.version>
101 <ccsdk.features.version>(1.4.99999, 1.5.99999]</ccsdk.features.version>
102 <ccsdk.distribution.version>(1.4.99999, 1.5.99999]</ccsdk.distribution.version>
103 <ccsdk.sli.version>(1.5.99999, 1.6.99999]</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>10.0.5</odl.controller.mdsal.version>
115 <odl.mdsal.version>11.0.3</odl.mdsal.version>
116 <odl.mdsal.model.version>11.0.3</odl.mdsal.model.version>
117 <odl.mdsal.generator.version>8.0.5</odl.mdsal.generator.version>
118 <odl.netconf.restconf.version>10.0.5</odl.netconf.restconf.version>
119 <odl.netconf.netconf.version>10.0.5</odl.netconf.netconf.version>
120 <odl.netconf.sal.rest.docgen.version>10.0.5</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.10</gson.version>
136 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
137 <guava.version>31.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.13.4</jackson.version>
141 <!-- Used by snmp4sdn, yangtools -->
142 <javassist.version>3.29.2-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.37</jersey.version>
148 <jersey.client.version>2.37</jersey.client.version>
150 <!-- Used everywhere -->
151 <junit.version>4.13.2</junit.version>
152 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
153 <logback.version>1.2.11</logback.version>
154 <!-- Used by nic, sfc, sxp, tsdr -->
155 <mockito.version>3.12.4</mockito.version>
156 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
157 <netty.version>4.1.84.Final</netty.version>
158 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
159 <slf4j.version>1.7.32</slf4j.version>
160 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
161 <spring.version>4.3.25.RELEASE</spring.version>
163 <!-- Extra support libraries used by SDN-C -->
164 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
165 <antlr.version>4.8-1</antlr.version>
167 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
169 <!-- Managed dependency versions -->
170 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
171 <apache.httpcomponents.client.version>4.5.13</apache.httpcomponents.client.version>
172 <derby.version>10.14.2.0</derby.version>
173 <eelf.version>1.0.0</eelf.version>
174 <grpc.version>1.21.1</grpc.version>
175 <log4j.version>2.17.1</log4j.version>
176 <log4j2.version>2.17.1</log4j2.version>
177 <jetty.version>9.4.49.v20220914</jetty.version>
178 <mariadb.connector.version>2.7.5</mariadb.connector.version>
179 <mariadb4j.version>2.4.0</mariadb4j.version>
180 <testng.version>6.14.3</testng.version>
181 <tomcat-jdbc.version>9.0.52</tomcat-jdbc.version>
182 <skip.karaf.featureTest>true</skip.karaf.featureTest>
183 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
186 <dependencyManagement>
188 <!-- Note: If value in BOM conflicts with value inherited from
189 parent pom, inherited value takes precedence. This seems more like
190 a bug than a feature, but this is how maven 3.6 works -->
192 <groupId>org.onap.ccsdk.parent</groupId>
193 <artifactId>dependencies-odl-bom</artifactId>
194 <version>2.5.4</version>
196 <scope>import</scope>
199 <groupId>org.onap.ccsdk.parent</groupId>
200 <artifactId>dependencies-bom</artifactId>
201 <version>2.5.4</version>
203 <scope>import</scope>
206 <groupId>org.springframework.boot</groupId>
207 <artifactId>spring-boot-dependencies</artifactId>
208 <version>2.3.8.RELEASE</version>
209 <scope>import</scope>
213 <groupId>org.mariadb.jdbc</groupId>
214 <artifactId>mariadb-java-client</artifactId>
215 <version>${mariadb.connector.version}</version>
218 <groupId>org.onap.logging-analytics</groupId>
219 <artifactId>logging-slf4j</artifactId>
220 <version>${logging-analytics.version}</version>
223 <groupId>org.onap.logging-analytics</groupId>
224 <artifactId>logging-filter-base</artifactId>
225 <version>${logging-analytics.version}</version>
228 <groupId>junit</groupId>
229 <artifactId>junit</artifactId>
230 <version>${junit.version}</version>
234 </dependencyManagement>
239 <url>${onap.nexus.public-url}</url>
241 <enabled>true</enabled>
242 <updatePolicy>never</updatePolicy>
245 <enabled>true</enabled>
246 <updatePolicy>always</updatePolicy>
250 <id>onap-staging</id>
251 <url>${onap.nexus.staging-url}</url>
253 <enabled>true</enabled>
254 <updatePolicy>never</updatePolicy>
257 <enabled>true</enabled>
258 <updatePolicy>always</updatePolicy>
262 <id>ecomp-release</id>
263 <name>onap-repository-releases</name>
264 <url>${onap.nexus.release-url}</url>
266 <enabled>true</enabled>
267 <updatePolicy>never</updatePolicy>
270 <enabled>false</enabled>
274 <id>ecomp-snapshot</id>
275 <name>onap-repository-snapshots</name>
276 <url>${onap.nexus.snapshot-url}</url>
278 <enabled>false</enabled>
281 <enabled>true</enabled>
285 <id>opendaylight-mirror</id>
286 <name>opendaylight-mirror</name>
287 <url>${opendaylight.nexus.public-url}</url>
289 <enabled>true</enabled>
290 <updatePolicy>never</updatePolicy>
293 <enabled>false</enabled>
297 <id>opendaylight-snapshot</id>
298 <name>opendaylight-snapshot</name>
299 <url>${opendaylight.nexus.snapshot-url}</url>
301 <enabled>false</enabled>
304 <enabled>true</enabled>
312 <url>${onap.nexus.public-url}</url>
314 <enabled>true</enabled>
317 <enabled>true</enabled>
321 <id>onap-staging</id>
322 <url>${onap.nexus.staging-url}</url>
324 <enabled>true</enabled>
327 <enabled>true</enabled>
331 <id>onap-snapshot</id>
332 <url>${onap.nexus.snapshot-url}</url>
334 <enabled>false</enabled>
337 <enabled>true</enabled>
341 <id>opendaylight-mirror</id>
342 <name>opendaylight-mirror</name>
343 <url>${opendaylight.nexus.public-url}</url>
345 <enabled>true</enabled>
346 <updatePolicy>never</updatePolicy>
349 <enabled>false</enabled>
353 <id>opendaylight-snapshot</id>
354 <name>opendaylight-snapshot</name>
355 <url>${opendaylight.nexus.snapshot-url}</url>
357 <enabled>false</enabled>
360 <enabled>true</enabled>
363 </pluginRepositories>
368 <!-- Plugins from ONAP version (parent of oparent) -->
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-deploy-plugin</artifactId>
372 <!-- This version supports the "deployAtEnd" parameter -->
373 <version>2.8</version>
376 <deployAtEnd>true</deployAtEnd>
380 <groupId>org.apache.maven.plugins</groupId>
381 <artifactId>maven-site-plugin</artifactId>
382 <version>3.6</version>
385 <groupId>org.apache.maven.wagon</groupId>
386 <artifactId>wagon-webdav-jackrabbit</artifactId>
387 <version>2.10</version>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-enforcer-plugin</artifactId>
394 <version>3.0.0-M2</version>
397 <id>enforce-property</id>
404 <property>onap.nexus.url</property>
405 <message>You must set a onap.nexus.url property in your
406 ~/.m2/settings.xml. See oparent/settings.xml for an example.
414 <id>enforce-no-snapshots</id>
421 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
422 <onlyWhenRelease>true</onlyWhenRelease>
424 </requireReleaseDeps>
429 <id>enforce-maven</id>
437 </requireJavaVersion>
438 <requireMavenVersion>
439 <version>[3.5.0,)</version>
440 </requireMavenVersion>
445 <id>enforce-banned-dependencies</id>
452 <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>
454 <exclude>org.mockito:mockito-all</exclude>
455 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
457 </bannedDependencies>
464 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
466 <groupId>org.sonarsource.scanner.maven</groupId>
467 <artifactId>sonar-maven-plugin</artifactId>
468 <version>${sonar.scanner.version}</version>
470 <!-- end of plugins from ONAP version (parent of oparent) -->
471 <!-- Plugins from ONAP oparent -->
473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-surefire-plugin</artifactId>
475 <version>${maven-surefire-plugin.version}</version>
477 <!-- Sets the VM argument line used when unit tests are run. -->
478 <argLine>${surefireArgLine}</argLine>
479 <!-- Excludes integration tests when unit tests are run. -->
481 <exclude>**/IT*.java</exclude>
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-failsafe-plugin</artifactId>
488 <version>${maven-failsafe-plugin.version}</version>
490 <!-- Ensures that both integration-test and verify goals of the Failsafe
491 Maven plugin are executed. -->
493 <id>integration-tests</id>
495 <goal>integration-test</goal>
499 <!-- Sets the VM argument line used when integration tests are run. -->
500 <argLine>${failsafeArgLine}</argLine>
506 <!-- End of plugins from ONAP oparent -->
508 <groupId>org.codehaus.mojo</groupId>
509 <artifactId>properties-maven-plugin</artifactId>
510 <version>1.0.0</version>
514 <goal>set-system-properties</goal>
519 <name>maven.wagon.http.ssl.allowall</name>
520 <value>${ssl.allowall}</value>
523 <name>maven.wagon.http.ssl.insecure</name>
524 <value>${ssl.insecure}</value>
533 <groupId>org.codehaus.mojo</groupId>
534 <artifactId>versions-maven-plugin</artifactId>
535 <version>2.5</version>
537 <processAllModules>true</processAllModules>
541 <artifactId>maven-scm-plugin</artifactId>
542 <version>1.8.1</version>
544 <tag>${project.artifactId}-${project.version}</tag>
548 <groupId>com.github.ferstl</groupId>
549 <artifactId>depgraph-maven-plugin</artifactId>
550 <version>3.3.0</version>
552 <graphFormat>text</graphFormat>
553 <outputFileName>${dependency-list.file}</outputFileName>
554 <outputDirectory>${project.basedir}</outputDirectory>
555 <transitiveExcludes>*</transitiveExcludes>
556 <showVersions>true</showVersions>
557 <showGroupIds>true</showGroupIds>
561 <groupId>de.jacks-it-lab</groupId>
562 <artifactId>frontend-maven-plugin</artifactId>
563 <version>1.7.2</version>
566 <groupId>com.github.alexcojocaru</groupId>
567 <artifactId>elasticsearch-maven-plugin</artifactId>
568 <version>6.16</version>
570 <version>7.1.1</version>
574 <groupId>org.apache.maven.plugins</groupId>
575 <artifactId>maven-javadoc-plugin</artifactId>
576 <version>3.2.0</version>
578 <failOnError>false</failOnError>
582 <groupId>com.github.spotbugs</groupId>
583 <artifactId>spotbugs-maven-plugin</artifactId>
584 <version>3.1.12.2</version>
587 <id>analyze-compile</id>
588 <phase>compile</phase>
595 <groupId>jp.skypencil.findbugs.slf4j</groupId>
596 <artifactId>bug-pattern</artifactId>
597 <version>1.5.0</version>
601 <threshold>Low</threshold>
602 <failOnError>false</failOnError>
604 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
605 <xmlOutput>true</xmlOutput>
606 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
612 <groupId>com.github.spotbugs</groupId>
613 <artifactId>spotbugs</artifactId>
614 <version>3.1.12</version>
615 <scope>compile</scope>
618 <groupId>org.opendaylight.odlparent</groupId>
619 <artifactId>spotbugs</artifactId>
620 <version>7.0.5</version>
621 <scope>compile</scope>
624 <groupId>org.slf4j</groupId>
625 <artifactId>slf4j-simple</artifactId>
626 <version>1.8.0-beta2</version>
627 <scope>compile</scope>
633 <groupId>jp.skypencil.findbugs.slf4j</groupId>
634 <artifactId>bug-pattern</artifactId>
635 <version>1.5.0</version>
639 <threshold>Low</threshold>
640 <failOnError>false</failOnError>
642 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
643 <xmlOutput>true</xmlOutput>
644 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
648 <groupId>org.apache.maven.plugins</groupId>
649 <artifactId>maven-checkstyle-plugin</artifactId>
650 <version>${checkstyle.plugin.version}</version>
653 <groupId>org.onap.oparent</groupId>
654 <artifactId>checkstyle</artifactId>
655 <version>1.2.2</version>
660 <phase>process-sources</phase>
665 <failOnViolation>false</failOnViolation>
670 <id>check-license</id>
674 <phase>process-sources</phase>
676 <configLocation>onap-checkstyle/check-license.xml</configLocation>
677 <includeResources>false</includeResources>
678 <includeTestSourceDirectory>true</includeTestSourceDirectory>
679 <includeTestResources>false</includeTestResources>
681 <directory>${project.build.sourceDirectory}</directory>
685 <consoleOutput>true</consoleOutput>
686 <failOnViolation>false</failOnViolation>
690 <id>onap-java-style</id>
694 <phase>process-sources</phase>
696 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
697 with minor changes -->
698 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
699 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
701 <directory>${project.build.sourceDirectory}/src/main/java</directory>
703 <includeResources>true</includeResources>
704 <includeTestSourceDirectory>true</includeTestSourceDirectory>
705 <includeTestResources>true</includeTestResources>
708 <consoleOutput>true</consoleOutput>
709 <failOnViolation>false</failOnViolation>
715 <groupId>org.gaul</groupId>
716 <artifactId>modernizer-maven-plugin</artifactId>
717 <version>2.1.0</version>
721 <phase>verify</phase>
723 <goal>modernizer</goal>
726 <failOnViolations>false</failOnViolations>
732 <failOnViolations>false</failOnViolations>
738 <groupId>org.apache.karaf.tooling</groupId>
739 <artifactId>karaf-maven-plugin</artifactId>
741 <useVersionRange>true</useVersionRange>
742 <includeTransitiveVersionRanges>true</includeTransitiveVersionRanges>
749 <!-- Plugins from oparent version (parent of oparent) -->
751 <groupId>org.apache.maven.plugins</groupId>
752 <artifactId>maven-deploy-plugin</artifactId>
755 <groupId>org.apache.maven.plugins</groupId>
756 <artifactId>maven-site-plugin</artifactId>
761 <groupId>org.apache.maven.plugins</groupId>
762 <artifactId>maven-checkstyle-plugin</artifactId>
763 <version>${checkstyle.plugin.version}</version>
769 <!-- end of plugins from oparent version (parent of oparent) -->
771 <!-- Plugins from oparent -->
773 <groupId>org.apache.maven.plugins</groupId>
774 <artifactId>maven-checkstyle-plugin</artifactId>
777 <groupId>org.codehaus.mojo</groupId>
778 <artifactId>build-helper-maven-plugin</artifactId>
779 <version>1.12</version>
781 <!-- Jacoco / Sonar -->
783 <groupId>org.jacoco</groupId>
784 <artifactId>jacoco-maven-plugin</artifactId>
785 <version>${jacoco.version}</version>
788 <id>pre-unit-test</id>
790 <goal>prepare-agent</goal>
793 <!-- Sets the path to the file which contains the execution data. -->
794 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
795 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
796 <propertyName>surefireArgLine</propertyName>
799 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
801 <id>post-unit-test</id>
807 <!-- Sets the path to the file which contains the execution data. -->
808 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
809 <!-- Sets the output directory for the code coverage report. -->
810 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
814 <id>pre-integration-test</id>
815 <phase>pre-integration-test</phase>
817 <goal>prepare-agent</goal>
820 <!-- Sets the path to the file which contains the execution data. -->
821 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
822 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
823 <propertyName>failsafeArgLine</propertyName>
826 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
828 <id>post-integration-test</id>
829 <phase>post-integration-test</phase>
834 <!-- Sets the path to the file which contains the execution data. -->
835 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
836 <!-- Sets the output directory for the code coverage report. -->
837 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
841 <id>default-prepare-agent</id>
843 <goal>prepare-agent</goal>
847 <id>default-report</id>
848 <phase>prepare-package</phase>
854 <id>default-check</id>
861 <element>PACKAGE</element>
864 <counter>COMPLEXITY</counter>
865 <value>COVEREDRATIO</value>
866 <minimum>0.0</minimum>
876 <groupId>org.apache.maven.plugins</groupId>
877 <artifactId>maven-surefire-plugin</artifactId>
880 <groupId>org.apache.maven.plugins</groupId>
881 <artifactId>maven-failsafe-plugin</artifactId>
883 <!-- end of plugins from oparent -->
885 <groupId>org.apache.maven.plugins</groupId>
886 <artifactId>maven-javadoc-plugin</artifactId>
889 <id>attach-javadocs</id>
894 <additionalparam>-Xdoclint:none</additionalparam>
900 <artifactId>maven-enforcer-plugin</artifactId>
901 <version>3.0.0-M2</version>
904 <id>enforce-property</id>
911 <property>onap.nexus.url</property>
912 <message>You must set a onap.nexus.url property in your
913 ~/.m2/settings.xml. See oparent/settings.xml for an example.
921 <id>enforce-no-snapshots</id>
928 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
929 <onlyWhenRelease>true</onlyWhenRelease>
931 </requireReleaseDeps>
936 <id>enforce-maven</id>
943 <version>1.8.0</version>
944 </requireJavaVersion>
945 <requireMavenVersion>
946 <version>[3.5.0,)</version>
947 </requireMavenVersion>
952 <id>enforce-banned-dependencies</id>
959 <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>
961 <exclude>org.mockito:mockito-all</exclude>
962 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
964 </bannedDependencies>
972 <groupId>pl.project13.maven</groupId>
973 <artifactId>git-commit-id-plugin</artifactId>
974 <version>4.0.0</version>
976 <commitIdGenerationMode>full</commitIdGenerationMode>
977 <includeOnlyProperties>
978 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
979 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
980 </includeOnlyProperties>
989 <artifactId>maven-javadoc-plugin</artifactId>
991 <failOnError>false</failOnError>
992 <additionalparam>-Xdoclint:none</additionalparam>
999 <!-- Profiles from ONAP oparent -->
1001 <id>generate-json</id>
1004 <exists>${swagger-properties}</exists>
1007 <name>swagger-sdk.generate-json</name>
1013 <groupId>org.codehaus.mojo</groupId>
1014 <artifactId>properties-maven-plugin</artifactId>
1015 <version>1.0.0</version>
1018 <phase>initialize</phase>
1020 <goal>read-project-properties</goal>
1024 <file>${basedir}/src/main/resources/swagger.properties</file>
1031 <groupId>com.github.kongchen</groupId>
1032 <artifactId>swagger-maven-plugin</artifactId>
1033 <version>3.1.4</version>
1037 <locations>${api-rest-package}</locations>
1038 <schemes>http,https</schemes>
1039 <host>${api-host-ip}:${api-host-port}</host>
1040 <basePath>${api-base-path}</basePath>
1042 <title>${api-title}</title>
1043 <version>${api-version}</version>
1044 <description>${api-description}</description>
1046 <name>${api-license}</name>
1049 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
1055 <phase>compile</phase>
1057 <goal>generate</goal>
1063 <groupId>org.apache.maven.plugins</groupId>
1064 <artifactId>maven-install-plugin</artifactId>
1065 <version>2.3.1</version>
1068 <id>install-file-id</id>
1069 <phase>install</phase>
1071 <goal>install-file</goal>
1074 <file>${basedir}/src/main/resources/swagger.json</file>
1075 <groupId>${project.groupId}</groupId>
1076 <artifactId>${project.artifactId}-swagger-schema</artifactId>
1077 <version>${project.version}</version>
1078 <packaging>json</packaging>
1087 <id>generate-sdk</id>
1090 <exists>${swagger-json}</exists>
1093 <name>swagger-sdk.generate-java-sdk</name>
1099 <groupId>org.apache.maven.plugins</groupId>
1100 <artifactId>maven-antrun-plugin</artifactId>
1101 <version>1.8</version>
1104 <phase>initialize</phase>
1105 <id>ant-create-script</id>
1107 <exportAntProperties>true</exportAntProperties>
1109 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
1110 <condition property="is_windows" value="true">
1111 <os family="windows"/>
1113 <condition property="isLinux" value="true">
1117 <equals arg1="${is_windows}" arg2="true"/>
1119 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1120 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1121 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1122 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1123 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1126 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1127 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1128 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1129 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1130 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1131 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
1143 <groupId>ant-contrib</groupId>
1144 <artifactId>ant-contrib</artifactId>
1145 <version>1.0b3</version>
1148 <groupId>ant</groupId>
1149 <artifactId>ant</artifactId>
1156 <groupId>io.swagger</groupId>
1157 <artifactId>swagger-codegen-maven-plugin</artifactId>
1158 <version>2.2.1</version>
1162 <goal>generate</goal>
1165 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1166 <output>${project.build.directory}/generated-sources</output>
1167 <language>java</language>
1169 <dateLibrary>joda</dateLibrary>
1171 <library>jersey2</library>
1172 <groupId>${project.groupId}</groupId>
1173 <artifactId>${project.artifactId}-java-sdk</artifactId>
1174 <artifactVersion>${project.version}</artifactVersion>
1175 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1176 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1177 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1183 <groupId>org.codehaus.mojo</groupId>
1184 <artifactId>exec-maven-plugin</artifactId>
1185 <version>1.5.0</version>
1188 <id>swagger-generate-sources</id>
1189 <phase>generate-sources</phase>
1194 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1200 <groupId>org.apache.maven.plugins</groupId>
1201 <artifactId>maven-clean-plugin</artifactId>
1202 <version>3.0.0</version>
1205 <id>clean-generated-files</id>
1206 <phase>generate-sources</phase>
1213 <directory>${project.build.directory}/generated-sources</directory>
1224 <groupId>org.onap.msb.swagger-sdk</groupId>
1225 <artifactId>swagger-sdk</artifactId>
1226 <version>1.0.0</version>
1231 <id>sonar-jacoco-aggregate</id>
1234 <name>onap.jacoco.aggregateFile</name>
1240 <groupId>org.jacoco</groupId>
1241 <artifactId>jacoco-maven-plugin</artifactId>
1248 <phase>generate-resources</phase>
1250 <destFile>${onap.jacoco.aggregateFile}</destFile>
1253 <directory>${project.basedir}</directory>
1255 <include>**/target/code-coverage/*.exec</include>
1266 <!-- End of profiles from ONAP oparent -->