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.mdsal</groupId>
10 <artifactId>binding-parent</artifactId>
11 <version>4.0.17</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>binding-parent</artifactId>
17 <version>2.1.0</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 <maven.compiler.source>8</maven.compiler.source>
57 <maven.compiler.target>8</maven.compiler.target>
58 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
60 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
61 <!-- sitePath may be overridden in the inheriting POM if desired -->
62 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
64 <!-- If following file exist, auto-generation of swagger.json will be done -->
65 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
66 <!-- If following file exist, auto-generation of sdk will be done -->
67 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
68 <!-- end of properties from oparent -->
70 <!-- ONAP repositories -->
71 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
72 <onap.nexus.port>443</onap.nexus.port>
73 <onap.nexus.protocol>https</onap.nexus.protocol>
74 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
75 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
76 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
77 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
78 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
79 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
81 <!-- OpenDaylight repositories -->
82 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
83 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
85 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
86 <java.version.source>8</java.version.source>
87 <java.version.target>8</java.version.target>
88 <bundle.plugin.version>2.5.0</bundle.plugin.version>
89 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
90 <features.file>features.xml</features.file>
91 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
92 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
93 <checkstyle.skip>true</checkstyle.skip>
95 <!-- logging-analytics versions -->
96 <logging-analytics.version>1.6.6</logging-analytics.version>
98 <!-- CCSDK component versions -->
99 <ccsdk.cds.version>1.1.0</ccsdk.cds.version>
100 <ccsdk.features.version>1.1.0</ccsdk.features.version>
101 <ccsdk.sli.core.version>1.1.0</ccsdk.sli.core.version>
102 <ccsdk.sli.adaptors.version>1.1.0</ccsdk.sli.adaptors.version>
103 <ccsdk.sli.northbound.version>1.1.0</ccsdk.sli.northbound.version>
104 <ccsdk.sli.plugins.version>1.1.0</ccsdk.sli.plugins.version>
105 <ccsdk.distribution.version>1.1.0</ccsdk.distribution.version>
106 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
107 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
108 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
109 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
110 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
112 <!-- Support libraries used by OpenDaylight -->
113 <odl.controller.mdsal.version>1.10.3</odl.controller.mdsal.version>
114 <odl.mdsal.version>4.0.14</odl.mdsal.version>
115 <odl.mdsal.model.version>2.0.14</odl.mdsal.model.version>
116 <odl.netconf.restconf.version>1.10.3</odl.netconf.restconf.version>
117 <odl.netconf.netconf.version>1.7.3</odl.netconf.netconf.version>
118 <odl.netconf.sal.rest.docgen.version>1.10.3</odl.netconf.sal.rest.docgen.version>
120 <!-- Used by aaa, vtn -->
121 <commons.codec.version>1.13</commons.codec.version>
122 <!-- Used by netconf, ovsdb -->
123 <commons.lang3.version>3.8.1</commons.lang3.version>
124 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
125 <commons.lang.version>2.6</commons.lang.version>
126 <!-- Used by neutron; see also controller, vtn -->
127 <commons.net.version>3.6</commons.net.version>
128 <!-- Used by neutron -->
129 <eclipse.persistence.version>2.7.4</eclipse.persistence.version>
131 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
132 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
133 <gson.version>2.8.5</gson.version>
134 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
135 <guava.version>25.1-jre</guava.version>
136 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
137 integration/distribution, snmp4sdn, toolkit, ttp -->
138 <jackson.version>2.9.10</jackson.version>
139 <!-- Used by snmp4sdn, yangtools -->
140 <javassist.version>3.24.1-GA</javassist.version>
142 <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
143 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, snmp4sdn, toolkit -->
144 <jersey.version>2.25.1</jersey.version>
146 <jersey.client.version>2.25.1</jersey.client.version>
148 <!-- New packages for jersey migration 1.17 to 2.8 -->
149 <!-- appache.geronimo.bundle for DocGen -->
150 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
151 <org.json.version>20131018</org.json.version>
153 <!-- Used everywhere -->
154 <junit.version>4.12</junit.version>
155 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
156 <logback.version>1.2.3</logback.version>
157 <!-- Used by nic, sfc, sxp, tsdr -->
158 <mockito.version>1.10.19</mockito.version>
159 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
160 <netty.version>4.1.42.Final</netty.version>
161 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
162 <slf4j.version>1.7.25</slf4j.version>
163 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
164 <spring.version>4.3.25.RELEASE</spring.version>
166 <!-- Extra support libraries used by SDN-C -->
167 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
168 <antlr.version>4.7.2</antlr.version>
170 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
172 <!-- Managed dependency versions -->
173 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
174 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
175 <derby.version>10.14.2.0</derby.version>
176 <eelf.version>1.0.0</eelf.version>
177 <grpc.version>1.21.1</grpc.version>
178 <mariadb.connector.version>2.4.4</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.30</tomcat-jdbc.version>
182 <jetty.version>9.4.12.v20180830</jetty.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.1.0</version>
197 <scope>import</scope>
200 <groupId>org.onap.logging-analytics</groupId>
201 <artifactId>logging-slf4j</artifactId>
202 <version>${logging-analytics.version}</version>
205 <groupId>org.onap.logging-analytics</groupId>
206 <artifactId>logging-filter-base</artifactId>
207 <version>${logging-analytics.version}</version>
210 <groupId>junit</groupId>
211 <artifactId>junit</artifactId>
212 <version>${junit.version}</version>
216 </dependencyManagement>
221 <url>${onap.nexus.public-url}</url>
223 <enabled>true</enabled>
224 <updatePolicy>never</updatePolicy>
227 <enabled>true</enabled>
228 <updatePolicy>always</updatePolicy>
232 <id>onap-staging</id>
233 <url>${onap.nexus.staging-url}</url>
235 <enabled>true</enabled>
236 <updatePolicy>never</updatePolicy>
239 <enabled>true</enabled>
240 <updatePolicy>always</updatePolicy>
244 <id>ecomp-release</id>
245 <name>onap-repository-releases</name>
246 <url>${onap.nexus.release-url}</url>
248 <enabled>true</enabled>
249 <updatePolicy>never</updatePolicy>
252 <enabled>false</enabled>
256 <id>ecomp-snapshot</id>
257 <name>onap-repository-snapshots</name>
258 <url>${onap.nexus.snapshot-url}</url>
260 <enabled>false</enabled>
263 <enabled>true</enabled>
267 <id>opendaylight-mirror</id>
268 <name>opendaylight-mirror</name>
269 <url>${opendaylight.nexus.public-url}</url>
271 <enabled>true</enabled>
272 <updatePolicy>never</updatePolicy>
275 <enabled>false</enabled>
279 <id>opendaylight-snapshot</id>
280 <name>opendaylight-snapshot</name>
281 <url>${opendaylight.nexus.snapshot-url}</url>
283 <enabled>false</enabled>
286 <enabled>true</enabled>
294 <url>${onap.nexus.public-url}</url>
296 <enabled>true</enabled>
299 <enabled>true</enabled>
303 <id>onap-staging</id>
304 <url>${onap.nexus.staging-url}</url>
306 <enabled>true</enabled>
309 <enabled>true</enabled>
313 <id>onap-snapshot</id>
314 <url>${onap.nexus.snapshot-url}</url>
316 <enabled>false</enabled>
319 <enabled>true</enabled>
323 <id>opendaylight-mirror</id>
324 <name>opendaylight-mirror</name>
325 <url>${opendaylight.nexus.public-url}</url>
327 <enabled>true</enabled>
328 <updatePolicy>never</updatePolicy>
331 <enabled>false</enabled>
335 <id>opendaylight-snapshot</id>
336 <name>opendaylight-snapshot</name>
337 <url>${opendaylight.nexus.snapshot-url}</url>
339 <enabled>false</enabled>
342 <enabled>true</enabled>
345 <!-- Black Duck plugin dependencies -->
348 <name>JCenter Repository</name>
349 <url>http://jcenter.bintray.com</url>
354 <name>Restlet Repository</name>
355 <url>http://maven.restlet.com</url>
357 </pluginRepositories>
362 <!-- Plugins from ONAP version (parent of oparent) -->
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-deploy-plugin</artifactId>
366 <!-- This version supports the "deployAtEnd" parameter -->
367 <version>2.8</version>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-site-plugin</artifactId>
375 <version>3.6</version>
378 <groupId>org.apache.maven.wagon</groupId>
379 <artifactId>wagon-webdav-jackrabbit</artifactId>
380 <version>2.10</version>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-enforcer-plugin</artifactId>
387 <version>3.0.0-M2</version>
390 <id>enforce-property</id>
397 <property>onap.nexus.url</property>
398 <message>You must set a onap.nexus.url property in your
399 ~/.m2/settings.xml. See oparent/settings.xml for an example.
407 <id>enforce-no-snapshots</id>
414 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
415 <onlyWhenRelease>true</onlyWhenRelease>
417 </requireReleaseDeps>
422 <id>enforce-maven</id>
430 </requireJavaVersion>
431 <requireMavenVersion>
432 <version>[3.5.0,)</version>
433 </requireMavenVersion>
438 <id>enforce-banned-dependencies</id>
445 <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>
447 <exclude>org.mockito:mockito-all</exclude>
448 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
450 </bannedDependencies>
457 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
459 <groupId>org.sonarsource.scanner.maven</groupId>
460 <artifactId>sonar-maven-plugin</artifactId>
461 <version>${sonar.scanner.version}</version>
463 <!-- end of plugins from ONAP version (parent of oparent) -->
465 <!-- Plugins from ONAP oparent -->
467 <groupId>org.apache.maven.plugins</groupId>
468 <artifactId>maven-surefire-plugin</artifactId>
469 <version>2.22.0</version>
471 <!-- Sets the VM argument line used when unit tests are run. -->
472 <argLine>${surefireArgLine}</argLine>
473 <!-- Excludes integration tests when unit tests are run. -->
475 <exclude>**/IT*.java</exclude>
480 <groupId>org.apache.maven.plugins</groupId>
481 <artifactId>maven-failsafe-plugin</artifactId>
482 <version>2.22.0</version>
484 <!-- Ensures that both integration-test and verify goals of the Failsafe
485 Maven plugin are executed. -->
487 <id>integration-tests</id>
489 <goal>integration-test</goal>
493 <!-- Sets the VM argument line used when integration tests are run. -->
494 <argLine>${failsafeArgLine}</argLine>
500 <!-- End of plugins from ONAP oparent -->
502 <groupId>org.codehaus.mojo</groupId>
503 <artifactId>properties-maven-plugin</artifactId>
504 <version>1.0.0</version>
508 <goal>set-system-properties</goal>
513 <name>maven.wagon.http.ssl.allowall</name>
514 <value>${ssl.allowall}</value>
517 <name>maven.wagon.http.ssl.insecure</name>
518 <value>${ssl.insecure}</value>
527 <groupId>org.codehaus.mojo</groupId>
528 <artifactId>versions-maven-plugin</artifactId>
529 <version>2.5</version>
531 <processAllModules>true</processAllModules>
535 <artifactId>maven-scm-plugin</artifactId>
536 <version>1.8.1</version>
538 <tag>${project.artifactId}-${project.version}</tag>
542 <groupId>com.github.ferstl</groupId>
543 <artifactId>depgraph-maven-plugin</artifactId>
544 <version>3.3.0</version>
546 <graphFormat>text</graphFormat>
547 <outputFileName>${dependency-list.file}</outputFileName>
548 <outputDirectory>${project.basedir}</outputDirectory>
549 <transitiveExcludes>*</transitiveExcludes>
550 <showVersions>true</showVersions>
551 <showGroupIds>true</showGroupIds>
555 <groupId>de.jacks-it-lab</groupId>
556 <artifactId>frontend-maven-plugin</artifactId>
557 <version>1.7.2</version>
560 <groupId>com.github.alexcojocaru</groupId>
561 <artifactId>elasticsearch-maven-plugin</artifactId>
562 <version>6.16</version>
564 <version>7.1.1</version>
568 <groupId>org.apache.maven.plugins</groupId>
569 <artifactId>maven-javadoc-plugin</artifactId>
570 <version>3.2.0</version>
572 <failOnError>false</failOnError>
579 <!-- Plugins from oparent version (parent of oparent) -->
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-deploy-plugin</artifactId>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-site-plugin</artifactId>
588 <!-- end of plugins from oparent version (parent of oparent) -->
590 <!-- Plugins from oparent -->
592 <artifactId>maven-checkstyle-plugin</artifactId>
593 <version>2.17</version>
596 <groupId>org.onap.oparent</groupId>
597 <artifactId>checkstyle</artifactId>
598 <version>1.2.2</version>
603 <id>onap-license</id>
607 <phase>process-sources</phase>
609 <configLocation>onap-checkstyle/check-license.xml</configLocation>
610 <includeResources>false</includeResources>
611 <includeTestSourceDirectory>true</includeTestSourceDirectory>
612 <includeTestResources>false</includeTestResources>
613 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
616 <consoleOutput>true</consoleOutput>
617 <failOnViolation>false</failOnViolation>
621 <id>onap-java-style</id>
625 <phase>process-sources</phase>
627 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
628 with minor changes -->
629 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
630 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
631 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
632 <includeResources>true</includeResources>
633 <includeTestSourceDirectory>true</includeTestSourceDirectory>
634 <includeTestResources>true</includeTestResources>
637 <consoleOutput>true</consoleOutput>
638 <failOnViolation>false</failOnViolation>
644 <groupId>org.codehaus.mojo</groupId>
645 <artifactId>build-helper-maven-plugin</artifactId>
646 <version>1.12</version>
648 <!-- Jacoco / Sonar -->
650 <groupId>org.jacoco</groupId>
651 <artifactId>jacoco-maven-plugin</artifactId>
652 <version>${jacoco.version}</version>
655 <id>pre-unit-test</id>
657 <goal>prepare-agent</goal>
660 <!-- Sets the path to the file which contains the execution data. -->
661 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
662 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
663 <propertyName>surefireArgLine</propertyName>
666 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
668 <id>post-unit-test</id>
674 <!-- Sets the path to the file which contains the execution data. -->
675 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
676 <!-- Sets the output directory for the code coverage report. -->
677 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
681 <id>pre-integration-test</id>
682 <phase>pre-integration-test</phase>
684 <goal>prepare-agent</goal>
687 <!-- Sets the path to the file which contains the execution data. -->
688 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
689 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
690 <propertyName>failsafeArgLine</propertyName>
693 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
695 <id>post-integration-test</id>
696 <phase>post-integration-test</phase>
701 <!-- Sets the path to the file which contains the execution data. -->
702 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
703 <!-- Sets the output directory for the code coverage report. -->
704 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
708 <id>default-prepare-agent</id>
710 <goal>prepare-agent</goal>
714 <id>default-report</id>
715 <phase>prepare-package</phase>
721 <id>default-check</id>
728 <element>PACKAGE</element>
731 <counter>COMPLEXITY</counter>
732 <value>COVEREDRATIO</value>
733 <minimum>0.0</minimum>
743 <groupId>org.apache.maven.plugins</groupId>
744 <artifactId>maven-surefire-plugin</artifactId>
747 <groupId>org.apache.maven.plugins</groupId>
748 <artifactId>maven-failsafe-plugin</artifactId>
750 <!-- end of plugins from oparent -->
752 <groupId>org.apache.maven.plugins</groupId>
753 <artifactId>maven-javadoc-plugin</artifactId>
756 <id>attach-javadocs</id>
761 <additionalparam>-Xdoclint:none</additionalparam>
767 <artifactId>maven-enforcer-plugin</artifactId>
768 <version>3.0.0-M2</version>
771 <id>enforce-property</id>
778 <property>onap.nexus.url</property>
779 <message>You must set a onap.nexus.url property in your
780 ~/.m2/settings.xml. See oparent/settings.xml for an example.</message>
787 <id>enforce-no-snapshots</id>
794 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
795 <onlyWhenRelease>true</onlyWhenRelease>
797 </requireReleaseDeps>
802 <id>enforce-maven</id>
809 <version>1.8.0</version>
810 </requireJavaVersion>
811 <requireMavenVersion>
812 <version>[3.5.0,)</version>
813 </requireMavenVersion>
818 <id>enforce-banned-dependencies</id>
825 <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>
827 <exclude>org.mockito:mockito-all</exclude>
828 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
830 </bannedDependencies>
838 <groupId>pl.project13.maven</groupId>
839 <artifactId>git-commit-id-plugin</artifactId>
840 <version>4.0.0</version>
842 <commitIdGenerationMode>full</commitIdGenerationMode>
843 <includeOnlyProperties>
844 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
845 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
846 </includeOnlyProperties>
855 <artifactId>maven-javadoc-plugin</artifactId>
857 <failOnError>false</failOnError>
858 <additionalparam>-Xdoclint:none</additionalparam>
865 <!-- Profiles from ONAP oparent -->
867 <id>generate-json</id>
870 <exists>${swagger-properties}</exists>
873 <name>swagger-sdk.generate-json</name>
879 <groupId>org.codehaus.mojo</groupId>
880 <artifactId>properties-maven-plugin</artifactId>
881 <version>1.0.0</version>
884 <phase>initialize</phase>
886 <goal>read-project-properties</goal>
890 <file>${basedir}/src/main/resources/swagger.properties</file>
897 <groupId>com.github.kongchen</groupId>
898 <artifactId>swagger-maven-plugin</artifactId>
899 <version>3.1.4</version>
903 <locations>${api-rest-package}</locations>
904 <schemes>http,https</schemes>
905 <host>${api-host-ip}:${api-host-port}</host>
906 <basePath>${api-base-path}</basePath>
908 <title>${api-title}</title>
909 <version>${api-version}</version>
910 <description>${api-description}</description>
912 <name>${api-license}</name>
915 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
921 <phase>compile</phase>
923 <goal>generate</goal>
929 <groupId>org.apache.maven.plugins</groupId>
930 <artifactId>maven-install-plugin</artifactId>
931 <version>2.3.1</version>
934 <id>install-file-id</id>
935 <phase>install</phase>
937 <goal>install-file</goal>
940 <file>${basedir}/src/main/resources/swagger.json</file>
941 <groupId>${project.groupId}</groupId>
942 <artifactId>${project.artifactId}-swagger-schema</artifactId>
943 <version>${project.version}</version>
944 <packaging>json</packaging>
953 <id>generate-sdk</id>
956 <exists>${swagger-json}</exists>
959 <name>swagger-sdk.generate-java-sdk</name>
965 <groupId>org.apache.maven.plugins</groupId>
966 <artifactId>maven-antrun-plugin</artifactId>
967 <version>1.8</version>
970 <phase>initialize</phase>
971 <id>ant-create-script</id>
973 <exportAntProperties>true</exportAntProperties>
975 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
976 <condition property="is_windows" value="true">
977 <os family="windows"/>
979 <condition property="isLinux" value="true">
983 <equals arg1="${is_windows}" arg2="true"/>
985 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
986 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
987 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
988 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
989 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
992 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
993 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
994 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
995 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
996 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
997 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
1009 <groupId>ant-contrib</groupId>
1010 <artifactId>ant-contrib</artifactId>
1011 <version>1.0b3</version>
1014 <groupId>ant</groupId>
1015 <artifactId>ant</artifactId>
1022 <groupId>io.swagger</groupId>
1023 <artifactId>swagger-codegen-maven-plugin</artifactId>
1024 <version>2.2.1</version>
1028 <goal>generate</goal>
1031 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1032 <output>${project.build.directory}/generated-sources</output>
1033 <language>java</language>
1035 <dateLibrary>joda</dateLibrary>
1037 <library>jersey2</library>
1038 <groupId>${project.groupId}</groupId>
1039 <artifactId>${project.artifactId}-java-sdk</artifactId>
1040 <artifactVersion>${project.version}</artifactVersion>
1041 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1042 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1043 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1049 <groupId>org.codehaus.mojo</groupId>
1050 <artifactId>exec-maven-plugin</artifactId>
1051 <version>1.5.0</version>
1054 <id>swagger-generate-sources</id>
1055 <phase>generate-sources</phase>
1060 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1066 <groupId>org.apache.maven.plugins</groupId>
1067 <artifactId>maven-clean-plugin</artifactId>
1068 <version>3.0.0</version>
1071 <id>clean-generated-files</id>
1072 <phase>generate-sources</phase>
1079 <directory>${project.build.directory}/generated-sources</directory>
1090 <groupId>org.onap.msb.swagger-sdk</groupId>
1091 <artifactId>swagger-sdk</artifactId>
1092 <version>1.0.0</version>
1097 <id>sonar-jacoco-aggregate</id>
1100 <name>onap.jacoco.aggregateFile</name>
1106 <groupId>org.jacoco</groupId>
1107 <artifactId>jacoco-maven-plugin</artifactId>
1114 <phase>generate-resources</phase>
1116 <destFile>${onap.jacoco.aggregateFile}</destFile>
1119 <directory>${project.basedir}</directory>
1121 <include>**/target/code-coverage/*.exec</include>
1132 <!-- End of profiles from ONAP oparent -->
1135 <id>yang-compile</id>
1138 <exists>src/main/yang</exists>
1144 <groupId>org.opendaylight.yangtools</groupId>
1145 <artifactId>yang-maven-plugin</artifactId>
1146 <version>3.0.11</version>
1149 <groupId>org.opendaylight.mdsal</groupId>
1150 <artifactId>maven-sal-api-gen-plugin</artifactId>
1151 <version>${odl.mdsal.model.version}</version>
1153 <scope>compile</scope>
1156 <groupId>org.opendaylight.netconf</groupId>
1157 <artifactId>sal-rest-docgen-maven</artifactId>
1158 <version>${odl.netconf.sal.rest.docgen.version}</version>
1166 <goal>generate-sources</goal>
1169 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1172 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1173 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1176 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1177 <outputBaseDir>target/swagger</outputBaseDir>
1180 <inspectDependencies>true</inspectDependencies>