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>7.0.8</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>odlparent-lite</artifactId>
17 <version>2.1.9-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.4</ccsdk.cds.version>
101 <ccsdk.features.version>1.1.6-SNAPSHOT</ccsdk.features.version>
102 <ccsdk.distribution.version>1.1.7-SNAPSHOT</ccsdk.distribution.version>
103 <ccsdk.sli.version>1.2.4-SNAPSHOT</ccsdk.sli.version>
104 <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
105 <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
106 <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
107 <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
108 <sdnctl.aai.service.version>${ccsdk.sli.version}</sdnctl.aai.service.version>
109 <sdnctl.dblib.version>${ccsdk.sli.version}</sdnctl.dblib.version>
110 <sdnctl.mdsal.resource.version>${ccsdk.sli.version}</sdnctl.mdsal.resource.version>
111 <sdnctl.slipluginutils.version>${ccsdk.sli.version}</sdnctl.slipluginutils.version>
113 <!-- Support libraries used by OpenDaylight -->
114 <yangtools.version>5.0.8</yangtools.version>
115 <odl.mdsal.version>6.0.8</odl.mdsal.version>
116 <odl.mdsal.model.version>6.0.8</odl.mdsal.model.version>
117 <odl.controller.mdsal.version>1.12.3</odl.controller.mdsal.version>
118 <odl.netconf.restconf.version>1.12.3</odl.netconf.restconf.version>
119 <odl.netconf.netconf.version>1.9.3</odl.netconf.netconf.version>
120 <odl.netconf.sal.rest.docgen.version>1.12.3</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.11</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.7.2</commons.net.version>
130 <!-- Used by neutron -->
131 <eclipse.persistence.version>2.7.7</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.8.5</gson.version>
136 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
137 <guava.version>28.2-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.10.5</jackson.version>
141 <!-- Used by snmp4sdn, yangtools -->
142 <javassist.version>3.27.0-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.27</jersey.version>
148 <jersey.client.version>2.27</jersey.client.version>
150 <!-- New packages for jersey migration 1.17 to 2.8 -->
151 <!-- appache.geronimo.bundle for DocGen -->
152 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
153 <org.json.version>20131018</org.json.version>
155 <!-- Used everywhere -->
156 <junit.version>4.13</junit.version>
157 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
158 <logback.version>1.11.7</logback.version>
159 <!-- Used by nic, sfc, sxp, tsdr -->
160 <mockito.version>3.3.3</mockito.version>
161 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
162 <netty.version>4.1.56.Final</netty.version>
163 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
164 <slf4j.version>1.7.28</slf4j.version>
165 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
166 <spring.version>4.3.25.RELEASE</spring.version>
168 <!-- Extra support libraries used by SDN-C -->
169 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
170 <antlr.version>4.8-1</antlr.version>
172 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
174 <!-- Managed dependency versions -->
175 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
176 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
177 <derby.version>10.14.2.0</derby.version>
178 <eelf.version>1.0.0</eelf.version>
179 <grpc.version>1.21.1</grpc.version>
180 <mariadb.connector.version>2.4.4</mariadb.connector.version>
181 <mariadb4j.version>2.4.0</mariadb4j.version>
182 <testng.version>6.14.3</testng.version>
183 <tomcat-jdbc.version>9.0.30</tomcat-jdbc.version>
184 <jetty.version>9.4.31.v20200723</jetty.version>
185 <skip.karaf.featureTest>true</skip.karaf.featureTest>
186 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
189 <dependencyManagement>
191 <!-- Note: If value in BOM conflicts with value inherited from
192 parent pom, inherited value takes precedence. This seems more like
193 a bug than a feature, but this is how maven 3.6 works -->
195 <groupId>org.onap.ccsdk.parent</groupId>
196 <artifactId>dependencies-odl-bom</artifactId>
197 <version>2.1.9-SNAPSHOT</version>
199 <scope>import</scope>
202 <groupId>org.onap.ccsdk.parent</groupId>
203 <artifactId>dependencies-bom</artifactId>
204 <version>2.1.9-SNAPSHOT</version>
206 <scope>import</scope>
209 <groupId>org.springframework.boot</groupId>
210 <artifactId>spring-boot-dependencies</artifactId>
211 <version>2.3.8.RELEASE</version>
212 <scope>import</scope>
216 <groupId>org.onap.logging-analytics</groupId>
217 <artifactId>logging-slf4j</artifactId>
218 <version>${logging-analytics.version}</version>
221 <groupId>org.onap.logging-analytics</groupId>
222 <artifactId>logging-filter-base</artifactId>
223 <version>${logging-analytics.version}</version>
226 <groupId>junit</groupId>
227 <artifactId>junit</artifactId>
228 <version>${junit.version}</version>
232 </dependencyManagement>
237 <url>${onap.nexus.public-url}</url>
239 <enabled>true</enabled>
240 <updatePolicy>never</updatePolicy>
243 <enabled>true</enabled>
244 <updatePolicy>always</updatePolicy>
248 <id>onap-staging</id>
249 <url>${onap.nexus.staging-url}</url>
251 <enabled>true</enabled>
252 <updatePolicy>never</updatePolicy>
255 <enabled>true</enabled>
256 <updatePolicy>always</updatePolicy>
260 <id>ecomp-release</id>
261 <name>onap-repository-releases</name>
262 <url>${onap.nexus.release-url}</url>
264 <enabled>true</enabled>
265 <updatePolicy>never</updatePolicy>
268 <enabled>false</enabled>
272 <id>ecomp-snapshot</id>
273 <name>onap-repository-snapshots</name>
274 <url>${onap.nexus.snapshot-url}</url>
276 <enabled>false</enabled>
279 <enabled>true</enabled>
283 <id>opendaylight-mirror</id>
284 <name>opendaylight-mirror</name>
285 <url>${opendaylight.nexus.public-url}</url>
287 <enabled>true</enabled>
288 <updatePolicy>never</updatePolicy>
291 <enabled>false</enabled>
295 <id>opendaylight-snapshot</id>
296 <name>opendaylight-snapshot</name>
297 <url>${opendaylight.nexus.snapshot-url}</url>
299 <enabled>false</enabled>
302 <enabled>true</enabled>
310 <url>${onap.nexus.public-url}</url>
312 <enabled>true</enabled>
315 <enabled>true</enabled>
319 <id>onap-staging</id>
320 <url>${onap.nexus.staging-url}</url>
322 <enabled>true</enabled>
325 <enabled>true</enabled>
329 <id>onap-snapshot</id>
330 <url>${onap.nexus.snapshot-url}</url>
332 <enabled>false</enabled>
335 <enabled>true</enabled>
339 <id>opendaylight-mirror</id>
340 <name>opendaylight-mirror</name>
341 <url>${opendaylight.nexus.public-url}</url>
343 <enabled>true</enabled>
344 <updatePolicy>never</updatePolicy>
347 <enabled>false</enabled>
351 <id>opendaylight-snapshot</id>
352 <name>opendaylight-snapshot</name>
353 <url>${opendaylight.nexus.snapshot-url}</url>
355 <enabled>false</enabled>
358 <enabled>true</enabled>
361 <!-- Black Duck plugin dependencies -->
364 <name>JCenter Repository</name>
365 <url>http://jcenter.bintray.com</url>
369 <name>Restlet Repository</name>
370 <url>http://maven.restlet.com</url>
372 </pluginRepositories>
377 <!-- Plugins from ONAP version (parent of oparent) -->
379 <groupId>org.apache.maven.plugins</groupId>
380 <artifactId>maven-deploy-plugin</artifactId>
381 <!-- This version supports the "deployAtEnd" parameter -->
382 <version>2.8</version>
385 <deployAtEnd>true</deployAtEnd>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-site-plugin</artifactId>
391 <version>3.6</version>
394 <groupId>org.apache.maven.wagon</groupId>
395 <artifactId>wagon-webdav-jackrabbit</artifactId>
396 <version>2.10</version>
401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-enforcer-plugin</artifactId>
403 <version>3.0.0-M2</version>
406 <id>enforce-property</id>
413 <property>onap.nexus.url</property>
414 <message>You must set a onap.nexus.url property in your
415 ~/.m2/settings.xml. See oparent/settings.xml for an example.
423 <id>enforce-no-snapshots</id>
430 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
431 <onlyWhenRelease>true</onlyWhenRelease>
433 </requireReleaseDeps>
438 <id>enforce-maven</id>
446 </requireJavaVersion>
447 <requireMavenVersion>
448 <version>[3.5.0,)</version>
449 </requireMavenVersion>
454 <id>enforce-banned-dependencies</id>
461 <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>
463 <exclude>org.mockito:mockito-all</exclude>
464 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
466 </bannedDependencies>
473 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
475 <groupId>org.sonarsource.scanner.maven</groupId>
476 <artifactId>sonar-maven-plugin</artifactId>
477 <version>${sonar.scanner.version}</version>
479 <!-- end of plugins from ONAP version (parent of oparent) -->
480 <!-- Plugins from ONAP oparent -->
482 <groupId>org.apache.maven.plugins</groupId>
483 <artifactId>maven-surefire-plugin</artifactId>
484 <version>${maven-surefire-plugin.version}</version>
486 <!-- Sets the VM argument line used when unit tests are run. -->
487 <argLine>${surefireArgLine}</argLine>
488 <!-- Excludes integration tests when unit tests are run. -->
490 <exclude>**/IT*.java</exclude>
495 <groupId>org.apache.maven.plugins</groupId>
496 <artifactId>maven-failsafe-plugin</artifactId>
497 <version>${maven-failsafe-plugin.version}</version>
499 <!-- Ensures that both integration-test and verify goals of the Failsafe
500 Maven plugin are executed. -->
502 <id>integration-tests</id>
504 <goal>integration-test</goal>
508 <!-- Sets the VM argument line used when integration tests are run. -->
509 <argLine>${failsafeArgLine}</argLine>
515 <!-- End of plugins from ONAP oparent -->
517 <groupId>org.codehaus.mojo</groupId>
518 <artifactId>properties-maven-plugin</artifactId>
519 <version>1.0.0</version>
523 <goal>set-system-properties</goal>
528 <name>maven.wagon.http.ssl.allowall</name>
529 <value>${ssl.allowall}</value>
532 <name>maven.wagon.http.ssl.insecure</name>
533 <value>${ssl.insecure}</value>
542 <groupId>org.codehaus.mojo</groupId>
543 <artifactId>versions-maven-plugin</artifactId>
544 <version>2.5</version>
546 <processAllModules>true</processAllModules>
550 <artifactId>maven-scm-plugin</artifactId>
551 <version>1.8.1</version>
553 <tag>${project.artifactId}-${project.version}</tag>
557 <groupId>com.github.ferstl</groupId>
558 <artifactId>depgraph-maven-plugin</artifactId>
559 <version>3.3.0</version>
561 <graphFormat>text</graphFormat>
562 <outputFileName>${dependency-list.file}</outputFileName>
563 <outputDirectory>${project.basedir}</outputDirectory>
564 <transitiveExcludes>*</transitiveExcludes>
565 <showVersions>true</showVersions>
566 <showGroupIds>true</showGroupIds>
570 <groupId>de.jacks-it-lab</groupId>
571 <artifactId>frontend-maven-plugin</artifactId>
572 <version>1.7.2</version>
575 <groupId>com.github.alexcojocaru</groupId>
576 <artifactId>elasticsearch-maven-plugin</artifactId>
577 <version>6.16</version>
579 <version>7.1.1</version>
583 <groupId>org.apache.maven.plugins</groupId>
584 <artifactId>maven-javadoc-plugin</artifactId>
585 <version>3.2.0</version>
587 <failOnError>false</failOnError>
591 <groupId>com.github.spotbugs</groupId>
592 <artifactId>spotbugs-maven-plugin</artifactId>
593 <version>3.1.12.2</version>
596 <id>analyze-compile</id>
597 <phase>compile</phase>
604 <groupId>jp.skypencil.findbugs.slf4j</groupId>
605 <artifactId>bug-pattern</artifactId>
606 <version>1.5.0</version>
610 <threshold>Low</threshold>
611 <failOnError>false</failOnError>
613 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
614 <xmlOutput>true</xmlOutput>
615 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
621 <groupId>com.github.spotbugs</groupId>
622 <artifactId>spotbugs</artifactId>
623 <version>3.1.12</version>
624 <scope>compile</scope>
627 <groupId>org.opendaylight.odlparent</groupId>
628 <artifactId>spotbugs</artifactId>
629 <version>7.0.5</version>
630 <scope>compile</scope>
633 <groupId>org.slf4j</groupId>
634 <artifactId>slf4j-simple</artifactId>
635 <version>1.8.0-beta2</version>
636 <scope>compile</scope>
642 <groupId>jp.skypencil.findbugs.slf4j</groupId>
643 <artifactId>bug-pattern</artifactId>
644 <version>1.5.0</version>
648 <threshold>Low</threshold>
649 <failOnError>false</failOnError>
651 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
652 <xmlOutput>true</xmlOutput>
653 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
657 <groupId>org.apache.maven.plugins</groupId>
658 <artifactId>maven-checkstyle-plugin</artifactId>
659 <version>${checkstyle.plugin.version}</version>
662 <groupId>org.onap.oparent</groupId>
663 <artifactId>checkstyle</artifactId>
664 <version>1.2.2</version>
669 <phase>process-sources</phase>
674 <failOnViolation>false</failOnViolation>
679 <id>check-license</id>
683 <phase>process-sources</phase>
685 <configLocation>onap-checkstyle/check-license.xml</configLocation>
686 <includeResources>false</includeResources>
687 <includeTestSourceDirectory>true</includeTestSourceDirectory>
688 <includeTestResources>false</includeTestResources>
690 <directory>${project.build.sourceDirectory}</directory>
694 <consoleOutput>true</consoleOutput>
695 <failOnViolation>false</failOnViolation>
699 <id>onap-java-style</id>
703 <phase>process-sources</phase>
705 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
706 with minor changes -->
707 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
708 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
710 <directory>${project.build.sourceDirectory}/src/main/java</directory>
712 <includeResources>true</includeResources>
713 <includeTestSourceDirectory>true</includeTestSourceDirectory>
714 <includeTestResources>true</includeTestResources>
717 <consoleOutput>true</consoleOutput>
718 <failOnViolation>false</failOnViolation>
726 <!-- Plugins from oparent version (parent of oparent) -->
728 <groupId>org.apache.maven.plugins</groupId>
729 <artifactId>maven-deploy-plugin</artifactId>
732 <groupId>org.apache.maven.plugins</groupId>
733 <artifactId>maven-site-plugin</artifactId>
738 <groupId>org.apache.maven.plugins</groupId>
739 <artifactId>maven-checkstyle-plugin</artifactId>
740 <version>${checkstyle.plugin.version}</version>
746 <!-- end of plugins from oparent version (parent of oparent) -->
748 <!-- Plugins from oparent -->
750 <groupId>org.apache.maven.plugins</groupId>
751 <artifactId>maven-checkstyle-plugin</artifactId>
754 <groupId>org.codehaus.mojo</groupId>
755 <artifactId>build-helper-maven-plugin</artifactId>
756 <version>1.12</version>
758 <!-- Jacoco / Sonar -->
760 <groupId>org.jacoco</groupId>
761 <artifactId>jacoco-maven-plugin</artifactId>
762 <version>${jacoco.version}</version>
765 <id>pre-unit-test</id>
767 <goal>prepare-agent</goal>
770 <!-- Sets the path to the file which contains the execution data. -->
771 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
772 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
773 <propertyName>surefireArgLine</propertyName>
776 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
778 <id>post-unit-test</id>
784 <!-- Sets the path to the file which contains the execution data. -->
785 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
786 <!-- Sets the output directory for the code coverage report. -->
787 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
791 <id>pre-integration-test</id>
792 <phase>pre-integration-test</phase>
794 <goal>prepare-agent</goal>
797 <!-- Sets the path to the file which contains the execution data. -->
798 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
799 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
800 <propertyName>failsafeArgLine</propertyName>
803 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
805 <id>post-integration-test</id>
806 <phase>post-integration-test</phase>
811 <!-- Sets the path to the file which contains the execution data. -->
812 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
813 <!-- Sets the output directory for the code coverage report. -->
814 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
818 <id>default-prepare-agent</id>
820 <goal>prepare-agent</goal>
824 <id>default-report</id>
825 <phase>prepare-package</phase>
831 <id>default-check</id>
838 <element>PACKAGE</element>
841 <counter>COMPLEXITY</counter>
842 <value>COVEREDRATIO</value>
843 <minimum>0.0</minimum>
853 <groupId>org.apache.maven.plugins</groupId>
854 <artifactId>maven-surefire-plugin</artifactId>
857 <groupId>org.apache.maven.plugins</groupId>
858 <artifactId>maven-failsafe-plugin</artifactId>
860 <!-- end of plugins from oparent -->
862 <groupId>org.apache.maven.plugins</groupId>
863 <artifactId>maven-javadoc-plugin</artifactId>
866 <id>attach-javadocs</id>
871 <additionalparam>-Xdoclint:none</additionalparam>
877 <artifactId>maven-enforcer-plugin</artifactId>
878 <version>3.0.0-M2</version>
881 <id>enforce-property</id>
888 <property>onap.nexus.url</property>
889 <message>You must set a onap.nexus.url property in your
890 ~/.m2/settings.xml. See oparent/settings.xml for an example.
898 <id>enforce-no-snapshots</id>
905 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
906 <onlyWhenRelease>true</onlyWhenRelease>
908 </requireReleaseDeps>
913 <id>enforce-maven</id>
920 <version>1.8.0</version>
921 </requireJavaVersion>
922 <requireMavenVersion>
923 <version>[3.5.0,)</version>
924 </requireMavenVersion>
929 <id>enforce-banned-dependencies</id>
936 <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>
938 <exclude>org.mockito:mockito-all</exclude>
939 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
941 </bannedDependencies>
949 <groupId>pl.project13.maven</groupId>
950 <artifactId>git-commit-id-plugin</artifactId>
951 <version>4.0.0</version>
953 <commitIdGenerationMode>full</commitIdGenerationMode>
954 <includeOnlyProperties>
955 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
956 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
957 </includeOnlyProperties>
966 <artifactId>maven-javadoc-plugin</artifactId>
968 <failOnError>false</failOnError>
969 <additionalparam>-Xdoclint:none</additionalparam>
976 <!-- Profiles from ONAP oparent -->
978 <id>generate-json</id>
981 <exists>${swagger-properties}</exists>
984 <name>swagger-sdk.generate-json</name>
990 <groupId>org.codehaus.mojo</groupId>
991 <artifactId>properties-maven-plugin</artifactId>
992 <version>1.0.0</version>
995 <phase>initialize</phase>
997 <goal>read-project-properties</goal>
1001 <file>${basedir}/src/main/resources/swagger.properties</file>
1008 <groupId>com.github.kongchen</groupId>
1009 <artifactId>swagger-maven-plugin</artifactId>
1010 <version>3.1.4</version>
1014 <locations>${api-rest-package}</locations>
1015 <schemes>http,https</schemes>
1016 <host>${api-host-ip}:${api-host-port}</host>
1017 <basePath>${api-base-path}</basePath>
1019 <title>${api-title}</title>
1020 <version>${api-version}</version>
1021 <description>${api-description}</description>
1023 <name>${api-license}</name>
1026 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
1032 <phase>compile</phase>
1034 <goal>generate</goal>
1040 <groupId>org.apache.maven.plugins</groupId>
1041 <artifactId>maven-install-plugin</artifactId>
1042 <version>2.3.1</version>
1045 <id>install-file-id</id>
1046 <phase>install</phase>
1048 <goal>install-file</goal>
1051 <file>${basedir}/src/main/resources/swagger.json</file>
1052 <groupId>${project.groupId}</groupId>
1053 <artifactId>${project.artifactId}-swagger-schema</artifactId>
1054 <version>${project.version}</version>
1055 <packaging>json</packaging>
1064 <id>generate-sdk</id>
1067 <exists>${swagger-json}</exists>
1070 <name>swagger-sdk.generate-java-sdk</name>
1076 <groupId>org.apache.maven.plugins</groupId>
1077 <artifactId>maven-antrun-plugin</artifactId>
1078 <version>1.8</version>
1081 <phase>initialize</phase>
1082 <id>ant-create-script</id>
1084 <exportAntProperties>true</exportAntProperties>
1086 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
1087 <condition property="is_windows" value="true">
1088 <os family="windows"/>
1090 <condition property="isLinux" value="true">
1094 <equals arg1="${is_windows}" arg2="true"/>
1096 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1097 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1098 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1099 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1100 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1103 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1104 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1105 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1106 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1107 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1108 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
1120 <groupId>ant-contrib</groupId>
1121 <artifactId>ant-contrib</artifactId>
1122 <version>1.0b3</version>
1125 <groupId>ant</groupId>
1126 <artifactId>ant</artifactId>
1133 <groupId>io.swagger</groupId>
1134 <artifactId>swagger-codegen-maven-plugin</artifactId>
1135 <version>2.2.1</version>
1139 <goal>generate</goal>
1142 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1143 <output>${project.build.directory}/generated-sources</output>
1144 <language>java</language>
1146 <dateLibrary>joda</dateLibrary>
1148 <library>jersey2</library>
1149 <groupId>${project.groupId}</groupId>
1150 <artifactId>${project.artifactId}-java-sdk</artifactId>
1151 <artifactVersion>${project.version}</artifactVersion>
1152 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1153 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1154 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1160 <groupId>org.codehaus.mojo</groupId>
1161 <artifactId>exec-maven-plugin</artifactId>
1162 <version>1.5.0</version>
1165 <id>swagger-generate-sources</id>
1166 <phase>generate-sources</phase>
1171 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1177 <groupId>org.apache.maven.plugins</groupId>
1178 <artifactId>maven-clean-plugin</artifactId>
1179 <version>3.0.0</version>
1182 <id>clean-generated-files</id>
1183 <phase>generate-sources</phase>
1190 <directory>${project.build.directory}/generated-sources</directory>
1201 <groupId>org.onap.msb.swagger-sdk</groupId>
1202 <artifactId>swagger-sdk</artifactId>
1203 <version>1.0.0</version>
1208 <id>sonar-jacoco-aggregate</id>
1211 <name>onap.jacoco.aggregateFile</name>
1217 <groupId>org.jacoco</groupId>
1218 <artifactId>jacoco-maven-plugin</artifactId>
1225 <phase>generate-resources</phase>
1227 <destFile>${onap.jacoco.aggregateFile}</destFile>
1230 <directory>${project.basedir}</directory>
1232 <include>**/target/code-coverage/*.exec</include>
1243 <!-- End of profiles from ONAP oparent -->
1246 <id>yang-compile</id>
1249 <exists>src/main/yang</exists>
1255 <groupId>org.opendaylight.yangtools</groupId>
1256 <artifactId>yang-maven-plugin</artifactId>
1257 <version>${yangtools.version}</version>
1260 <groupId>org.opendaylight.mdsal</groupId>
1261 <artifactId>maven-sal-api-gen-plugin</artifactId>
1262 <version>${odl.mdsal.model.version}</version>
1264 <scope>compile</scope>
1267 <groupId>org.opendaylight.netconf</groupId>
1268 <artifactId>sal-rest-docgen-maven</artifactId>
1269 <version>${odl.netconf.sal.rest.docgen.version}</version>
1277 <goal>generate-sources</goal>
1280 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1283 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1284 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1288 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1289 <outputBaseDir>target/swagger</outputBaseDir>
1293 <inspectDependencies>true</inspectDependencies>