blob: 26f88f577adf1dccbe664b5891d57e2ba3890489 [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ürred3168e32022-06-13 05:23:15 +0200114 <odl.controller.mdsal.version>9.0.4</odl.controller.mdsal.version>
115 <odl.mdsal.version>10.0.2</odl.mdsal.version>
116 <odl.mdsal.model.version>10.0.2</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ürred3168e32022-06-13 05:23:15 +0200118 <odl.netconf.restconf.version>9.0.4</odl.netconf.restconf.version>
119 <odl.netconf.netconf.version>9.0.4</odl.netconf.netconf.version>
120 <odl.netconf.sal.rest.docgen.version>9.0.4</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ürred3168e32022-06-13 05:23:15 +0200135 <gson.version>2.9.0</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ürred3168e32022-06-13 05:23:15 +0200140 <jackson.version>2.13.2</jackson.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500141 <!-- Used by snmp4sdn, yangtools -->
Michael Dürred3168e32022-06-13 05:23:15 +0200142 <javassist.version>3.28.0-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Ürrec6bdd9a2020-12-01 13:34:56 +0100146 <jersey.version>2.27</jersey.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500147 <!-- Used by sfc -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100148 <jersey.client.version>2.27</jersey.client.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500149
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500150 <!-- 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>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500154
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500155 <!-- Used everywhere -->
Dan Timoneyd9c8dcb2021-08-23 11:36:27 -0400156 <junit.version>4.13.2</junit.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500157 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
Dan Timoney59d34e42022-07-25 09:36:01 -0400158 <logback.version>1.2.11</logback.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500159 <!-- Used by nic, sfc, sxp, tsdr -->
Dan Timoney29e355f2022-07-21 08:21:16 -0400160 <mockito.version>3.12.4</mockito.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500161 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
Michael Dürred3168e32022-06-13 05:23:15 +0200162 <netty.version>4.1.76.Final</netty.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500163 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100164 <slf4j.version>1.7.32</slf4j.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500165 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
Singal, Kapil (ks220y)b5adc452020-02-20 13:53:41 -0500166 <spring.version>4.3.25.RELEASE</spring.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500167
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500168 <!-- Extra support libraries used by SDN-C -->
169 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
Dan Timoneybcd652c2022-11-14 16:37:36 -0500170 <jaxb-api.version>2.3.3</jaxb-api.version>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400171 <antlr.version>4.8-1</antlr.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500172
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500173 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500174
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500175 <!-- Managed dependency versions -->
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500176 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
Dan Timoneyd9c8dcb2021-08-23 11:36:27 -0400177 <apache.httpcomponents.client.version>4.5.13</apache.httpcomponents.client.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500178 <derby.version>10.14.2.0</derby.version>
179 <eelf.version>1.0.0</eelf.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500180 <grpc.version>1.21.1</grpc.version>
Dan Timoney156d2a92022-01-03 11:49:40 -0500181 <log4j.version>2.17.1</log4j.version>
182 <log4j2.version>2.17.1</log4j2.version>
Michael Dürred3168e32022-06-13 05:23:15 +0200183 <jetty.version>9.4.46.v20220331</jetty.version>
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100184 <mariadb.connector.version>2.7.5</mariadb.connector.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500185 <mariadb4j.version>2.4.0</mariadb4j.version>
186 <testng.version>6.14.3</testng.version>
Dan Timoneybc67c402021-08-05 10:46:18 -0400187 <tomcat-jdbc.version>9.0.52</tomcat-jdbc.version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500188 <skip.karaf.featureTest>true</skip.karaf.featureTest>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500189 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500190 </properties>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -0500191
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500192 <dependencyManagement>
193 <dependencies>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500194 <!-- Note: If value in BOM conflicts with value inherited from
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400195 parent pom, inherited value takes precedence. This seems more like
196 a bug than a feature, but this is how maven 3.6 works -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500197 <dependency>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100198 <groupId>${project.groupId}</groupId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500199 <artifactId>dependencies-odl-bom</artifactId>
Singal, Kapil (ks220y)17d2d572019-12-05 14:12:45 -0500200 <version>${project.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500201 <type>pom</type>
202 <scope>import</scope>
203 </dependency>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500204 <dependency>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100205 <groupId>${project.groupId}</groupId>
206 <artifactId>dependencies-bom</artifactId>
207 <version>${project.version}</version>
208 <type>pom</type>
209 <scope>import</scope>
210 </dependency>
211 <dependency>
212 <groupId>org.springframework.boot</groupId>
213 <artifactId>spring-boot-dependencies</artifactId>
214 <version>2.3.8.RELEASE</version>
215 <scope>import</scope>
216 <type>pom</type>
217 </dependency>
218 <dependency>
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100219 <groupId>org.mariadb.jdbc</groupId>
220 <artifactId>mariadb-java-client</artifactId>
221 <version>${mariadb.connector.version}</version>
222 </dependency>
223 <dependency>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500224 <groupId>org.onap.logging-analytics</groupId>
225 <artifactId>logging-slf4j</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000226 <version>\${logging-analytics.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500227 </dependency>
228 <dependency>
229 <groupId>org.onap.logging-analytics</groupId>
230 <artifactId>logging-filter-base</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000231 <version>\${logging-analytics.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500232 </dependency>
Singal, Kapil (ks220y)ffff34a2020-02-27 11:02:51 -0500233 <dependency>
234 <groupId>junit</groupId>
235 <artifactId>junit</artifactId>
236 <version>\${junit.version}</version>
237 <scope>test</scope>
238 </dependency>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500239 </dependencies>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500240 </dependencyManagement>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400241
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500242 <repositories>
243 <repository>
244 <id>onap-public</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500245 <url>\${onap.nexus.public-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500246 <releases>
247 <enabled>true</enabled>
248 <updatePolicy>never</updatePolicy>
249 </releases>
250 <snapshots>
251 <enabled>true</enabled>
252 <updatePolicy>always</updatePolicy>
253 </snapshots>
254 </repository>
255 <repository>
256 <id>onap-staging</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500257 <url>\${onap.nexus.staging-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500258 <releases>
259 <enabled>true</enabled>
260 <updatePolicy>never</updatePolicy>
261 </releases>
262 <snapshots>
263 <enabled>true</enabled>
264 <updatePolicy>always</updatePolicy>
265 </snapshots>
266 </repository>
267 <repository>
268 <id>ecomp-release</id>
269 <name>onap-repository-releases</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500270 <url>\${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500271 <releases>
272 <enabled>true</enabled>
273 <updatePolicy>never</updatePolicy>
274 </releases>
275 <snapshots>
276 <enabled>false</enabled>
277 </snapshots>
278 </repository>
279 <repository>
280 <id>ecomp-snapshot</id>
281 <name>onap-repository-snapshots</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500282 <url>\${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500283 <releases>
284 <enabled>false</enabled>
285 </releases>
286 <snapshots>
287 <enabled>true</enabled>
288 </snapshots>
289 </repository>
290 <repository>
291 <id>opendaylight-mirror</id>
292 <name>opendaylight-mirror</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500293 <url>\${opendaylight.nexus.public-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500294 <releases>
295 <enabled>true</enabled>
296 <updatePolicy>never</updatePolicy>
297 </releases>
298 <snapshots>
299 <enabled>false</enabled>
300 </snapshots>
301 </repository>
302 <repository>
303 <id>opendaylight-snapshot</id>
304 <name>opendaylight-snapshot</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500305 <url>\${opendaylight.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500306 <releases>
307 <enabled>false</enabled>
308 </releases>
309 <snapshots>
310 <enabled>true</enabled>
311 </snapshots>
312 </repository>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500313 </repositories>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400314
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500315 <pluginRepositories>
316 <pluginRepository>
317 <id>onap-public</id>
318 <url>\${onap.nexus.public-url}</url>
319 <releases>
320 <enabled>true</enabled>
321 </releases>
322 <snapshots>
323 <enabled>true</enabled>
324 </snapshots>
325 </pluginRepository>
326 <pluginRepository>
327 <id>onap-staging</id>
328 <url>\${onap.nexus.staging-url}</url>
329 <releases>
330 <enabled>true</enabled>
331 </releases>
332 <snapshots>
333 <enabled>true</enabled>
334 </snapshots>
335 </pluginRepository>
336 <pluginRepository>
337 <id>onap-snapshot</id>
338 <url>\${onap.nexus.snapshot-url}</url>
339 <releases>
340 <enabled>false</enabled>
341 </releases>
342 <snapshots>
343 <enabled>true</enabled>
344 </snapshots>
345 </pluginRepository>
346 <pluginRepository>
347 <id>opendaylight-mirror</id>
348 <name>opendaylight-mirror</name>
349 <url>\${opendaylight.nexus.public-url}</url>
350 <releases>
351 <enabled>true</enabled>
352 <updatePolicy>never</updatePolicy>
353 </releases>
354 <snapshots>
355 <enabled>false</enabled>
356 </snapshots>
357 </pluginRepository>
358 <pluginRepository>
359 <id>opendaylight-snapshot</id>
360 <name>opendaylight-snapshot</name>
361 <url>\${opendaylight.nexus.snapshot-url}</url>
362 <releases>
363 <enabled>false</enabled>
364 </releases>
365 <snapshots>
366 <enabled>true</enabled>
367 </snapshots>
368 </pluginRepository>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500369 </pluginRepositories>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400370
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500371 <build>
372 <pluginManagement>
373 <plugins>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500374 <!-- Plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500375 <plugin>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-deploy-plugin</artifactId>
378 <!-- This version supports the "deployAtEnd" parameter -->
379 <version>2.8</version>
380 <configuration>
381 <skip/>
Singal, Kapil (ks220y)6fa7fc92021-02-01 16:11:38 -0500382 <deployAtEnd>true</deployAtEnd>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500383 </configuration>
384 </plugin>
385 <plugin>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-site-plugin</artifactId>
388 <version>3.6</version>
389 <dependencies>
390 <dependency>
391 <groupId>org.apache.maven.wagon</groupId>
392 <artifactId>wagon-webdav-jackrabbit</artifactId>
393 <version>2.10</version>
394 </dependency>
395 </dependencies>
396 </plugin>
397 <plugin>
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-enforcer-plugin</artifactId>
400 <version>3.0.0-M2</version>
401 <executions>
402 <execution>
403 <id>enforce-property</id>
404 <goals>
405 <goal>enforce</goal>
406 </goals>
407 <configuration>
408 <rules>
409 <requireProperty>
410 <property>onap.nexus.url</property>
411 <message>You must set a onap.nexus.url property in your
412 ~/.m2/settings.xml. See oparent/settings.xml for an example.
413 </message>
414 </requireProperty>
415 </rules>
416 <fail>true</fail>
417 </configuration>
418 </execution>
419 <execution>
420 <id>enforce-no-snapshots</id>
421 <goals>
422 <goal>enforce</goal>
423 </goals>
424 <configuration>
425 <rules>
426 <requireReleaseDeps>
427 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
428 <onlyWhenRelease>true</onlyWhenRelease>
429 <level>WARN</level>
430 </requireReleaseDeps>
431 </rules>
432 </configuration>
433 </execution>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200434 <execution>
435 <id>enforce-maven</id>
436 <goals>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100437 <goal>enforce</goal>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200438 </goals>
439 <configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100440 <rules>
441 <requireJavaVersion>
442 <version>8</version>
443 </requireJavaVersion>
444 <requireMavenVersion>
445 <version>[3.5.0,)</version>
446 </requireMavenVersion>
447 </rules>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200448 </configuration>
449 </execution>
450 <execution>
451 <id>enforce-banned-dependencies</id>
452 <goals>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100453 <goal>enforce</goal>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200454 </goals>
455 <configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100456 <rules>
457 <bannedDependencies>
458 <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>
459 <excludes>
460 <exclude>org.mockito:mockito-all</exclude>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400461 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100462 </excludes>
463 </bannedDependencies>
464 </rules>
465 <fail>true</fail>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200466 </configuration>
467 </execution>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500468 </executions>
469 </plugin>
470 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
471 <plugin>
472 <groupId>org.sonarsource.scanner.maven</groupId>
473 <artifactId>sonar-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500474 <version>${sonar.scanner.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500475 </plugin>
476 <!-- end of plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500477 <!-- Plugins from ONAP oparent -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500478 <plugin>
479 <groupId>org.apache.maven.plugins</groupId>
480 <artifactId>maven-surefire-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100481 <version>${maven-surefire-plugin.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500482 <configuration>
483 <!-- Sets the VM argument line used when unit tests are run. -->
484 <argLine>\${surefireArgLine}</argLine>
485 <!-- Excludes integration tests when unit tests are run. -->
486 <excludes>
487 <exclude>**/IT*.java</exclude>
488 </excludes>
489 </configuration>
490 </plugin>
491 <plugin>
492 <groupId>org.apache.maven.plugins</groupId>
493 <artifactId>maven-failsafe-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100494 <version>${maven-failsafe-plugin.version}</version>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500495 <executions>
496 <!-- Ensures that both integration-test and verify goals of the Failsafe
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400497 Maven plugin are executed. -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500498 <execution>
499 <id>integration-tests</id>
500 <goals>
501 <goal>integration-test</goal>
502 <goal>verify</goal>
503 </goals>
504 <configuration>
505 <!-- Sets the VM argument line used when integration tests are run. -->
506 <argLine>\${failsafeArgLine}</argLine>
507 </configuration>
508 </execution>
509 </executions>
510 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400511
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500512 <!-- End of plugins from ONAP oparent -->
513 <plugin>
514 <groupId>org.codehaus.mojo</groupId>
515 <artifactId>properties-maven-plugin</artifactId>
516 <version>1.0.0</version>
517 <executions>
518 <execution>
519 <goals>
520 <goal>set-system-properties</goal>
521 </goals>
522 <configuration>
523 <properties>
524 <property>
525 <name>maven.wagon.http.ssl.allowall</name>
526 <value>\${ssl.allowall}</value>
527 </property>
528 <property>
529 <name>maven.wagon.http.ssl.insecure</name>
530 <value>\${ssl.insecure}</value>
531 </property>
532 </properties>
533 </configuration>
534 </execution>
535 </executions>
536 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400537
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500538 <plugin>
539 <groupId>org.codehaus.mojo</groupId>
540 <artifactId>versions-maven-plugin</artifactId>
541 <version>2.5</version>
542 <configuration>
543 <processAllModules>true</processAllModules>
544 </configuration>
545 </plugin>
546 <plugin>
547 <artifactId>maven-scm-plugin</artifactId>
548 <version>1.8.1</version>
549 <configuration>
550 <tag>\${project.artifactId}-\${project.version}</tag>
551 </configuration>
552 </plugin>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500553 <plugin>
554 <groupId>com.github.ferstl</groupId>
555 <artifactId>depgraph-maven-plugin</artifactId>
556 <version>3.3.0</version>
557 <configuration>
558 <graphFormat>text</graphFormat>
559 <outputFileName>\${dependency-list.file}</outputFileName>
560 <outputDirectory>\${project.basedir}</outputDirectory>
561 <transitiveExcludes>*</transitiveExcludes>
562 <showVersions>true</showVersions>
Timoney, Dan (dt5972)cc0c96a2019-12-11 10:04:52 -0500563 <showGroupIds>true</showGroupIds>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500564 </configuration>
565 </plugin>
Michael Dürre66430cc2020-08-24 14:39:08 +0200566 <plugin>
567 <groupId>de.jacks-it-lab</groupId>
568 <artifactId>frontend-maven-plugin</artifactId>
569 <version>1.7.2</version>
570 </plugin>
571 <plugin>
572 <groupId>com.github.alexcojocaru</groupId>
573 <artifactId>elasticsearch-maven-plugin</artifactId>
574 <version>6.16</version>
575 <configuration>
576 <version>7.1.1</version>
577 </configuration>
578 </plugin>
Dan Timoneye816a592020-09-03 08:56:01 -0400579 <plugin>
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-javadoc-plugin</artifactId>
582 <version>3.2.0</version>
583 <configuration>
584 <failOnError>false</failOnError>
585 </configuration>
586 </plugin>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100587 <plugin>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100588 <groupId>com.github.spotbugs</groupId>
589 <artifactId>spotbugs-maven-plugin</artifactId>
590 <version>3.1.12.2</version>
591 <executions>
592 <execution>
593 <id>analyze-compile</id>
594 <phase>compile</phase>
595 <goals>
596 <goal>check</goal>
597 </goals>
598 <configuration>
599 <plugins>
600 <plugin>
601 <groupId>jp.skypencil.findbugs.slf4j</groupId>
602 <artifactId>bug-pattern</artifactId>
603 <version>1.5.0</version>
604 </plugin>
605 </plugins>
606 <effort>Max</effort>
607 <threshold>Low</threshold>
608 <failOnError>false</failOnError>
609 <skip>true</skip>
610 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
611 <xmlOutput>true</xmlOutput>
612 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
613 </configuration>
614 </execution>
615 </executions>
616 <dependencies>
617 <dependency>
618 <groupId>com.github.spotbugs</groupId>
619 <artifactId>spotbugs</artifactId>
620 <version>3.1.12</version>
621 <scope>compile</scope>
622 </dependency>
623 <dependency>
624 <groupId>org.opendaylight.odlparent</groupId>
625 <artifactId>spotbugs</artifactId>
626 <version>7.0.5</version>
627 <scope>compile</scope>
628 </dependency>
629 <dependency>
630 <groupId>org.slf4j</groupId>
631 <artifactId>slf4j-simple</artifactId>
632 <version>1.8.0-beta2</version>
633 <scope>compile</scope>
634 </dependency>
635 </dependencies>
636 <configuration>
637 <plugins>
638 <plugin>
639 <groupId>jp.skypencil.findbugs.slf4j</groupId>
640 <artifactId>bug-pattern</artifactId>
641 <version>1.5.0</version>
642 </plugin>
643 </plugins>
644 <effort>Max</effort>
645 <threshold>Low</threshold>
646 <failOnError>false</failOnError>
647 <skip>true</skip>
648 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
649 <xmlOutput>true</xmlOutput>
650 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
651 </configuration>
652 </plugin>
653 <plugin>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400654 <groupId>org.apache.maven.plugins</groupId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100655 <artifactId>maven-checkstyle-plugin</artifactId>
656 <version>${checkstyle.plugin.version}</version>
657 <dependencies>
658 <dependency>
659 <groupId>org.onap.oparent</groupId>
660 <artifactId>checkstyle</artifactId>
661 <version>1.2.2</version>
662 </dependency>
663 </dependencies>
664 <executions>
665 <execution>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400666 <phase>process-sources</phase>
667 <goals>
668 <goal>check</goal>
669 </goals>
670 <configuration>
671 <failOnViolation>false</failOnViolation>
672 <skip>true</skip>
673 </configuration>
674 </execution>
675 <execution>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100676 <id>check-license</id>
677 <goals>
678 <goal>check</goal>
679 </goals>
680 <phase>process-sources</phase>
681 <configuration>
682 <configLocation>onap-checkstyle/check-license.xml</configLocation>
683 <includeResources>false</includeResources>
684 <includeTestSourceDirectory>true</includeTestSourceDirectory>
685 <includeTestResources>false</includeTestResources>
686 <sourceDirectories>
687 <directory>\${project.build.sourceDirectory}</directory>
688 </sourceDirectories>
689 <excludes>
690 </excludes>
691 <consoleOutput>true</consoleOutput>
692 <failOnViolation>false</failOnViolation>
693 </configuration>
694 </execution>
695 <execution>
696 <id>onap-java-style</id>
697 <goals>
698 <goal>check</goal>
699 </goals>
700 <phase>process-sources</phase>
701 <configuration>
702 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
703 with minor changes -->
704 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
705 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
706 <sourceDirectories>
707 <directory>\${project.build.sourceDirectory}/src/main/java</directory>
708 </sourceDirectories>
709 <includeResources>true</includeResources>
710 <includeTestSourceDirectory>true</includeTestSourceDirectory>
711 <includeTestResources>true</includeTestResources>
712 <excludes>
713 </excludes>
714 <consoleOutput>true</consoleOutput>
715 <failOnViolation>false</failOnViolation>
716 </configuration>
717 </execution>
718 </executions>
719 </plugin>
Michael DÜrre67cb8d52021-04-12 13:11:00 +0200720 <plugin>
721 <groupId>org.gaul</groupId>
722 <artifactId>modernizer-maven-plugin</artifactId>
723 <version>2.1.0</version>
724 <executions>
725 <execution>
726 <id>modernizer</id>
727 <phase>verify</phase>
728 <goals>
729 <goal>modernizer</goal>
730 </goals>
731 <configuration>
732 <failOnViolations>false</failOnViolations>
733 <skip>true</skip>
734 </configuration>
735 </execution>
736 </executions>
737 <configuration>
738 <failOnViolations>false</failOnViolations>
739 <skip>true</skip>
740 </configuration>
741 </plugin>
Dan Timoney22cdfa52021-09-27 12:24:00 -0400742 <!--
743 <plugin>
744 <groupId>org.apache.karaf.tooling</groupId>
745 <artifactId>karaf-maven-plugin</artifactId>
746 <configuration>
747 <useVersionRange>true</useVersionRange>
748 <includeTransitiveVersionRanges>true</includeTransitiveVersionRanges>
749 </configuration>
750 </plugin>
751 -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500752 </plugins>
753 </pluginManagement>
754 <plugins>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500755 <!-- Plugins from oparent version (parent of oparent) -->
756 <plugin>
757 <groupId>org.apache.maven.plugins</groupId>
758 <artifactId>maven-deploy-plugin</artifactId>
759 </plugin>
760 <plugin>
761 <groupId>org.apache.maven.plugins</groupId>
762 <artifactId>maven-site-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100763 <!--
764 <configuration>
765 <reportPlugins>
766 <reportPlugin>
767 <groupId>org.apache.maven.plugins</groupId>
768 <artifactId>maven-checkstyle-plugin</artifactId>
769 <version>${checkstyle.plugin.version}</version>
770 </reportPlugin>
771 </reportPlugins>
772 </configuration>
773 -->
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500774 </plugin>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500775 <!-- end of plugins from oparent version (parent of oparent) -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400776
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500777 <!-- Plugins from oparent -->
778 <plugin>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400779 <groupId>org.apache.maven.plugins</groupId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500780 <artifactId>maven-checkstyle-plugin</artifactId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500781 </plugin>
782 <plugin>
783 <groupId>org.codehaus.mojo</groupId>
784 <artifactId>build-helper-maven-plugin</artifactId>
785 <version>1.12</version>
786 </plugin>
787 <!-- Jacoco / Sonar -->
788 <plugin>
789 <groupId>org.jacoco</groupId>
790 <artifactId>jacoco-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500791 <version>\${jacoco.version}</version>
792 <executions>
793 <execution>
794 <id>pre-unit-test</id>
795 <goals>
796 <goal>prepare-agent</goal>
797 </goals>
798 <configuration>
799 <!-- Sets the path to the file which contains the execution data. -->
800 <destFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500801 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500802 <propertyName>surefireArgLine</propertyName>
803 </configuration>
804 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500805 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500806 <execution>
807 <id>post-unit-test</id>
808 <phase>test</phase>
809 <goals>
810 <goal>report</goal>
811 </goals>
812 <configuration>
813 <!-- Sets the path to the file which contains the execution data. -->
814 <dataFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
815 <!-- Sets the output directory for the code coverage report. -->
816 <outputDirectory>\${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
817 </configuration>
818 </execution>
819 <execution>
820 <id>pre-integration-test</id>
821 <phase>pre-integration-test</phase>
822 <goals>
823 <goal>prepare-agent</goal>
824 </goals>
825 <configuration>
826 <!-- Sets the path to the file which contains the execution data. -->
827 <destFile>\${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500828 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500829 <propertyName>failsafeArgLine</propertyName>
830 </configuration>
831 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500832 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500833 <execution>
834 <id>post-integration-test</id>
835 <phase>post-integration-test</phase>
836 <goals>
837 <goal>report</goal>
838 </goals>
839 <configuration>
840 <!-- Sets the path to the file which contains the execution data. -->
841 <dataFile>\${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
842 <!-- Sets the output directory for the code coverage report. -->
843 <outputDirectory>\${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
844 </configuration>
845 </execution>
846 <execution>
847 <id>default-prepare-agent</id>
848 <goals>
849 <goal>prepare-agent</goal>
850 </goals>
851 </execution>
852 <execution>
853 <id>default-report</id>
854 <phase>prepare-package</phase>
855 <goals>
856 <goal>report</goal>
857 </goals>
858 </execution>
859 <execution>
860 <id>default-check</id>
861 <goals>
862 <goal>check</goal>
863 </goals>
864 <configuration>
865 <rules>
866 <rule>
867 <element>PACKAGE</element>
868 <limits>
869 <limit>
870 <counter>COMPLEXITY</counter>
871 <value>COVEREDRATIO</value>
872 <minimum>0.0</minimum>
873 </limit>
874 </limits>
875 </rule>
876 </rules>
877 </configuration>
878 </execution>
879 </executions>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500880 </plugin>
881 <plugin>
882 <groupId>org.apache.maven.plugins</groupId>
883 <artifactId>maven-surefire-plugin</artifactId>
884 </plugin>
885 <plugin>
886 <groupId>org.apache.maven.plugins</groupId>
887 <artifactId>maven-failsafe-plugin</artifactId>
888 </plugin>
889 <!-- end of plugins from oparent -->
890 <plugin>
891 <groupId>org.apache.maven.plugins</groupId>
892 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500893 <executions>
894 <execution>
895 <id>attach-javadocs</id>
896 <goals>
897 <goal>jar</goal>
898 </goals>
899 <configuration>
900 <additionalparam>-Xdoclint:none</additionalparam>
901 </configuration>
902 </execution>
903 </executions>
904 </plugin>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200905 <plugin>
906 <artifactId>maven-enforcer-plugin</artifactId>
907 <version>3.0.0-M2</version>
908 <executions>
909 <execution>
910 <id>enforce-property</id>
911 <goals>
912 <goal>enforce</goal>
913 </goals>
914 <configuration>
915 <rules>
916 <requireProperty>
917 <property>onap.nexus.url</property>
918 <message>You must set a onap.nexus.url property in your
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100919 ~/.m2/settings.xml. See oparent/settings.xml for an example.
920 </message>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200921 </requireProperty>
922 </rules>
923 <fail>true</fail>
924 </configuration>
925 </execution>
926 <execution>
927 <id>enforce-no-snapshots</id>
928 <goals>
929 <goal>enforce</goal>
930 </goals>
931 <configuration>
932 <rules>
933 <requireReleaseDeps>
934 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
935 <onlyWhenRelease>true</onlyWhenRelease>
936 <level>WARN</level>
937 </requireReleaseDeps>
938 </rules>
939 </configuration>
940 </execution>
941 <execution>
942 <id>enforce-maven</id>
943 <goals>
944 <goal>enforce</goal>
945 </goals>
946 <configuration>
947 <rules>
948 <requireJavaVersion>
949 <version>1.8.0</version>
950 </requireJavaVersion>
951 <requireMavenVersion>
952 <version>[3.5.0,)</version>
953 </requireMavenVersion>
954 </rules>
955 </configuration>
956 </execution>
957 <execution>
958 <id>enforce-banned-dependencies</id>
959 <goals>
960 <goal>enforce</goal>
961 </goals>
962 <configuration>
963 <rules>
964 <bannedDependencies>
965 <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>
966 <excludes>
967 <exclude>org.mockito:mockito-all</exclude>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -0400968 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200969 </excludes>
970 </bannedDependencies>
971 </rules>
972 <fail>true</fail>
973 </configuration>
974 </execution>
975 </executions>
976 </plugin>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -0400977 <plugin>
978 <groupId>pl.project13.maven</groupId>
979 <artifactId>git-commit-id-plugin</artifactId>
980 <version>4.0.0</version>
981 <configuration>
982 <commitIdGenerationMode>full</commitIdGenerationMode>
983 <includeOnlyProperties>
984 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
985 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
986 </includeOnlyProperties>
987 </configuration>
988 </plugin>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500989 </plugins>
990 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400991
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500992 <reporting>
993 <plugins>
994 <plugin>
995 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -0500996 <configuration>
997 <failOnError>false</failOnError>
998 <additionalparam>-Xdoclint:none</additionalparam>
999 </configuration>
1000 </plugin>
1001 </plugins>
1002 </reporting>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001003
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001004 <profiles>
1005 <!-- Profiles from ONAP oparent -->
1006 <profile>
1007 <id>generate-json</id>
1008 <activation>
1009 <file>
1010 <exists>\${swagger-properties}</exists>
1011 </file>
1012 <property>
1013 <name>swagger-sdk.generate-json</name>
1014 </property>
1015 </activation>
1016 <build>
1017 <plugins>
1018 <plugin>
1019 <groupId>org.codehaus.mojo</groupId>
1020 <artifactId>properties-maven-plugin</artifactId>
1021 <version>1.0.0</version>
1022 <executions>
1023 <execution>
1024 <phase>initialize</phase>
1025 <goals>
1026 <goal>read-project-properties</goal>
1027 </goals>
1028 <configuration>
1029 <files>
1030 <file>\${basedir}/src/main/resources/swagger.properties</file>
1031 </files>
1032 </configuration>
1033 </execution>
1034 </executions>
1035 </plugin>
1036 <plugin>
1037 <groupId>com.github.kongchen</groupId>
1038 <artifactId>swagger-maven-plugin</artifactId>
1039 <version>3.1.4</version>
1040 <configuration>
1041 <apiSources>
1042 <apiSource>
1043 <locations>\${api-rest-package}</locations>
1044 <schemes>http,https</schemes>
1045 <host>\${api-host-ip}:\${api-host-port}</host>
1046 <basePath>\${api-base-path}</basePath>
1047 <info>
1048 <title>\${api-title}</title>
1049 <version>\${api-version}</version>
1050 <description>\${api-description}</description>
1051 <license>
1052 <name>\${api-license}</name>
1053 </license>
1054 </info>
1055 <swaggerDirectory>\${basedir}/src/main/resources</swaggerDirectory>
1056 </apiSource>
1057 </apiSources>
1058 </configuration>
1059 <executions>
1060 <execution>
1061 <phase>compile</phase>
1062 <goals>
1063 <goal>generate</goal>
1064 </goals>
1065 </execution>
1066 </executions>
1067 </plugin>
1068 <plugin>
1069 <groupId>org.apache.maven.plugins</groupId>
1070 <artifactId>maven-install-plugin</artifactId>
1071 <version>2.3.1</version>
1072 <executions>
1073 <execution>
1074 <id>install-file-id</id>
1075 <phase>install</phase>
1076 <goals>
1077 <goal>install-file</goal>
1078 </goals>
1079 <configuration>
1080 <file>\${basedir}/src/main/resources/swagger.json</file>
1081 <groupId>\${project.groupId}</groupId>
1082 <artifactId>\${project.artifactId}-swagger-schema</artifactId>
1083 <version>\${project.version}</version>
1084 <packaging>json</packaging>
1085 </configuration>
1086 </execution>
1087 </executions>
1088 </plugin>
1089 </plugins>
1090 </build>
1091 </profile>
1092 <profile>
1093 <id>generate-sdk</id>
1094 <activation>
1095 <file>
1096 <exists>\${swagger-json}</exists>
1097 </file>
1098 <property>
1099 <name>swagger-sdk.generate-java-sdk</name>
1100 </property>
1101 </activation>
1102 <build>
1103 <plugins>
1104 <plugin>
1105 <groupId>org.apache.maven.plugins</groupId>
1106 <artifactId>maven-antrun-plugin</artifactId>
1107 <version>1.8</version>
1108 <executions>
1109 <execution>
1110 <phase>initialize</phase>
1111 <id>ant-create-script</id>
1112 <configuration>
1113 <exportAntProperties>true</exportAntProperties>
1114 <tasks>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001115 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001116 <condition property="is_windows" value="true">
1117 <os family="windows"/>
1118 </condition>
1119 <condition property="isLinux" value="true">
1120 <os family="unix"/>
1121 </condition>
1122 <if>
1123 <equals arg1="\${is_windows}" arg2="true"/>
1124 <then>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001125 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1126 <echo file="\${project.build.directory}\${file.separator}generated-source-script.bat" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001127 message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001128 <echo file="\${project.build.directory}\${file.separator}generated-source-script.bat" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001129 message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001130 </then>
1131 <else>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001132 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1133 <echo file="\${project.build.directory}\${file.separator}generated-source-script.sh" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001134 message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001135 <echo file="\${project.build.directory}\${file.separator}generated-source-script.sh" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001136 message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001137 <chmod file="\${project.build.directory}\${file.separator}generated-source-script.sh" perm="755"/>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001138 </else>
1139 </if>
1140 </tasks>
1141 </configuration>
1142 <goals>
1143 <goal>run</goal>
1144 </goals>
1145 </execution>
1146 </executions>
1147 <dependencies>
1148 <dependency>
1149 <groupId>ant-contrib</groupId>
1150 <artifactId>ant-contrib</artifactId>
1151 <version>1.0b3</version>
1152 <exclusions>
1153 <exclusion>
1154 <groupId>ant</groupId>
1155 <artifactId>ant</artifactId>
1156 </exclusion>
1157 </exclusions>
1158 </dependency>
1159 </dependencies>
1160 </plugin>
1161 <plugin>
1162 <groupId>io.swagger</groupId>
1163 <artifactId>swagger-codegen-maven-plugin</artifactId>
1164 <version>2.2.1</version>
1165 <executions>
1166 <execution>
1167 <goals>
1168 <goal>generate</goal>
1169 </goals>
1170 <configuration>
1171 <inputSpec>\${basedir}/src/main/resources/swagger.json</inputSpec>
1172 <output>\${project.build.directory}/generated-sources</output>
1173 <language>java</language>
1174 <configOptions>
1175 <dateLibrary>joda</dateLibrary>
1176 </configOptions>
1177 <library>jersey2</library>
1178 <groupId>\${project.groupId}</groupId>
1179 <artifactId>\${project.artifactId}-java-sdk</artifactId>
1180 <artifactVersion>\${project.version}</artifactVersion>
1181 <modelPackage>\${project.groupId}.\${project.artifactId}.client.model</modelPackage>
1182 <apiPackage>\${project.groupId}.\${project.artifactId}.client.api</apiPackage>
1183 <invokerPackage>\${project.groupId}.\${project.artifactId}.client.invoker</invokerPackage>
1184 </configuration>
1185 </execution>
1186 </executions>
1187 </plugin>
1188 <plugin>
1189 <groupId>org.codehaus.mojo</groupId>
1190 <artifactId>exec-maven-plugin</artifactId>
1191 <version>1.5.0</version>
1192 <executions>
1193 <execution>
1194 <id>swagger-generate-sources</id>
1195 <phase>generate-sources</phase>
1196 <goals>
1197 <goal>exec</goal>
1198 </goals>
1199 <configuration>
1200 <executable>\${project.build.directory}\${file.separator}\${swagger.sdk.script.file}</executable>
1201 </configuration>
1202 </execution>
1203 </executions>
1204 </plugin>
1205 <plugin>
1206 <groupId>org.apache.maven.plugins</groupId>
1207 <artifactId>maven-clean-plugin</artifactId>
1208 <version>3.0.0</version>
1209 <executions>
1210 <execution>
1211 <id>clean-generated-files</id>
1212 <phase>generate-sources</phase>
1213 <goals>
1214 <goal>clean</goal>
1215 </goals>
1216 <configuration>
1217 <filesets>
1218 <fileset>
1219 <directory>\${project.build.directory}/generated-sources</directory>
1220 </fileset>
1221 </filesets>
1222 </configuration>
1223 </execution>
1224 </executions>
1225 </plugin>
1226 </plugins>
1227 </build>
1228 <dependencies>
1229 <dependency>
1230 <groupId>org.onap.msb.swagger-sdk</groupId>
1231 <artifactId>swagger-sdk</artifactId>
1232 <version>1.0.0</version>
1233 </dependency>
1234 </dependencies>
1235 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001236 <profile>
1237 <id>sonar-jacoco-aggregate</id>
1238 <activation>
1239 <property>
1240 <name>onap.jacoco.aggregateFile</name>
1241 </property>
1242 </activation>
1243 <build>
1244 <plugins>
1245 <plugin>
1246 <groupId>org.jacoco</groupId>
1247 <artifactId>jacoco-maven-plugin</artifactId>
1248 <executions>
1249 <execution>
1250 <id>merge</id>
1251 <goals>
1252 <goal>merge</goal>
1253 </goals>
1254 <phase>generate-resources</phase>
1255 <configuration>
1256 <destFile>${onap.jacoco.aggregateFile}</destFile>
1257 <fileSets>
1258 <fileSet>
1259 <directory>\${project.basedir}</directory>
1260 <includes>
1261 <include>**/target/code-coverage/*.exec</include>
1262 </includes>
1263 </fileSet>
1264 </fileSets>
1265 </configuration>
1266 </execution>
1267 </executions>
1268 </plugin>
1269 </plugins>
1270 </build>
1271 </profile>
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001272 <!-- End of profiles from ONAP oparent -->
Timoney, Dan (dt5972)0586da42019-07-17 10:43:14 -04001273
Michael DÜrre7bb133e2022-01-18 10:06:31 +01001274
Singal, Kapil (ks220y)e7a2e742019-12-05 12:31:32 -05001275 </profiles>
Timoney, Dan (dt5972)3beea0e2018-12-18 16:05:41 -05001276</project>