blob: 5a65bf1e60ddd1d6051b532d2a6e94bdb368233b [file] [log] [blame]
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -05001<?xml version="1.0" encoding="UTF-8"?>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04002<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">
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05003 <modelVersion>4.0.0</modelVersion>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04004
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05005 <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/setup/src/main/template/pom-template.xml
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04006 Any updates needed should be made to that template and not to the generated
7 pom.xml file -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05008 <parent>
9 <groupId>${odlparent.groupId}</groupId>
10 <artifactId>${odlparent.artifactId}</artifactId>
11 <version>${odlparent.version}</version>
12 <relativePath/>
13 </parent>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050014
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050015 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>${odlparent.artifactId}</artifactId>
17 <version>${project.version}</version>
18 <packaging>pom</packaging>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050019
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050020 <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>
23 <organization>
24 <name>ONAP</name>
25 </organization>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050026
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050027 <issueManagement>
28 <system>JIRA</system>
29 <url>https://jira.onap.org/</url>
30 </issueManagement>
31 <distributionManagement>
32 <repository>
33 <id>ecomp-releases</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050034 <url>\${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050035 </repository>
36 <snapshotRepository>
37 <id>ecomp-snapshots</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050038 <url>\${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050039 </snapshotRepository>
40 </distributionManagement>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050041
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050042 <properties>
Dan Timoney621888e2020-01-17 09:54:02 -050043 <!-- 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>
51
52 <!-- Jacoco properties -->
Dan Timoney5ed8b042023-02-08 07:40:23 -050053 <jacoco.version>0.8.8</jacoco.version>
Dan Timoney621888e2020-01-17 09:54:02 -050054
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050055 <!-- properties from oparent -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050056 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050058 <!-- sitePath may be overridden in the inheriting POM if desired -->
59 <sitePath>/content/sites/site/\${project.groupId}/\${project.artifactId}/\${project.version}</sitePath>
Singal, Kapil (ks220y)e14c10b2020-01-07 11:54:24 -050060
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050061 <!-- 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 -->
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050066
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050067 <!-- ONAP repositories -->
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -040068 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050069 <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>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050078
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050079 <!-- 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>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050082
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050083 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Dan Timoney5ed8b042023-02-08 07:40:23 -050084 <java.version>17</java.version>
85 <maven-surefire-plugin.version>3.0.0-M8</maven-surefire-plugin.version>
86 <maven-failsafe-plugin.version>3.0.0-M8</maven-failsafe-plugin.version>
Dan Timoneyeef985c2023-01-31 09:02:33 -050087 <bundle.plugin.version>5.1.1</bundle.plugin.version>
Dan Timoney5ed8b042023-02-08 07:40:23 -050088 <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050089 <features.file>features.xml</features.file>
90 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
91 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
Dan Timoney5ed8b042023-02-08 07:40:23 -050092 <checkstyle.plugin.version>3.2.1</checkstyle.plugin.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050093 <checkstyle.skip>true</checkstyle.skip>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010094 <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050095
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +000096 <!-- logging-analytics versions -->
Claudio D. Gasparini10688642021-05-14 10:33:22 +020097 <logging-analytics.version>1.6.9</logging-analytics.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -050098
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -050099 <!-- CCSDK component versions -->
Timoney, Dan (dt5972)9d4203e2022-10-20 14:22:09 -0400100 <ccsdk.cds.version>(1.4.99999, 1.5.99999-SNAPSHOT]</ccsdk.cds.version>
101 <ccsdk.features.version>(1.4.99999, 1.5.99999-SNAPSHOT]</ccsdk.features.version>
102 <ccsdk.distribution.version>(1.4.99999, 1.5.99999-SNAPSHOT]</ccsdk.distribution.version>
103 <ccsdk.sli.version>(1.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.sli.version>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500104 <ccsdk.sli.core.version>\${ccsdk.sli.version}</ccsdk.sli.core.version>
Jozsef Csongvaia4d399c2020-12-14 07:39:31 -0500105 <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>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500108 <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>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500112
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500113 <!-- Support libraries used by OpenDaylight -->
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100114 <odl.controller.mdsal.version>10.0.5</odl.controller.mdsal.version>
115 <odl.mdsal.version>11.0.3</odl.mdsal.version>
116 <odl.mdsal.model.version>11.0.3</odl.mdsal.model.version>
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100117 <odl.mdsal.generator.version>8.0.5</odl.mdsal.generator.version>
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100118 <odl.netconf.restconf.version>10.0.5</odl.netconf.restconf.version>
119 <odl.netconf.netconf.version>10.0.5</odl.netconf.netconf.version>
120 <odl.netconf.sal.rest.docgen.version>10.0.5</odl.netconf.sal.rest.docgen.version>
Timoney, Dan (dt5972)135e4072019-07-01 13:08:58 -0400121
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500122 <!-- Used by aaa, vtn -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100123 <commons.codec.version>1.15</commons.codec.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500124 <!-- Used by netconf, ovsdb -->
Dan Timoneyfc006212021-10-05 15:55:28 -0400125 <commons.lang3.version>3.12.0</commons.lang3.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500126 <!-- 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 -->
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400129 <commons.net.version>3.8.0</commons.net.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500130 <!-- Used by neutron -->
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100131 <eclipse.persistence.version>None</eclipse.persistence.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500132 <!-- Used by aaa -->
133 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
134 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100135 <gson.version>2.10</gson.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500136 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
Michael Dürred3168e32022-06-13 05:23:15 +0200137 <guava.version>31.1-jre</guava.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500138 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400139 integration/distribution, snmp4sdn, toolkit, ttp -->
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100140 <jackson.version>2.13.4</jackson.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500141 <!-- Used by snmp4sdn, yangtools -->
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100142 <javassist.version>3.29.2-GA</javassist.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500143
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500144 <!-- 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 -->
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100146 <jersey.version>2.37</jersey.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500147 <!-- Used by sfc -->
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100148 <jersey.client.version>2.37</jersey.client.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500149
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500150 <!-- Used everywhere -->
Dan Timoneyd9c8dcb2021-08-23 11:36:27 -0400151 <junit.version>4.13.2</junit.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500152 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
Dan Timoney59d34e42022-07-25 09:36:01 -0400153 <logback.version>1.2.11</logback.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500154 <!-- Used by nic, sfc, sxp, tsdr -->
Dan Timoney29e355f2022-07-21 08:21:16 -0400155 <mockito.version>3.12.4</mockito.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500156 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100157 <netty.version>4.1.84.Final</netty.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500158 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100159 <slf4j.version>1.7.32</slf4j.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500160 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
Singal, Kapil (ks220y)b5adc452020-02-20 13:53:41 -0500161 <spring.version>4.3.25.RELEASE</spring.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500162
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500163 <!-- Extra support libraries used by SDN-C -->
164 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400165 <antlr.version>4.8-1</antlr.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500166
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500167 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500168
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500169 <!-- Managed dependency versions -->
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500170 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
Dan Timoneyd9c8dcb2021-08-23 11:36:27 -0400171 <apache.httpcomponents.client.version>4.5.13</apache.httpcomponents.client.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500172 <derby.version>10.14.2.0</derby.version>
173 <eelf.version>1.0.0</eelf.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500174 <grpc.version>1.21.1</grpc.version>
Dan Timoney156d2a92022-01-03 11:49:40 -0500175 <log4j.version>2.17.1</log4j.version>
176 <log4j2.version>2.17.1</log4j2.version>
Michael Dürre7af1cbe2023-01-04 15:45:22 +0100177 <jetty.version>9.4.49.v20220914</jetty.version>
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100178 <mariadb.connector.version>2.7.5</mariadb.connector.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500179 <mariadb4j.version>2.4.0</mariadb4j.version>
180 <testng.version>6.14.3</testng.version>
Dan Timoneybc67c402021-08-05 10:46:18 -0400181 <tomcat-jdbc.version>9.0.52</tomcat-jdbc.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500182 <skip.karaf.featureTest>true</skip.karaf.featureTest>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500183 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500184 </properties>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500185
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500186 <dependencyManagement>
187 <dependencies>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500188 <!-- Note: If value in BOM conflicts with value inherited from
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400189 parent pom, inherited value takes precedence. This seems more like
190 a bug than a feature, but this is how maven 3.6 works -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500191 <dependency>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100192 <groupId>${project.groupId}</groupId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500193 <artifactId>dependencies-odl-bom</artifactId>
Singal, Kapil (ks220y)17d2d572019-12-05 14:12:45 -0500194 <version>${project.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500195 <type>pom</type>
196 <scope>import</scope>
197 </dependency>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500198 <dependency>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100199 <groupId>${project.groupId}</groupId>
200 <artifactId>dependencies-bom</artifactId>
201 <version>${project.version}</version>
202 <type>pom</type>
203 <scope>import</scope>
204 </dependency>
205 <dependency>
206 <groupId>org.springframework.boot</groupId>
207 <artifactId>spring-boot-dependencies</artifactId>
208 <version>2.3.8.RELEASE</version>
209 <scope>import</scope>
210 <type>pom</type>
211 </dependency>
212 <dependency>
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100213 <groupId>org.mariadb.jdbc</groupId>
214 <artifactId>mariadb-java-client</artifactId>
215 <version>${mariadb.connector.version}</version>
216 </dependency>
217 <dependency>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500218 <groupId>org.onap.logging-analytics</groupId>
219 <artifactId>logging-slf4j</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000220 <version>\${logging-analytics.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500221 </dependency>
222 <dependency>
223 <groupId>org.onap.logging-analytics</groupId>
224 <artifactId>logging-filter-base</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000225 <version>\${logging-analytics.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500226 </dependency>
Singal, Kapil (ks220y)ffff34a2020-02-27 11:02:51 -0500227 <dependency>
228 <groupId>junit</groupId>
229 <artifactId>junit</artifactId>
230 <version>\${junit.version}</version>
231 <scope>test</scope>
232 </dependency>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500233 </dependencies>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500234 </dependencyManagement>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400235
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500236 <repositories>
237 <repository>
238 <id>onap-public</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500239 <url>\${onap.nexus.public-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500240 <releases>
241 <enabled>true</enabled>
242 <updatePolicy>never</updatePolicy>
243 </releases>
244 <snapshots>
245 <enabled>true</enabled>
246 <updatePolicy>always</updatePolicy>
247 </snapshots>
248 </repository>
249 <repository>
250 <id>onap-staging</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500251 <url>\${onap.nexus.staging-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500252 <releases>
253 <enabled>true</enabled>
254 <updatePolicy>never</updatePolicy>
255 </releases>
256 <snapshots>
257 <enabled>true</enabled>
258 <updatePolicy>always</updatePolicy>
259 </snapshots>
260 </repository>
261 <repository>
262 <id>ecomp-release</id>
263 <name>onap-repository-releases</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500264 <url>\${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500265 <releases>
266 <enabled>true</enabled>
267 <updatePolicy>never</updatePolicy>
268 </releases>
269 <snapshots>
270 <enabled>false</enabled>
271 </snapshots>
272 </repository>
273 <repository>
274 <id>ecomp-snapshot</id>
275 <name>onap-repository-snapshots</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500276 <url>\${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500277 <releases>
278 <enabled>false</enabled>
279 </releases>
280 <snapshots>
281 <enabled>true</enabled>
282 </snapshots>
283 </repository>
284 <repository>
285 <id>opendaylight-mirror</id>
286 <name>opendaylight-mirror</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500287 <url>\${opendaylight.nexus.public-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500288 <releases>
289 <enabled>true</enabled>
290 <updatePolicy>never</updatePolicy>
291 </releases>
292 <snapshots>
293 <enabled>false</enabled>
294 </snapshots>
295 </repository>
296 <repository>
297 <id>opendaylight-snapshot</id>
298 <name>opendaylight-snapshot</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500299 <url>\${opendaylight.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500300 <releases>
301 <enabled>false</enabled>
302 </releases>
303 <snapshots>
304 <enabled>true</enabled>
305 </snapshots>
306 </repository>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500307 </repositories>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400308
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500309 <pluginRepositories>
310 <pluginRepository>
311 <id>onap-public</id>
312 <url>\${onap.nexus.public-url}</url>
313 <releases>
314 <enabled>true</enabled>
315 </releases>
316 <snapshots>
317 <enabled>true</enabled>
318 </snapshots>
319 </pluginRepository>
320 <pluginRepository>
321 <id>onap-staging</id>
322 <url>\${onap.nexus.staging-url}</url>
323 <releases>
324 <enabled>true</enabled>
325 </releases>
326 <snapshots>
327 <enabled>true</enabled>
328 </snapshots>
329 </pluginRepository>
330 <pluginRepository>
331 <id>onap-snapshot</id>
332 <url>\${onap.nexus.snapshot-url}</url>
333 <releases>
334 <enabled>false</enabled>
335 </releases>
336 <snapshots>
337 <enabled>true</enabled>
338 </snapshots>
339 </pluginRepository>
340 <pluginRepository>
341 <id>opendaylight-mirror</id>
342 <name>opendaylight-mirror</name>
343 <url>\${opendaylight.nexus.public-url}</url>
344 <releases>
345 <enabled>true</enabled>
346 <updatePolicy>never</updatePolicy>
347 </releases>
348 <snapshots>
349 <enabled>false</enabled>
350 </snapshots>
351 </pluginRepository>
352 <pluginRepository>
353 <id>opendaylight-snapshot</id>
354 <name>opendaylight-snapshot</name>
355 <url>\${opendaylight.nexus.snapshot-url}</url>
356 <releases>
357 <enabled>false</enabled>
358 </releases>
359 <snapshots>
360 <enabled>true</enabled>
361 </snapshots>
362 </pluginRepository>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500363 </pluginRepositories>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400364
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500365 <build>
366 <pluginManagement>
367 <plugins>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500368 <!-- Plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500369 <plugin>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-deploy-plugin</artifactId>
372 <!-- This version supports the "deployAtEnd" parameter -->
373 <version>2.8</version>
374 <configuration>
375 <skip/>
Singal, Kapil (ks220y)6fa7fc92021-02-01 16:11:38 -0500376 <deployAtEnd>true</deployAtEnd>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500377 </configuration>
378 </plugin>
379 <plugin>
380 <groupId>org.apache.maven.plugins</groupId>
381 <artifactId>maven-site-plugin</artifactId>
382 <version>3.6</version>
383 <dependencies>
384 <dependency>
385 <groupId>org.apache.maven.wagon</groupId>
386 <artifactId>wagon-webdav-jackrabbit</artifactId>
387 <version>2.10</version>
388 </dependency>
389 </dependencies>
390 </plugin>
391 <plugin>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-enforcer-plugin</artifactId>
394 <version>3.0.0-M2</version>
395 <executions>
396 <execution>
397 <id>enforce-property</id>
398 <goals>
399 <goal>enforce</goal>
400 </goals>
401 <configuration>
402 <rules>
403 <requireProperty>
404 <property>onap.nexus.url</property>
405 <message>You must set a onap.nexus.url property in your
406 ~/.m2/settings.xml. See oparent/settings.xml for an example.
407 </message>
408 </requireProperty>
409 </rules>
410 <fail>true</fail>
411 </configuration>
412 </execution>
413 <execution>
414 <id>enforce-no-snapshots</id>
415 <goals>
416 <goal>enforce</goal>
417 </goals>
418 <configuration>
419 <rules>
420 <requireReleaseDeps>
421 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
422 <onlyWhenRelease>true</onlyWhenRelease>
423 <level>WARN</level>
424 </requireReleaseDeps>
425 </rules>
426 </configuration>
427 </execution>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200428 <execution>
429 <id>enforce-maven</id>
430 <goals>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100431 <goal>enforce</goal>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200432 </goals>
433 <configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100434 <rules>
435 <requireJavaVersion>
436 <version>8</version>
437 </requireJavaVersion>
438 <requireMavenVersion>
439 <version>[3.5.0,)</version>
440 </requireMavenVersion>
441 </rules>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200442 </configuration>
443 </execution>
444 <execution>
445 <id>enforce-banned-dependencies</id>
446 <goals>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100447 <goal>enforce</goal>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200448 </goals>
449 <configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100450 <rules>
451 <bannedDependencies>
452 <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
453 <excludes>
454 <exclude>org.mockito:mockito-all</exclude>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400455 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100456 </excludes>
457 </bannedDependencies>
458 </rules>
459 <fail>true</fail>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200460 </configuration>
461 </execution>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500462 </executions>
463 </plugin>
464 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
465 <plugin>
466 <groupId>org.sonarsource.scanner.maven</groupId>
467 <artifactId>sonar-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500468 <version>${sonar.scanner.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500469 </plugin>
470 <!-- end of plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500471 <!-- Plugins from ONAP oparent -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500472 <plugin>
473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-surefire-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100475 <version>${maven-surefire-plugin.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500476 <configuration>
477 <!-- Sets the VM argument line used when unit tests are run. -->
478 <argLine>\${surefireArgLine}</argLine>
479 <!-- Excludes integration tests when unit tests are run. -->
480 <excludes>
481 <exclude>**/IT*.java</exclude>
482 </excludes>
483 </configuration>
484 </plugin>
485 <plugin>
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-failsafe-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100488 <version>${maven-failsafe-plugin.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500489 <executions>
490 <!-- Ensures that both integration-test and verify goals of the Failsafe
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400491 Maven plugin are executed. -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500492 <execution>
493 <id>integration-tests</id>
494 <goals>
495 <goal>integration-test</goal>
496 <goal>verify</goal>
497 </goals>
498 <configuration>
499 <!-- Sets the VM argument line used when integration tests are run. -->
500 <argLine>\${failsafeArgLine}</argLine>
501 </configuration>
502 </execution>
503 </executions>
504 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400505
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500506 <!-- End of plugins from ONAP oparent -->
507 <plugin>
508 <groupId>org.codehaus.mojo</groupId>
509 <artifactId>properties-maven-plugin</artifactId>
510 <version>1.0.0</version>
511 <executions>
512 <execution>
513 <goals>
514 <goal>set-system-properties</goal>
515 </goals>
516 <configuration>
517 <properties>
518 <property>
519 <name>maven.wagon.http.ssl.allowall</name>
520 <value>\${ssl.allowall}</value>
521 </property>
522 <property>
523 <name>maven.wagon.http.ssl.insecure</name>
524 <value>\${ssl.insecure}</value>
525 </property>
526 </properties>
527 </configuration>
528 </execution>
529 </executions>
530 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400531
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500532 <plugin>
533 <groupId>org.codehaus.mojo</groupId>
534 <artifactId>versions-maven-plugin</artifactId>
535 <version>2.5</version>
536 <configuration>
537 <processAllModules>true</processAllModules>
538 </configuration>
539 </plugin>
540 <plugin>
541 <artifactId>maven-scm-plugin</artifactId>
542 <version>1.8.1</version>
543 <configuration>
544 <tag>\${project.artifactId}-\${project.version}</tag>
545 </configuration>
546 </plugin>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500547 <plugin>
548 <groupId>com.github.ferstl</groupId>
549 <artifactId>depgraph-maven-plugin</artifactId>
550 <version>3.3.0</version>
551 <configuration>
552 <graphFormat>text</graphFormat>
553 <outputFileName>\${dependency-list.file}</outputFileName>
554 <outputDirectory>\${project.basedir}</outputDirectory>
555 <transitiveExcludes>*</transitiveExcludes>
556 <showVersions>true</showVersions>
Timoney, Dan (dt5972)cc0c96a2019-12-11 10:04:52 -0500557 <showGroupIds>true</showGroupIds>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500558 </configuration>
559 </plugin>
Michael Dürre66430cc2020-08-24 14:39:08 +0200560 <plugin>
561 <groupId>de.jacks-it-lab</groupId>
562 <artifactId>frontend-maven-plugin</artifactId>
563 <version>1.7.2</version>
564 </plugin>
565 <plugin>
566 <groupId>com.github.alexcojocaru</groupId>
567 <artifactId>elasticsearch-maven-plugin</artifactId>
568 <version>6.16</version>
569 <configuration>
570 <version>7.1.1</version>
571 </configuration>
572 </plugin>
Dan Timoneye816a592020-09-03 08:56:01 -0400573 <plugin>
574 <groupId>org.apache.maven.plugins</groupId>
575 <artifactId>maven-javadoc-plugin</artifactId>
576 <version>3.2.0</version>
577 <configuration>
578 <failOnError>false</failOnError>
579 </configuration>
580 </plugin>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100581 <plugin>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100582 <groupId>com.github.spotbugs</groupId>
583 <artifactId>spotbugs-maven-plugin</artifactId>
584 <version>3.1.12.2</version>
585 <executions>
586 <execution>
587 <id>analyze-compile</id>
588 <phase>compile</phase>
589 <goals>
590 <goal>check</goal>
591 </goals>
592 <configuration>
593 <plugins>
594 <plugin>
595 <groupId>jp.skypencil.findbugs.slf4j</groupId>
596 <artifactId>bug-pattern</artifactId>
597 <version>1.5.0</version>
598 </plugin>
599 </plugins>
600 <effort>Max</effort>
601 <threshold>Low</threshold>
602 <failOnError>false</failOnError>
603 <skip>true</skip>
604 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
605 <xmlOutput>true</xmlOutput>
606 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
607 </configuration>
608 </execution>
609 </executions>
610 <dependencies>
611 <dependency>
612 <groupId>com.github.spotbugs</groupId>
613 <artifactId>spotbugs</artifactId>
614 <version>3.1.12</version>
615 <scope>compile</scope>
616 </dependency>
617 <dependency>
618 <groupId>org.opendaylight.odlparent</groupId>
619 <artifactId>spotbugs</artifactId>
620 <version>7.0.5</version>
621 <scope>compile</scope>
622 </dependency>
623 <dependency>
624 <groupId>org.slf4j</groupId>
625 <artifactId>slf4j-simple</artifactId>
626 <version>1.8.0-beta2</version>
627 <scope>compile</scope>
628 </dependency>
629 </dependencies>
630 <configuration>
631 <plugins>
632 <plugin>
633 <groupId>jp.skypencil.findbugs.slf4j</groupId>
634 <artifactId>bug-pattern</artifactId>
635 <version>1.5.0</version>
636 </plugin>
637 </plugins>
638 <effort>Max</effort>
639 <threshold>Low</threshold>
640 <failOnError>false</failOnError>
641 <skip>true</skip>
642 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
643 <xmlOutput>true</xmlOutput>
644 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
645 </configuration>
646 </plugin>
647 <plugin>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400648 <groupId>org.apache.maven.plugins</groupId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100649 <artifactId>maven-checkstyle-plugin</artifactId>
650 <version>${checkstyle.plugin.version}</version>
651 <dependencies>
652 <dependency>
653 <groupId>org.onap.oparent</groupId>
654 <artifactId>checkstyle</artifactId>
655 <version>1.2.2</version>
656 </dependency>
657 </dependencies>
658 <executions>
659 <execution>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400660 <phase>process-sources</phase>
661 <goals>
662 <goal>check</goal>
663 </goals>
664 <configuration>
665 <failOnViolation>false</failOnViolation>
666 <skip>true</skip>
667 </configuration>
668 </execution>
669 <execution>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100670 <id>check-license</id>
671 <goals>
672 <goal>check</goal>
673 </goals>
674 <phase>process-sources</phase>
675 <configuration>
676 <configLocation>onap-checkstyle/check-license.xml</configLocation>
677 <includeResources>false</includeResources>
678 <includeTestSourceDirectory>true</includeTestSourceDirectory>
679 <includeTestResources>false</includeTestResources>
680 <sourceDirectories>
681 <directory>\${project.build.sourceDirectory}</directory>
682 </sourceDirectories>
683 <excludes>
684 </excludes>
685 <consoleOutput>true</consoleOutput>
686 <failOnViolation>false</failOnViolation>
687 </configuration>
688 </execution>
689 <execution>
690 <id>onap-java-style</id>
691 <goals>
692 <goal>check</goal>
693 </goals>
694 <phase>process-sources</phase>
695 <configuration>
696 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
697 with minor changes -->
698 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
699 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
700 <sourceDirectories>
701 <directory>\${project.build.sourceDirectory}/src/main/java</directory>
702 </sourceDirectories>
703 <includeResources>true</includeResources>
704 <includeTestSourceDirectory>true</includeTestSourceDirectory>
705 <includeTestResources>true</includeTestResources>
706 <excludes>
707 </excludes>
708 <consoleOutput>true</consoleOutput>
709 <failOnViolation>false</failOnViolation>
710 </configuration>
711 </execution>
712 </executions>
713 </plugin>
Michael DÜrre67cb8d52021-04-12 13:11:00 +0200714 <plugin>
715 <groupId>org.gaul</groupId>
716 <artifactId>modernizer-maven-plugin</artifactId>
717 <version>2.1.0</version>
718 <executions>
719 <execution>
720 <id>modernizer</id>
721 <phase>verify</phase>
722 <goals>
723 <goal>modernizer</goal>
724 </goals>
725 <configuration>
726 <failOnViolations>false</failOnViolations>
727 <skip>true</skip>
728 </configuration>
729 </execution>
730 </executions>
731 <configuration>
732 <failOnViolations>false</failOnViolations>
733 <skip>true</skip>
734 </configuration>
735 </plugin>
Dan Timoney22cdfa52021-09-27 12:24:00 -0400736 <!--
737 <plugin>
738 <groupId>org.apache.karaf.tooling</groupId>
739 <artifactId>karaf-maven-plugin</artifactId>
740 <configuration>
741 <useVersionRange>true</useVersionRange>
742 <includeTransitiveVersionRanges>true</includeTransitiveVersionRanges>
743 </configuration>
744 </plugin>
745 -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500746 </plugins>
747 </pluginManagement>
748 <plugins>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500749 <!-- Plugins from oparent version (parent of oparent) -->
750 <plugin>
751 <groupId>org.apache.maven.plugins</groupId>
752 <artifactId>maven-deploy-plugin</artifactId>
753 </plugin>
754 <plugin>
755 <groupId>org.apache.maven.plugins</groupId>
756 <artifactId>maven-site-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100757 <!--
758 <configuration>
759 <reportPlugins>
760 <reportPlugin>
761 <groupId>org.apache.maven.plugins</groupId>
762 <artifactId>maven-checkstyle-plugin</artifactId>
763 <version>${checkstyle.plugin.version}</version>
764 </reportPlugin>
765 </reportPlugins>
766 </configuration>
767 -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500768 </plugin>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500769 <!-- end of plugins from oparent version (parent of oparent) -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400770
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500771 <!-- Plugins from oparent -->
772 <plugin>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400773 <groupId>org.apache.maven.plugins</groupId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500774 <artifactId>maven-checkstyle-plugin</artifactId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500775 </plugin>
776 <plugin>
777 <groupId>org.codehaus.mojo</groupId>
778 <artifactId>build-helper-maven-plugin</artifactId>
779 <version>1.12</version>
780 </plugin>
781 <!-- Jacoco / Sonar -->
782 <plugin>
783 <groupId>org.jacoco</groupId>
784 <artifactId>jacoco-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500785 <version>\${jacoco.version}</version>
786 <executions>
787 <execution>
788 <id>pre-unit-test</id>
789 <goals>
790 <goal>prepare-agent</goal>
791 </goals>
792 <configuration>
793 <!-- Sets the path to the file which contains the execution data. -->
794 <destFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500795 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500796 <propertyName>surefireArgLine</propertyName>
797 </configuration>
798 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500799 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500800 <execution>
801 <id>post-unit-test</id>
802 <phase>test</phase>
803 <goals>
804 <goal>report</goal>
805 </goals>
806 <configuration>
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>
811 </configuration>
812 </execution>
813 <execution>
814 <id>pre-integration-test</id>
815 <phase>pre-integration-test</phase>
816 <goals>
817 <goal>prepare-agent</goal>
818 </goals>
819 <configuration>
820 <!-- Sets the path to the file which contains the execution data. -->
821 <destFile>\${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500822 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500823 <propertyName>failsafeArgLine</propertyName>
824 </configuration>
825 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500826 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500827 <execution>
828 <id>post-integration-test</id>
829 <phase>post-integration-test</phase>
830 <goals>
831 <goal>report</goal>
832 </goals>
833 <configuration>
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>
838 </configuration>
839 </execution>
840 <execution>
841 <id>default-prepare-agent</id>
842 <goals>
843 <goal>prepare-agent</goal>
844 </goals>
845 </execution>
846 <execution>
847 <id>default-report</id>
848 <phase>prepare-package</phase>
849 <goals>
850 <goal>report</goal>
851 </goals>
852 </execution>
853 <execution>
854 <id>default-check</id>
855 <goals>
856 <goal>check</goal>
857 </goals>
858 <configuration>
859 <rules>
860 <rule>
861 <element>PACKAGE</element>
862 <limits>
863 <limit>
864 <counter>COMPLEXITY</counter>
865 <value>COVEREDRATIO</value>
866 <minimum>0.0</minimum>
867 </limit>
868 </limits>
869 </rule>
870 </rules>
871 </configuration>
872 </execution>
873 </executions>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500874 </plugin>
875 <plugin>
876 <groupId>org.apache.maven.plugins</groupId>
877 <artifactId>maven-surefire-plugin</artifactId>
878 </plugin>
879 <plugin>
880 <groupId>org.apache.maven.plugins</groupId>
881 <artifactId>maven-failsafe-plugin</artifactId>
882 </plugin>
883 <!-- end of plugins from oparent -->
884 <plugin>
885 <groupId>org.apache.maven.plugins</groupId>
886 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500887 <executions>
888 <execution>
889 <id>attach-javadocs</id>
890 <goals>
891 <goal>jar</goal>
892 </goals>
893 <configuration>
894 <additionalparam>-Xdoclint:none</additionalparam>
895 </configuration>
896 </execution>
897 </executions>
898 </plugin>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200899 <plugin>
900 <artifactId>maven-enforcer-plugin</artifactId>
901 <version>3.0.0-M2</version>
902 <executions>
903 <execution>
904 <id>enforce-property</id>
905 <goals>
906 <goal>enforce</goal>
907 </goals>
908 <configuration>
909 <rules>
910 <requireProperty>
911 <property>onap.nexus.url</property>
912 <message>You must set a onap.nexus.url property in your
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100913 ~/.m2/settings.xml. See oparent/settings.xml for an example.
914 </message>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200915 </requireProperty>
916 </rules>
917 <fail>true</fail>
918 </configuration>
919 </execution>
920 <execution>
921 <id>enforce-no-snapshots</id>
922 <goals>
923 <goal>enforce</goal>
924 </goals>
925 <configuration>
926 <rules>
927 <requireReleaseDeps>
928 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
929 <onlyWhenRelease>true</onlyWhenRelease>
930 <level>WARN</level>
931 </requireReleaseDeps>
932 </rules>
933 </configuration>
934 </execution>
935 <execution>
936 <id>enforce-maven</id>
937 <goals>
938 <goal>enforce</goal>
939 </goals>
940 <configuration>
941 <rules>
942 <requireJavaVersion>
943 <version>1.8.0</version>
944 </requireJavaVersion>
945 <requireMavenVersion>
946 <version>[3.5.0,)</version>
947 </requireMavenVersion>
948 </rules>
949 </configuration>
950 </execution>
951 <execution>
952 <id>enforce-banned-dependencies</id>
953 <goals>
954 <goal>enforce</goal>
955 </goals>
956 <configuration>
957 <rules>
958 <bannedDependencies>
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>
960 <excludes>
961 <exclude>org.mockito:mockito-all</exclude>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -0400962 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200963 </excludes>
964 </bannedDependencies>
965 </rules>
966 <fail>true</fail>
967 </configuration>
968 </execution>
969 </executions>
970 </plugin>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -0400971 <plugin>
972 <groupId>pl.project13.maven</groupId>
973 <artifactId>git-commit-id-plugin</artifactId>
974 <version>4.0.0</version>
975 <configuration>
976 <commitIdGenerationMode>full</commitIdGenerationMode>
977 <includeOnlyProperties>
978 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
979 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
980 </includeOnlyProperties>
981 </configuration>
982 </plugin>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500983 </plugins>
984 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400985
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500986 <reporting>
987 <plugins>
988 <plugin>
989 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500990 <configuration>
991 <failOnError>false</failOnError>
992 <additionalparam>-Xdoclint:none</additionalparam>
993 </configuration>
994 </plugin>
995 </plugins>
996 </reporting>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400997
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500998 <profiles>
999 <!-- Profiles from ONAP oparent -->
1000 <profile>
1001 <id>generate-json</id>
1002 <activation>
1003 <file>
1004 <exists>\${swagger-properties}</exists>
1005 </file>
1006 <property>
1007 <name>swagger-sdk.generate-json</name>
1008 </property>
1009 </activation>
1010 <build>
1011 <plugins>
1012 <plugin>
1013 <groupId>org.codehaus.mojo</groupId>
1014 <artifactId>properties-maven-plugin</artifactId>
1015 <version>1.0.0</version>
1016 <executions>
1017 <execution>
1018 <phase>initialize</phase>
1019 <goals>
1020 <goal>read-project-properties</goal>
1021 </goals>
1022 <configuration>
1023 <files>
1024 <file>\${basedir}/src/main/resources/swagger.properties</file>
1025 </files>
1026 </configuration>
1027 </execution>
1028 </executions>
1029 </plugin>
1030 <plugin>
1031 <groupId>com.github.kongchen</groupId>
1032 <artifactId>swagger-maven-plugin</artifactId>
1033 <version>3.1.4</version>
1034 <configuration>
1035 <apiSources>
1036 <apiSource>
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>
1041 <info>
1042 <title>\${api-title}</title>
1043 <version>\${api-version}</version>
1044 <description>\${api-description}</description>
1045 <license>
1046 <name>\${api-license}</name>
1047 </license>
1048 </info>
1049 <swaggerDirectory>\${basedir}/src/main/resources</swaggerDirectory>
1050 </apiSource>
1051 </apiSources>
1052 </configuration>
1053 <executions>
1054 <execution>
1055 <phase>compile</phase>
1056 <goals>
1057 <goal>generate</goal>
1058 </goals>
1059 </execution>
1060 </executions>
1061 </plugin>
1062 <plugin>
1063 <groupId>org.apache.maven.plugins</groupId>
1064 <artifactId>maven-install-plugin</artifactId>
1065 <version>2.3.1</version>
1066 <executions>
1067 <execution>
1068 <id>install-file-id</id>
1069 <phase>install</phase>
1070 <goals>
1071 <goal>install-file</goal>
1072 </goals>
1073 <configuration>
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>
1079 </configuration>
1080 </execution>
1081 </executions>
1082 </plugin>
1083 </plugins>
1084 </build>
1085 </profile>
1086 <profile>
1087 <id>generate-sdk</id>
1088 <activation>
1089 <file>
1090 <exists>\${swagger-json}</exists>
1091 </file>
1092 <property>
1093 <name>swagger-sdk.generate-java-sdk</name>
1094 </property>
1095 </activation>
1096 <build>
1097 <plugins>
1098 <plugin>
1099 <groupId>org.apache.maven.plugins</groupId>
1100 <artifactId>maven-antrun-plugin</artifactId>
1101 <version>1.8</version>
1102 <executions>
1103 <execution>
1104 <phase>initialize</phase>
1105 <id>ant-create-script</id>
1106 <configuration>
1107 <exportAntProperties>true</exportAntProperties>
1108 <tasks>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001109 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001110 <condition property="is_windows" value="true">
1111 <os family="windows"/>
1112 </condition>
1113 <condition property="isLinux" value="true">
1114 <os family="unix"/>
1115 </condition>
1116 <if>
1117 <equals arg1="\${is_windows}" arg2="true"/>
1118 <then>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001119 <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"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001121 message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001122 <echo file="\${project.build.directory}\${file.separator}generated-source-script.bat" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001123 message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001124 </then>
1125 <else>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001126 <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"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001128 message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001129 <echo file="\${project.build.directory}\${file.separator}generated-source-script.sh" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001130 message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001131 <chmod file="\${project.build.directory}\${file.separator}generated-source-script.sh" perm="755"/>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001132 </else>
1133 </if>
1134 </tasks>
1135 </configuration>
1136 <goals>
1137 <goal>run</goal>
1138 </goals>
1139 </execution>
1140 </executions>
1141 <dependencies>
1142 <dependency>
1143 <groupId>ant-contrib</groupId>
1144 <artifactId>ant-contrib</artifactId>
1145 <version>1.0b3</version>
1146 <exclusions>
1147 <exclusion>
1148 <groupId>ant</groupId>
1149 <artifactId>ant</artifactId>
1150 </exclusion>
1151 </exclusions>
1152 </dependency>
1153 </dependencies>
1154 </plugin>
1155 <plugin>
1156 <groupId>io.swagger</groupId>
1157 <artifactId>swagger-codegen-maven-plugin</artifactId>
1158 <version>2.2.1</version>
1159 <executions>
1160 <execution>
1161 <goals>
1162 <goal>generate</goal>
1163 </goals>
1164 <configuration>
1165 <inputSpec>\${basedir}/src/main/resources/swagger.json</inputSpec>
1166 <output>\${project.build.directory}/generated-sources</output>
1167 <language>java</language>
1168 <configOptions>
1169 <dateLibrary>joda</dateLibrary>
1170 </configOptions>
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>
1178 </configuration>
1179 </execution>
1180 </executions>
1181 </plugin>
1182 <plugin>
1183 <groupId>org.codehaus.mojo</groupId>
1184 <artifactId>exec-maven-plugin</artifactId>
1185 <version>1.5.0</version>
1186 <executions>
1187 <execution>
1188 <id>swagger-generate-sources</id>
1189 <phase>generate-sources</phase>
1190 <goals>
1191 <goal>exec</goal>
1192 </goals>
1193 <configuration>
1194 <executable>\${project.build.directory}\${file.separator}\${swagger.sdk.script.file}</executable>
1195 </configuration>
1196 </execution>
1197 </executions>
1198 </plugin>
1199 <plugin>
1200 <groupId>org.apache.maven.plugins</groupId>
1201 <artifactId>maven-clean-plugin</artifactId>
1202 <version>3.0.0</version>
1203 <executions>
1204 <execution>
1205 <id>clean-generated-files</id>
1206 <phase>generate-sources</phase>
1207 <goals>
1208 <goal>clean</goal>
1209 </goals>
1210 <configuration>
1211 <filesets>
1212 <fileset>
1213 <directory>\${project.build.directory}/generated-sources</directory>
1214 </fileset>
1215 </filesets>
1216 </configuration>
1217 </execution>
1218 </executions>
1219 </plugin>
1220 </plugins>
1221 </build>
1222 <dependencies>
1223 <dependency>
1224 <groupId>org.onap.msb.swagger-sdk</groupId>
1225 <artifactId>swagger-sdk</artifactId>
1226 <version>1.0.0</version>
1227 </dependency>
1228 </dependencies>
1229 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001230 <profile>
1231 <id>sonar-jacoco-aggregate</id>
1232 <activation>
1233 <property>
1234 <name>onap.jacoco.aggregateFile</name>
1235 </property>
1236 </activation>
1237 <build>
1238 <plugins>
1239 <plugin>
1240 <groupId>org.jacoco</groupId>
1241 <artifactId>jacoco-maven-plugin</artifactId>
1242 <executions>
1243 <execution>
1244 <id>merge</id>
1245 <goals>
1246 <goal>merge</goal>
1247 </goals>
1248 <phase>generate-resources</phase>
1249 <configuration>
1250 <destFile>${onap.jacoco.aggregateFile}</destFile>
1251 <fileSets>
1252 <fileSet>
1253 <directory>\${project.basedir}</directory>
1254 <includes>
1255 <include>**/target/code-coverage/*.exec</include>
1256 </includes>
1257 </fileSet>
1258 </fileSets>
1259 </configuration>
1260 </execution>
1261 </executions>
1262 </plugin>
1263 </plugins>
1264 </build>
1265 </profile>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001266 <!-- End of profiles from ONAP oparent -->
Timoney, Dan (dt5972)0586da42019-07-17 10:43:14 -04001267
Michael DÜrre7bb133e2022-01-18 10:06:31 +01001268
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001269 </profiles>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -05001270</project>