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>8.1.3</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>odlparent</artifactId>
17 <version>2.2.4-SNAPSHOT</version>
18 <packaging>pom</packaging>
20 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
22 <url>http://wiki.onap.org</url>
29 <url>https://jira.onap.org/</url>
31 <distributionManagement>
33 <id>ecomp-releases</id>
34 <url>${onap.nexus.release-url}</url>
37 <id>ecomp-snapshots</id>
38 <url>${onap.nexus.snapshot-url}</url>
40 </distributionManagement>
43 <!-- Sonar properties -->
44 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
45 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
46 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
47 <!-- Default Sonar configuration -->
48 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
49 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
50 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
52 <!-- Jacoco properties -->
53 <jacoco.version>0.8.5</jacoco.version>
55 <!-- properties from oparent -->
56 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
58 <!-- sitePath may be overridden in the inheriting POM if desired -->
59 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
61 <!-- If following file exist, auto-generation of swagger.json will be done -->
62 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
63 <!-- If following file exist, auto-generation of sdk will be done -->
64 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
65 <!-- end of properties from oparent -->
67 <!-- ONAP repositories -->
68 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
69 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
70 <onap.nexus.port>443</onap.nexus.port>
71 <onap.nexus.protocol>https</onap.nexus.protocol>
72 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
73 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
74 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
75 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
76 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
77 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
79 <!-- OpenDaylight repositories -->
80 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
81 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
83 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
84 <java.version>11</java.version>
85 <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
86 <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
87 <bundle.plugin.version>4.2.1</bundle.plugin.version>
88 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
89 <features.file>features.xml</features.file>
90 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
91 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
92 <checkstyle.plugin.version>3.1.1</checkstyle.plugin.version>
93 <checkstyle.skip>true</checkstyle.skip>
94 <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
96 <!-- logging-analytics versions -->
97 <logging-analytics.version>1.6.9</logging-analytics.version>
99 <!-- CCSDK component versions -->
100 <ccsdk.cds.version>(1.1.99999, 1.2.99999)</ccsdk.cds.version>
101 <ccsdk.features.version>(1.1.99999, 1.2.99999)</ccsdk.features.version>
102 <ccsdk.distribution.version>(1.1.99999, 1.2.99999)</ccsdk.distribution.version>
103 <ccsdk.sli.version>(1.2.99999, 1.3.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>1.13.4</odl.controller.mdsal.version>
115 <odl.mdsal.version>7.0.9</odl.mdsal.version>
116 <odl.mdsal.model.version>7.0.9</odl.mdsal.model.version>
117 <odl.netconf.restconf.version>1.13.4</odl.netconf.restconf.version>
118 <odl.netconf.netconf.version>1.13.4</odl.netconf.netconf.version>
119 <odl.netconf.sal.rest.docgen.version>1.13.4</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.11</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>2.7.7</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>29.0-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.11.4</jackson.version>
140 <!-- Used by snmp4sdn, yangtools -->
141 <javassist.version>3.27.0-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.27</jersey.version>
147 <jersey.client.version>2.27</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.13.2</junit.version>
156 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
157 <logback.version>1.11.7</logback.version>
158 <!-- Used by nic, sfc, sxp, tsdr -->
159 <mockito.version>3.3.3</mockito.version>
160 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
161 <netty.version>4.1.65.Final</netty.version>
162 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
163 <slf4j.version>1.7.29</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.8-1</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.13</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 <log4j.version>2.17.1</log4j.version>
180 <log4j2.version>2.17.1</log4j2.version>
181 <mariadb.connector.version>2.7.3</mariadb.connector.version>
182 <mariadb4j.version>2.4.0</mariadb4j.version>
183 <testng.version>6.14.3</testng.version>
184 <tomcat-jdbc.version>9.0.52</tomcat-jdbc.version>
185 <jetty.version>9.4.40.v20210413</jetty.version>
186 <skip.karaf.featureTest>true</skip.karaf.featureTest>
187 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
190 <dependencyManagement>
192 <!-- Note: If value in BOM conflicts with value inherited from
193 parent pom, inherited value takes precedence. This seems more like
194 a bug than a feature, but this is how maven 3.6 works -->
196 <groupId>org.onap.ccsdk.parent</groupId>
197 <artifactId>dependencies-odl-bom</artifactId>
198 <version>2.2.4-SNAPSHOT</version>
200 <scope>import</scope>
203 <groupId>org.onap.ccsdk.parent</groupId>
204 <artifactId>dependencies-bom</artifactId>
205 <version>2.2.4-SNAPSHOT</version>
207 <scope>import</scope>
210 <groupId>org.springframework.boot</groupId>
211 <artifactId>spring-boot-dependencies</artifactId>
212 <version>2.3.8.RELEASE</version>
213 <scope>import</scope>
217 <groupId>org.onap.logging-analytics</groupId>
218 <artifactId>logging-slf4j</artifactId>
219 <version>${logging-analytics.version}</version>
222 <groupId>org.onap.logging-analytics</groupId>
223 <artifactId>logging-filter-base</artifactId>
224 <version>${logging-analytics.version}</version>
227 <groupId>junit</groupId>
228 <artifactId>junit</artifactId>
229 <version>${junit.version}</version>
233 </dependencyManagement>
238 <url>${onap.nexus.public-url}</url>
240 <enabled>true</enabled>
241 <updatePolicy>never</updatePolicy>
244 <enabled>true</enabled>
245 <updatePolicy>always</updatePolicy>
249 <id>onap-staging</id>
250 <url>${onap.nexus.staging-url}</url>
252 <enabled>true</enabled>
253 <updatePolicy>never</updatePolicy>
256 <enabled>true</enabled>
257 <updatePolicy>always</updatePolicy>
261 <id>ecomp-release</id>
262 <name>onap-repository-releases</name>
263 <url>${onap.nexus.release-url}</url>
265 <enabled>true</enabled>
266 <updatePolicy>never</updatePolicy>
269 <enabled>false</enabled>
273 <id>ecomp-snapshot</id>
274 <name>onap-repository-snapshots</name>
275 <url>${onap.nexus.snapshot-url}</url>
277 <enabled>false</enabled>
280 <enabled>true</enabled>
284 <id>opendaylight-mirror</id>
285 <name>opendaylight-mirror</name>
286 <url>${opendaylight.nexus.public-url}</url>
288 <enabled>true</enabled>
289 <updatePolicy>never</updatePolicy>
292 <enabled>false</enabled>
296 <id>opendaylight-snapshot</id>
297 <name>opendaylight-snapshot</name>
298 <url>${opendaylight.nexus.snapshot-url}</url>
300 <enabled>false</enabled>
303 <enabled>true</enabled>
311 <url>${onap.nexus.public-url}</url>
313 <enabled>true</enabled>
316 <enabled>true</enabled>
320 <id>onap-staging</id>
321 <url>${onap.nexus.staging-url}</url>
323 <enabled>true</enabled>
326 <enabled>true</enabled>
330 <id>onap-snapshot</id>
331 <url>${onap.nexus.snapshot-url}</url>
333 <enabled>false</enabled>
336 <enabled>true</enabled>
340 <id>opendaylight-mirror</id>
341 <name>opendaylight-mirror</name>
342 <url>${opendaylight.nexus.public-url}</url>
344 <enabled>true</enabled>
345 <updatePolicy>never</updatePolicy>
348 <enabled>false</enabled>
352 <id>opendaylight-snapshot</id>
353 <name>opendaylight-snapshot</name>
354 <url>${opendaylight.nexus.snapshot-url}</url>
356 <enabled>false</enabled>
359 <enabled>true</enabled>
362 <!-- Black Duck plugin dependencies -->
365 <name>JCenter Repository</name>
366 <url>http://jcenter.bintray.com</url>
370 <name>Restlet Repository</name>
371 <url>http://maven.restlet.com</url>
373 </pluginRepositories>
378 <!-- Plugins from ONAP version (parent of oparent) -->
380 <groupId>org.apache.maven.plugins</groupId>
381 <artifactId>maven-deploy-plugin</artifactId>
382 <!-- This version supports the "deployAtEnd" parameter -->
383 <version>2.8</version>
386 <deployAtEnd>true</deployAtEnd>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-site-plugin</artifactId>
392 <version>3.6</version>
395 <groupId>org.apache.maven.wagon</groupId>
396 <artifactId>wagon-webdav-jackrabbit</artifactId>
397 <version>2.10</version>
402 <groupId>org.apache.maven.plugins</groupId>
403 <artifactId>maven-enforcer-plugin</artifactId>
404 <version>3.0.0-M2</version>
407 <id>enforce-property</id>
414 <property>onap.nexus.url</property>
415 <message>You must set a onap.nexus.url property in your
416 ~/.m2/settings.xml. See oparent/settings.xml for an example.
424 <id>enforce-no-snapshots</id>
431 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
432 <onlyWhenRelease>true</onlyWhenRelease>
434 </requireReleaseDeps>
439 <id>enforce-maven</id>
447 </requireJavaVersion>
448 <requireMavenVersion>
449 <version>[3.5.0,)</version>
450 </requireMavenVersion>
455 <id>enforce-banned-dependencies</id>
462 <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>
464 <exclude>org.mockito:mockito-all</exclude>
465 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
467 </bannedDependencies>
474 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
476 <groupId>org.sonarsource.scanner.maven</groupId>
477 <artifactId>sonar-maven-plugin</artifactId>
478 <version>${sonar.scanner.version}</version>
480 <!-- end of plugins from ONAP version (parent of oparent) -->
481 <!-- Plugins from ONAP oparent -->
483 <groupId>org.apache.maven.plugins</groupId>
484 <artifactId>maven-surefire-plugin</artifactId>
485 <version>${maven-surefire-plugin.version}</version>
487 <!-- Sets the VM argument line used when unit tests are run. -->
488 <argLine>${surefireArgLine}</argLine>
489 <!-- Excludes integration tests when unit tests are run. -->
491 <exclude>**/IT*.java</exclude>
496 <groupId>org.apache.maven.plugins</groupId>
497 <artifactId>maven-failsafe-plugin</artifactId>
498 <version>${maven-failsafe-plugin.version}</version>
500 <!-- Ensures that both integration-test and verify goals of the Failsafe
501 Maven plugin are executed. -->
503 <id>integration-tests</id>
505 <goal>integration-test</goal>
509 <!-- Sets the VM argument line used when integration tests are run. -->
510 <argLine>${failsafeArgLine}</argLine>
516 <!-- End of plugins from ONAP oparent -->
518 <groupId>org.codehaus.mojo</groupId>
519 <artifactId>properties-maven-plugin</artifactId>
520 <version>1.0.0</version>
524 <goal>set-system-properties</goal>
529 <name>maven.wagon.http.ssl.allowall</name>
530 <value>${ssl.allowall}</value>
533 <name>maven.wagon.http.ssl.insecure</name>
534 <value>${ssl.insecure}</value>
543 <groupId>org.codehaus.mojo</groupId>
544 <artifactId>versions-maven-plugin</artifactId>
545 <version>2.5</version>
547 <processAllModules>true</processAllModules>
551 <artifactId>maven-scm-plugin</artifactId>
552 <version>1.8.1</version>
554 <tag>${project.artifactId}-${project.version}</tag>
558 <groupId>com.github.ferstl</groupId>
559 <artifactId>depgraph-maven-plugin</artifactId>
560 <version>3.3.0</version>
562 <graphFormat>text</graphFormat>
563 <outputFileName>${dependency-list.file}</outputFileName>
564 <outputDirectory>${project.basedir}</outputDirectory>
565 <transitiveExcludes>*</transitiveExcludes>
566 <showVersions>true</showVersions>
567 <showGroupIds>true</showGroupIds>
571 <groupId>de.jacks-it-lab</groupId>
572 <artifactId>frontend-maven-plugin</artifactId>
573 <version>1.7.2</version>
576 <groupId>com.github.alexcojocaru</groupId>
577 <artifactId>elasticsearch-maven-plugin</artifactId>
578 <version>6.16</version>
580 <version>7.1.1</version>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-javadoc-plugin</artifactId>
586 <version>3.2.0</version>
588 <failOnError>false</failOnError>
592 <groupId>com.github.spotbugs</groupId>
593 <artifactId>spotbugs-maven-plugin</artifactId>
594 <version>3.1.12.2</version>
597 <id>analyze-compile</id>
598 <phase>compile</phase>
605 <groupId>jp.skypencil.findbugs.slf4j</groupId>
606 <artifactId>bug-pattern</artifactId>
607 <version>1.5.0</version>
611 <threshold>Low</threshold>
612 <failOnError>false</failOnError>
614 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
615 <xmlOutput>true</xmlOutput>
616 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
622 <groupId>com.github.spotbugs</groupId>
623 <artifactId>spotbugs</artifactId>
624 <version>3.1.12</version>
625 <scope>compile</scope>
628 <groupId>org.opendaylight.odlparent</groupId>
629 <artifactId>spotbugs</artifactId>
630 <version>7.0.5</version>
631 <scope>compile</scope>
634 <groupId>org.slf4j</groupId>
635 <artifactId>slf4j-simple</artifactId>
636 <version>1.8.0-beta2</version>
637 <scope>compile</scope>
643 <groupId>jp.skypencil.findbugs.slf4j</groupId>
644 <artifactId>bug-pattern</artifactId>
645 <version>1.5.0</version>
649 <threshold>Low</threshold>
650 <failOnError>false</failOnError>
652 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
653 <xmlOutput>true</xmlOutput>
654 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
658 <groupId>org.apache.maven.plugins</groupId>
659 <artifactId>maven-checkstyle-plugin</artifactId>
660 <version>${checkstyle.plugin.version}</version>
663 <groupId>org.onap.oparent</groupId>
664 <artifactId>checkstyle</artifactId>
665 <version>1.2.2</version>
670 <phase>process-sources</phase>
675 <failOnViolation>false</failOnViolation>
680 <id>check-license</id>
684 <phase>process-sources</phase>
686 <configLocation>onap-checkstyle/check-license.xml</configLocation>
687 <includeResources>false</includeResources>
688 <includeTestSourceDirectory>true</includeTestSourceDirectory>
689 <includeTestResources>false</includeTestResources>
691 <directory>${project.build.sourceDirectory}</directory>
695 <consoleOutput>true</consoleOutput>
696 <failOnViolation>false</failOnViolation>
700 <id>onap-java-style</id>
704 <phase>process-sources</phase>
706 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
707 with minor changes -->
708 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
709 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
711 <directory>${project.build.sourceDirectory}/src/main/java</directory>
713 <includeResources>true</includeResources>
714 <includeTestSourceDirectory>true</includeTestSourceDirectory>
715 <includeTestResources>true</includeTestResources>
718 <consoleOutput>true</consoleOutput>
719 <failOnViolation>false</failOnViolation>
725 <groupId>org.gaul</groupId>
726 <artifactId>modernizer-maven-plugin</artifactId>
727 <version>2.1.0</version>
731 <phase>verify</phase>
733 <goal>modernizer</goal>
736 <failOnViolations>false</failOnViolations>
742 <failOnViolations>false</failOnViolations>
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 -->
1269 <id>yang-compile</id>
1272 <exists>src/main/yang</exists>
1278 <groupId>org.opendaylight.yangtools</groupId>
1279 <artifactId>yang-maven-plugin</artifactId>
1280 <version>6.0.6</version>
1283 <groupId>org.opendaylight.mdsal</groupId>
1284 <artifactId>maven-sal-api-gen-plugin</artifactId>
1285 <version>${odl.mdsal.model.version}</version>
1287 <scope>compile</scope>
1290 <groupId>org.opendaylight.netconf</groupId>
1291 <artifactId>sal-rest-docgen-maven</artifactId>
1292 <version>${odl.netconf.sal.rest.docgen.version}</version>
1300 <goal>generate-sources</goal>
1303 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1306 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1307 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1311 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1312 <outputBaseDir>target/swagger</outputBaseDir>
1316 <inspectDependencies>true</inspectDependencies>