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>${odlparent.groupId}</groupId>
10 <artifactId>${odlparent.artifactId}</artifactId>
11 <version>${odlparent.version}</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>${odlparent.artifactId}</artifactId>
17 <version>${project.version}</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.0.2-SNAPSHOT</ccsdk.cds.version>
100 <ccsdk.features.version>1.0.3-SNAPSHOT</ccsdk.features.version>
101 <ccsdk.sli.version>1.0.4-SNAPSHOT</ccsdk.sli.version>
102 <ccsdk.sli.core.version>\${ccsdk.sli.version}</ccsdk.sli.core.version>
103 <ccsdk.sli.adaptors.version>\${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
104 <ccsdk.sli.northbound.version>\${ccsdk.sli.version}</ccsdk.sli.northbound.version>
105 <ccsdk.sli.plugins.version>\${ccsdk.sli.version}</ccsdk.sli.plugins.version>
106 <ccsdk.distribution.version>1.0.4-SNAPSHOT</ccsdk.distribution.version>
107 <sdnctl.sli.version>\${ccsdk.sli.core.version}</sdnctl.sli.version>
108 <sdnctl.aai.service.version>\${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
109 <sdnctl.dblib.version>\${ccsdk.sli.core.version}</sdnctl.dblib.version>
110 <sdnctl.mdsal.resource.version>\${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
111 <sdnctl.slipluginutils.version>\${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
113 <!-- Support libraries used by OpenDaylight -->
114 <odl.controller.mdsal.version>1.10.3</odl.controller.mdsal.version>
115 <odl.mdsal.version>4.0.14</odl.mdsal.version>
116 <odl.mdsal.model.version>2.0.14</odl.mdsal.model.version>
117 <odl.netconf.restconf.version>1.10.3</odl.netconf.restconf.version>
118 <odl.netconf.netconf.version>1.7.3</odl.netconf.netconf.version>
119 <odl.netconf.sal.rest.docgen.version>1.10.3</odl.netconf.sal.rest.docgen.version>
121 <!-- Used by aaa, vtn -->
122 <commons.codec.version>1.13</commons.codec.version>
123 <!-- Used by netconf, ovsdb -->
124 <commons.lang3.version>3.8.1</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.6</commons.net.version>
129 <!-- Used by neutron -->
130 <eclipse.persistence.version>2.7.4</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.8.5</gson.version>
135 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
136 <guava.version>25.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.9.10</jackson.version>
140 <!-- Used by snmp4sdn, yangtools -->
141 <javassist.version>3.24.1-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.25.1</jersey.version>
147 <jersey.client.version>2.25.1</jersey.client.version>
149 <!-- New packages for jersey migration 1.17 to 2.8 -->
150 <!-- appache.geronimo.bundle for DocGen -->
151 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
152 <org.json.version>20131018</org.json.version>
154 <!-- Used everywhere -->
155 <junit.version>4.12</junit.version>
156 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
157 <logback.version>1.2.3</logback.version>
158 <!-- Used by nic, sfc, sxp, tsdr -->
159 <mockito.version>1.10.19</mockito.version>
160 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
161 <netty.version>4.1.42.Final</netty.version>
162 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
163 <slf4j.version>1.7.25</slf4j.version>
164 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
165 <spring.version>4.3.25.RELEASE</spring.version>
167 <!-- Extra support libraries used by SDN-C -->
168 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
169 <antlr.version>4.7.2</antlr.version>
171 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
173 <!-- Managed dependency versions -->
174 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
175 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
176 <derby.version>10.14.2.0</derby.version>
177 <eelf.version>1.0.0</eelf.version>
178 <grpc.version>1.21.1</grpc.version>
179 <mariadb.connector.version>2.4.4</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.30</tomcat-jdbc.version>
183 <jetty.version>9.4.12.v20180830</jetty.version>
184 <skip.karaf.featureTest>true</skip.karaf.featureTest>
185 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
188 <dependencyManagement>
190 <!-- Note: If value in BOM conflicts with value inherited from
191 parent pom, inherited value takes precedence. This seems more like
192 a bug than a feature, but this is how maven 3.6 works -->
194 <groupId>org.onap.ccsdk.parent</groupId>
195 <artifactId>dependencies-odl-bom</artifactId>
196 <version>${project.version}</version>
198 <scope>import</scope>
201 <groupId>org.onap.logging-analytics</groupId>
202 <artifactId>logging-slf4j</artifactId>
203 <version>\${logging-analytics.version}</version>
206 <groupId>org.onap.logging-analytics</groupId>
207 <artifactId>logging-filter-base</artifactId>
208 <version>\${logging-analytics.version}</version>
211 <groupId>junit</groupId>
212 <artifactId>junit</artifactId>
213 <version>\${junit.version}</version>
217 </dependencyManagement>
222 <url>\${onap.nexus.public-url}</url>
224 <enabled>true</enabled>
225 <updatePolicy>never</updatePolicy>
228 <enabled>true</enabled>
229 <updatePolicy>always</updatePolicy>
233 <id>onap-staging</id>
234 <url>\${onap.nexus.staging-url}</url>
236 <enabled>true</enabled>
237 <updatePolicy>never</updatePolicy>
240 <enabled>true</enabled>
241 <updatePolicy>always</updatePolicy>
245 <id>ecomp-release</id>
246 <name>onap-repository-releases</name>
247 <url>\${onap.nexus.release-url}</url>
249 <enabled>true</enabled>
250 <updatePolicy>never</updatePolicy>
253 <enabled>false</enabled>
257 <id>ecomp-snapshot</id>
258 <name>onap-repository-snapshots</name>
259 <url>\${onap.nexus.snapshot-url}</url>
261 <enabled>false</enabled>
264 <enabled>true</enabled>
268 <id>opendaylight-mirror</id>
269 <name>opendaylight-mirror</name>
270 <url>\${opendaylight.nexus.public-url}</url>
272 <enabled>true</enabled>
273 <updatePolicy>never</updatePolicy>
276 <enabled>false</enabled>
280 <id>opendaylight-snapshot</id>
281 <name>opendaylight-snapshot</name>
282 <url>\${opendaylight.nexus.snapshot-url}</url>
284 <enabled>false</enabled>
287 <enabled>true</enabled>
295 <url>\${onap.nexus.public-url}</url>
297 <enabled>true</enabled>
300 <enabled>true</enabled>
304 <id>onap-staging</id>
305 <url>\${onap.nexus.staging-url}</url>
307 <enabled>true</enabled>
310 <enabled>true</enabled>
314 <id>onap-snapshot</id>
315 <url>\${onap.nexus.snapshot-url}</url>
317 <enabled>false</enabled>
320 <enabled>true</enabled>
324 <id>opendaylight-mirror</id>
325 <name>opendaylight-mirror</name>
326 <url>\${opendaylight.nexus.public-url}</url>
328 <enabled>true</enabled>
329 <updatePolicy>never</updatePolicy>
332 <enabled>false</enabled>
336 <id>opendaylight-snapshot</id>
337 <name>opendaylight-snapshot</name>
338 <url>\${opendaylight.nexus.snapshot-url}</url>
340 <enabled>false</enabled>
343 <enabled>true</enabled>
346 <!-- Black Duck plugin dependencies -->
349 <name>JCenter Repository</name>
350 <url>http://jcenter.bintray.com</url>
355 <name>Restlet Repository</name>
356 <url>http://maven.restlet.com</url>
358 </pluginRepositories>
363 <!-- Plugins from ONAP version (parent of oparent) -->
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-deploy-plugin</artifactId>
367 <!-- This version supports the "deployAtEnd" parameter -->
368 <version>2.8</version>
374 <groupId>org.apache.maven.plugins</groupId>
375 <artifactId>maven-site-plugin</artifactId>
376 <version>3.6</version>
379 <groupId>org.apache.maven.wagon</groupId>
380 <artifactId>wagon-webdav-jackrabbit</artifactId>
381 <version>2.10</version>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-enforcer-plugin</artifactId>
388 <version>3.0.0-M2</version>
391 <id>enforce-property</id>
398 <property>onap.nexus.url</property>
399 <message>You must set a onap.nexus.url property in your
400 ~/.m2/settings.xml. See oparent/settings.xml for an example.
408 <id>enforce-no-snapshots</id>
415 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
416 <onlyWhenRelease>true</onlyWhenRelease>
418 </requireReleaseDeps>
423 <id>enforce-maven</id>
431 </requireJavaVersion>
432 <requireMavenVersion>
433 <version>[3.5.0,)</version>
434 </requireMavenVersion>
439 <id>enforce-banned-dependencies</id>
446 <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>
448 <exclude>org.mockito:mockito-all</exclude>
449 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
451 </bannedDependencies>
458 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
460 <groupId>org.sonarsource.scanner.maven</groupId>
461 <artifactId>sonar-maven-plugin</artifactId>
462 <version>${sonar.scanner.version}</version>
464 <!-- end of plugins from ONAP version (parent of oparent) -->
466 <!-- Plugins from ONAP oparent -->
468 <groupId>org.apache.maven.plugins</groupId>
469 <artifactId>maven-surefire-plugin</artifactId>
470 <version>2.22.0</version>
472 <!-- Sets the VM argument line used when unit tests are run. -->
473 <argLine>\${surefireArgLine}</argLine>
474 <!-- Excludes integration tests when unit tests are run. -->
476 <exclude>**/IT*.java</exclude>
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-failsafe-plugin</artifactId>
483 <version>2.22.0</version>
485 <!-- Ensures that both integration-test and verify goals of the Failsafe
486 Maven plugin are executed. -->
488 <id>integration-tests</id>
490 <goal>integration-test</goal>
494 <!-- Sets the VM argument line used when integration tests are run. -->
495 <argLine>\${failsafeArgLine}</argLine>
501 <!-- End of plugins from ONAP oparent -->
503 <groupId>org.codehaus.mojo</groupId>
504 <artifactId>properties-maven-plugin</artifactId>
505 <version>1.0.0</version>
509 <goal>set-system-properties</goal>
514 <name>maven.wagon.http.ssl.allowall</name>
515 <value>\${ssl.allowall}</value>
518 <name>maven.wagon.http.ssl.insecure</name>
519 <value>\${ssl.insecure}</value>
528 <groupId>org.codehaus.mojo</groupId>
529 <artifactId>versions-maven-plugin</artifactId>
530 <version>2.5</version>
532 <processAllModules>true</processAllModules>
536 <artifactId>maven-scm-plugin</artifactId>
537 <version>1.8.1</version>
539 <tag>\${project.artifactId}-\${project.version}</tag>
543 <groupId>com.github.ferstl</groupId>
544 <artifactId>depgraph-maven-plugin</artifactId>
545 <version>3.3.0</version>
547 <graphFormat>text</graphFormat>
548 <outputFileName>\${dependency-list.file}</outputFileName>
549 <outputDirectory>\${project.basedir}</outputDirectory>
550 <transitiveExcludes>*</transitiveExcludes>
551 <showVersions>true</showVersions>
552 <showGroupIds>true</showGroupIds>
556 <groupId>de.jacks-it-lab</groupId>
557 <artifactId>frontend-maven-plugin</artifactId>
558 <version>1.7.2</version>
561 <groupId>com.github.alexcojocaru</groupId>
562 <artifactId>elasticsearch-maven-plugin</artifactId>
563 <version>6.16</version>
565 <version>7.1.1</version>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-javadoc-plugin</artifactId>
571 <version>3.2.0</version>
573 <failOnError>false</failOnError>
580 <!-- Plugins from oparent version (parent of oparent) -->
582 <groupId>org.apache.maven.plugins</groupId>
583 <artifactId>maven-deploy-plugin</artifactId>
586 <groupId>org.apache.maven.plugins</groupId>
587 <artifactId>maven-site-plugin</artifactId>
589 <!-- end of plugins from oparent version (parent of oparent) -->
591 <!-- Plugins from oparent -->
593 <artifactId>maven-checkstyle-plugin</artifactId>
594 <version>2.17</version>
597 <groupId>org.onap.oparent</groupId>
598 <artifactId>checkstyle</artifactId>
599 <version>1.2.2</version>
604 <id>onap-license</id>
608 <phase>process-sources</phase>
610 <configLocation>onap-checkstyle/check-license.xml</configLocation>
611 <includeResources>false</includeResources>
612 <includeTestSourceDirectory>true</includeTestSourceDirectory>
613 <includeTestResources>false</includeTestResources>
614 <sourceDirectory>\${project.build.sourceDirectory}</sourceDirectory>
617 <consoleOutput>true</consoleOutput>
618 <failOnViolation>false</failOnViolation>
622 <id>onap-java-style</id>
626 <phase>process-sources</phase>
628 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
629 with minor changes -->
630 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
631 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
632 <sourceDirectory>\${project.build.sourceDirectory}/src/main/java</sourceDirectory>
633 <includeResources>true</includeResources>
634 <includeTestSourceDirectory>true</includeTestSourceDirectory>
635 <includeTestResources>true</includeTestResources>
638 <consoleOutput>true</consoleOutput>
639 <failOnViolation>false</failOnViolation>
645 <groupId>org.codehaus.mojo</groupId>
646 <artifactId>build-helper-maven-plugin</artifactId>
647 <version>1.12</version>
649 <!-- Jacoco / Sonar -->
651 <groupId>org.jacoco</groupId>
652 <artifactId>jacoco-maven-plugin</artifactId>
653 <version>\${jacoco.version}</version>
656 <id>pre-unit-test</id>
658 <goal>prepare-agent</goal>
661 <!-- Sets the path to the file which contains the execution data. -->
662 <destFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
663 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
664 <propertyName>surefireArgLine</propertyName>
667 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
669 <id>post-unit-test</id>
675 <!-- Sets the path to the file which contains the execution data. -->
676 <dataFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
677 <!-- Sets the output directory for the code coverage report. -->
678 <outputDirectory>\${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
682 <id>pre-integration-test</id>
683 <phase>pre-integration-test</phase>
685 <goal>prepare-agent</goal>
688 <!-- Sets the path to the file which contains the execution data. -->
689 <destFile>\${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
690 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
691 <propertyName>failsafeArgLine</propertyName>
694 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
696 <id>post-integration-test</id>
697 <phase>post-integration-test</phase>
702 <!-- Sets the path to the file which contains the execution data. -->
703 <dataFile>\${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
704 <!-- Sets the output directory for the code coverage report. -->
705 <outputDirectory>\${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
709 <id>default-prepare-agent</id>
711 <goal>prepare-agent</goal>
715 <id>default-report</id>
716 <phase>prepare-package</phase>
722 <id>default-check</id>
729 <element>PACKAGE</element>
732 <counter>COMPLEXITY</counter>
733 <value>COVEREDRATIO</value>
734 <minimum>0.0</minimum>
744 <groupId>org.apache.maven.plugins</groupId>
745 <artifactId>maven-surefire-plugin</artifactId>
748 <groupId>org.apache.maven.plugins</groupId>
749 <artifactId>maven-failsafe-plugin</artifactId>
751 <!-- end of plugins from oparent -->
753 <groupId>org.apache.maven.plugins</groupId>
754 <artifactId>maven-javadoc-plugin</artifactId>
757 <id>attach-javadocs</id>
762 <additionalparam>-Xdoclint:none</additionalparam>
768 <artifactId>maven-enforcer-plugin</artifactId>
769 <version>3.0.0-M2</version>
772 <id>enforce-property</id>
779 <property>onap.nexus.url</property>
780 <message>You must set a onap.nexus.url property in your
781 ~/.m2/settings.xml. See oparent/settings.xml for an example.</message>
788 <id>enforce-no-snapshots</id>
795 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
796 <onlyWhenRelease>true</onlyWhenRelease>
798 </requireReleaseDeps>
803 <id>enforce-maven</id>
810 <version>1.8.0</version>
811 </requireJavaVersion>
812 <requireMavenVersion>
813 <version>[3.5.0,)</version>
814 </requireMavenVersion>
819 <id>enforce-banned-dependencies</id>
826 <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>
828 <exclude>org.mockito:mockito-all</exclude>
829 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
831 </bannedDependencies>
839 <groupId>pl.project13.maven</groupId>
840 <artifactId>git-commit-id-plugin</artifactId>
841 <version>4.0.0</version>
843 <commitIdGenerationMode>full</commitIdGenerationMode>
844 <includeOnlyProperties>
845 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
846 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
847 </includeOnlyProperties>
856 <artifactId>maven-javadoc-plugin</artifactId>
858 <failOnError>false</failOnError>
859 <additionalparam>-Xdoclint:none</additionalparam>
866 <!-- Profiles from ONAP oparent -->
868 <id>generate-json</id>
871 <exists>\${swagger-properties}</exists>
874 <name>swagger-sdk.generate-json</name>
880 <groupId>org.codehaus.mojo</groupId>
881 <artifactId>properties-maven-plugin</artifactId>
882 <version>1.0.0</version>
885 <phase>initialize</phase>
887 <goal>read-project-properties</goal>
891 <file>\${basedir}/src/main/resources/swagger.properties</file>
898 <groupId>com.github.kongchen</groupId>
899 <artifactId>swagger-maven-plugin</artifactId>
900 <version>3.1.4</version>
904 <locations>\${api-rest-package}</locations>
905 <schemes>http,https</schemes>
906 <host>\${api-host-ip}:\${api-host-port}</host>
907 <basePath>\${api-base-path}</basePath>
909 <title>\${api-title}</title>
910 <version>\${api-version}</version>
911 <description>\${api-description}</description>
913 <name>\${api-license}</name>
916 <swaggerDirectory>\${basedir}/src/main/resources</swaggerDirectory>
922 <phase>compile</phase>
924 <goal>generate</goal>
930 <groupId>org.apache.maven.plugins</groupId>
931 <artifactId>maven-install-plugin</artifactId>
932 <version>2.3.1</version>
935 <id>install-file-id</id>
936 <phase>install</phase>
938 <goal>install-file</goal>
941 <file>\${basedir}/src/main/resources/swagger.json</file>
942 <groupId>\${project.groupId}</groupId>
943 <artifactId>\${project.artifactId}-swagger-schema</artifactId>
944 <version>\${project.version}</version>
945 <packaging>json</packaging>
954 <id>generate-sdk</id>
957 <exists>\${swagger-json}</exists>
960 <name>swagger-sdk.generate-java-sdk</name>
966 <groupId>org.apache.maven.plugins</groupId>
967 <artifactId>maven-antrun-plugin</artifactId>
968 <version>1.8</version>
971 <phase>initialize</phase>
972 <id>ant-create-script</id>
974 <exportAntProperties>true</exportAntProperties>
976 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
977 <condition property="is_windows" value="true">
978 <os family="windows"/>
980 <condition property="isLinux" value="true">
984 <equals arg1="\${is_windows}" arg2="true"/>
986 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
987 <echo file="\${project.build.directory}\${file.separator}generated-source-script.bat" append="true"
988 message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
989 <echo file="\${project.build.directory}\${file.separator}generated-source-script.bat" append="true"
990 message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
993 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
994 <echo file="\${project.build.directory}\${file.separator}generated-source-script.sh" append="true"
995 message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
996 <echo file="\${project.build.directory}\${file.separator}generated-source-script.sh" append="true"
997 message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
998 <chmod file="\${project.build.directory}\${file.separator}generated-source-script.sh" perm="755"/>
1010 <groupId>ant-contrib</groupId>
1011 <artifactId>ant-contrib</artifactId>
1012 <version>1.0b3</version>
1015 <groupId>ant</groupId>
1016 <artifactId>ant</artifactId>
1023 <groupId>io.swagger</groupId>
1024 <artifactId>swagger-codegen-maven-plugin</artifactId>
1025 <version>2.2.1</version>
1029 <goal>generate</goal>
1032 <inputSpec>\${basedir}/src/main/resources/swagger.json</inputSpec>
1033 <output>\${project.build.directory}/generated-sources</output>
1034 <language>java</language>
1036 <dateLibrary>joda</dateLibrary>
1038 <library>jersey2</library>
1039 <groupId>\${project.groupId}</groupId>
1040 <artifactId>\${project.artifactId}-java-sdk</artifactId>
1041 <artifactVersion>\${project.version}</artifactVersion>
1042 <modelPackage>\${project.groupId}.\${project.artifactId}.client.model</modelPackage>
1043 <apiPackage>\${project.groupId}.\${project.artifactId}.client.api</apiPackage>
1044 <invokerPackage>\${project.groupId}.\${project.artifactId}.client.invoker</invokerPackage>
1050 <groupId>org.codehaus.mojo</groupId>
1051 <artifactId>exec-maven-plugin</artifactId>
1052 <version>1.5.0</version>
1055 <id>swagger-generate-sources</id>
1056 <phase>generate-sources</phase>
1061 <executable>\${project.build.directory}\${file.separator}\${swagger.sdk.script.file}</executable>
1067 <groupId>org.apache.maven.plugins</groupId>
1068 <artifactId>maven-clean-plugin</artifactId>
1069 <version>3.0.0</version>
1072 <id>clean-generated-files</id>
1073 <phase>generate-sources</phase>
1080 <directory>\${project.build.directory}/generated-sources</directory>
1091 <groupId>org.onap.msb.swagger-sdk</groupId>
1092 <artifactId>swagger-sdk</artifactId>
1093 <version>1.0.0</version>
1098 <id>sonar-jacoco-aggregate</id>
1101 <name>onap.jacoco.aggregateFile</name>
1107 <groupId>org.jacoco</groupId>
1108 <artifactId>jacoco-maven-plugin</artifactId>
1115 <phase>generate-resources</phase>
1117 <destFile>${onap.jacoco.aggregateFile}</destFile>
1120 <directory>\${project.basedir}</directory>
1122 <include>**/target/code-coverage/*.exec</include>
1133 <!-- End of profiles from ONAP oparent -->
1136 <id>yang-compile</id>
1139 <exists>src/main/yang</exists>
1145 <groupId>org.opendaylight.yangtools</groupId>
1146 <artifactId>yang-maven-plugin</artifactId>
1147 <version>3.0.11</version>
1150 <groupId>org.opendaylight.mdsal</groupId>
1151 <artifactId>maven-sal-api-gen-plugin</artifactId>
1152 <version>\${odl.mdsal.model.version}</version>
1154 <scope>compile</scope>
1157 <groupId>org.opendaylight.netconf</groupId>
1158 <artifactId>sal-rest-docgen-maven</artifactId>
1159 <version>\${odl.netconf.sal.rest.docgen.version}</version>
1167 <goal>generate-sources</goal>
1170 <yangFilesRootDir>\${yang.file.directory}</yangFilesRootDir>
1173 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1174 <outputBaseDir>\${salGeneratorPath}</outputBaseDir>
1177 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1178 <outputBaseDir>target/swagger</outputBaseDir>
1181 <inspectDependencies>true</inspectDependencies>