blob: 43d3f30eee0d291eb5eca378f6dc1cba8e361275 [file] [log] [blame]
Dan Timoney0f2db3f2018-01-25 16:23:27 -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)f15762d2019-12-03 10:48:17 -05003 <modelVersion>4.0.0</modelVersion>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04004
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -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)f15762d2019-12-03 10:48:17 -05008 <parent>
9 <groupId>org.opendaylight.controller</groupId>
10 <artifactId>mdsal-it-parent</artifactId>
Michael DÜrre67cb8d52021-04-12 13:11:00 +020011 <version>3.0.7</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050012 <relativePath/>
13 </parent>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050014
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050015 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>mdsal-it-parent</artifactId>
Dan Timoney129bbdb2021-03-09 09:43:57 -050017 <version>2.2.0-SNAPSHOT</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050018 <packaging>pom</packaging>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050019
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -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>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050026
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -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)f15762d2019-12-03 10:48:17 -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)f15762d2019-12-03 10:48:17 -050039 </snapshotRepository>
40 </distributionManagement>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050041
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -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 -->
53 <jacoco.version>0.8.5</jacoco.version>
54
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050055 <!-- properties from oparent -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050056 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -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)f15762d2019-12-03 10:48:17 -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 -->
Dan Timoney0f2db3f2018-01-25 16:23:27 -050066
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -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)f15762d2019-12-03 10:48:17 -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>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050078
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -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>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050082
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050083 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010084 <java.version>11</java.version>
85 <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
86 <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
87 <bundle.plugin.version>4.2.1</bundle.plugin.version>
88 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050089 <features.file>features.xml</features.file>
90 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
91 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010092 <checkstyle.plugin.version>3.1.1</checkstyle.plugin.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050093 <checkstyle.skip>true</checkstyle.skip>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010094 <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
Dan Timoney0f2db3f2018-01-25 16:23:27 -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>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050098
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050099 <!-- CCSDK component versions -->
Dan Timoneyac582d92021-03-15 08:43:10 -0400100 <ccsdk.cds.version>1.2.0-SNAPSHOT</ccsdk.cds.version>
101 <ccsdk.features.version>1.2.0-SNAPSHOT</ccsdk.features.version>
102 <ccsdk.distribution.version>1.2.0-SNAPSHOT</ccsdk.distribution.version>
103 <ccsdk.sli.version>1.3.0-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>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500112
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500113 <!-- Support libraries used by OpenDaylight -->
Michael DÜrre67cb8d52021-04-12 13:11:00 +0200114 <odl.controller.mdsal.version>1.13.0</odl.controller.mdsal.version>
115 <odl.mdsal.version>7.0.6</odl.mdsal.version>
116 <odl.mdsal.model.version>7.0.6</odl.mdsal.model.version>
117 <odl.netconf.restconf.version>1.13.0</odl.netconf.restconf.version>
118 <odl.netconf.netconf.version>1.13.1</odl.netconf.netconf.version>
119 <odl.netconf.sal.rest.docgen.version>1.13.0</odl.netconf.sal.rest.docgen.version>
Timoney, Dan (dt5972)135e4072019-07-01 13:08:58 -0400120
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500121 <!-- Used by aaa, vtn -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100122 <commons.codec.version>1.15</commons.codec.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500123 <!-- Used by netconf, ovsdb -->
124 <commons.lang3.version>3.8.1</commons.lang3.version>
125 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
126 <commons.lang.version>2.6</commons.lang.version>
127 <!-- Used by neutron; see also controller, vtn -->
Michael DÜrre67cb8d52021-04-12 13:11:00 +0200128 <commons.net.version>3.8</commons.net.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500129 <!-- Used by neutron -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100130 <eclipse.persistence.version>2.7.7</eclipse.persistence.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500131 <!-- Used by aaa -->
132 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
133 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
134 <gson.version>2.8.5</gson.version>
135 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
Michael DÜrre67cb8d52021-04-12 13:11:00 +0200136 <guava.version>29.0-jre</guava.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500137 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400138 integration/distribution, snmp4sdn, toolkit, ttp -->
Michael DÜrre67cb8d52021-04-12 13:11:00 +0200139 <jackson.version>2.11.4</jackson.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500140 <!-- Used by snmp4sdn, yangtools -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100141 <javassist.version>3.27.0-GA</javassist.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500142
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500143 <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
144 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, snmp4sdn, toolkit -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100145 <jersey.version>2.27</jersey.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500146 <!-- Used by sfc -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100147 <jersey.client.version>2.27</jersey.client.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500148
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500149 <!-- New packages for jersey migration 1.17 to 2.8 -->
150 <!-- appache.geronimo.bundle for DocGen -->
151 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
152 <org.json.version>20131018</org.json.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500153
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500154 <!-- Used everywhere -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100155 <junit.version>4.13</junit.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500156 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100157 <logback.version>1.11.6</logback.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500158 <!-- Used by nic, sfc, sxp, tsdr -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100159 <mockito.version>3.3.3</mockito.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500160 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100161 <netty.version>4.1.51.Final</netty.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500162 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100163 <slf4j.version>1.7.29</slf4j.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500164 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
Singal, Kapil (ks220y)b5adc452020-02-20 13:53:41 -0500165 <spring.version>4.3.25.RELEASE</spring.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500166
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500167 <!-- Extra support libraries used by SDN-C -->
168 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100169 <antlr.version>4.8.1</antlr.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500170
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500171 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
Timoney, Dan (dt5972)ebc00be2018-03-21 09:00:19 -0400172
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500173 <!-- Managed dependency versions -->
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500174 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
175 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500176 <derby.version>10.14.2.0</derby.version>
177 <eelf.version>1.0.0</eelf.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500178 <grpc.version>1.21.1</grpc.version>
179 <mariadb.connector.version>2.4.4</mariadb.connector.version>
180 <mariadb4j.version>2.4.0</mariadb4j.version>
181 <testng.version>6.14.3</testng.version>
Rich Tabedzkifce995d2020-03-11 11:06:57 -0400182 <tomcat-jdbc.version>9.0.30</tomcat-jdbc.version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100183 <jetty.version>9.4.28.v20200408</jetty.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500184 <skip.karaf.featureTest>true</skip.karaf.featureTest>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500185 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500186 </properties>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500187
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500188 <dependencyManagement>
189 <dependencies>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500190 <!-- Note: If value in BOM conflicts with value inherited from
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400191 parent pom, inherited value takes precedence. This seems more like
192 a bug than a feature, but this is how maven 3.6 works -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500193 <dependency>
194 <groupId>org.onap.ccsdk.parent</groupId>
195 <artifactId>dependencies-odl-bom</artifactId>
Dan Timoney129bbdb2021-03-09 09:43:57 -0500196 <version>2.2.0-SNAPSHOT</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500197 <type>pom</type>
198 <scope>import</scope>
199 </dependency>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500200 <dependency>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100201 <groupId>org.onap.ccsdk.parent</groupId>
202 <artifactId>dependencies-bom</artifactId>
Dan Timoney129bbdb2021-03-09 09:43:57 -0500203 <version>2.2.0-SNAPSHOT</version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100204 <type>pom</type>
205 <scope>import</scope>
206 </dependency>
207 <dependency>
208 <groupId>org.springframework.boot</groupId>
209 <artifactId>spring-boot-dependencies</artifactId>
210 <version>2.3.8.RELEASE</version>
211 <scope>import</scope>
212 <type>pom</type>
213 </dependency>
214 <dependency>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500215 <groupId>org.onap.logging-analytics</groupId>
216 <artifactId>logging-slf4j</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000217 <version>${logging-analytics.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500218 </dependency>
219 <dependency>
220 <groupId>org.onap.logging-analytics</groupId>
221 <artifactId>logging-filter-base</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000222 <version>${logging-analytics.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500223 </dependency>
Singal, Kapil (ks220y)ffff34a2020-02-27 11:02:51 -0500224 <dependency>
225 <groupId>junit</groupId>
226 <artifactId>junit</artifactId>
227 <version>${junit.version}</version>
228 <scope>test</scope>
229 </dependency>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500230 </dependencies>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500231 </dependencyManagement>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400232
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500233 <repositories>
234 <repository>
235 <id>onap-public</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500236 <url>${onap.nexus.public-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500237 <releases>
238 <enabled>true</enabled>
239 <updatePolicy>never</updatePolicy>
240 </releases>
241 <snapshots>
242 <enabled>true</enabled>
243 <updatePolicy>always</updatePolicy>
244 </snapshots>
245 </repository>
246 <repository>
247 <id>onap-staging</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500248 <url>${onap.nexus.staging-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500249 <releases>
250 <enabled>true</enabled>
251 <updatePolicy>never</updatePolicy>
252 </releases>
253 <snapshots>
254 <enabled>true</enabled>
255 <updatePolicy>always</updatePolicy>
256 </snapshots>
257 </repository>
258 <repository>
259 <id>ecomp-release</id>
260 <name>onap-repository-releases</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500261 <url>${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500262 <releases>
263 <enabled>true</enabled>
264 <updatePolicy>never</updatePolicy>
265 </releases>
266 <snapshots>
267 <enabled>false</enabled>
268 </snapshots>
269 </repository>
270 <repository>
271 <id>ecomp-snapshot</id>
272 <name>onap-repository-snapshots</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500273 <url>${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500274 <releases>
275 <enabled>false</enabled>
276 </releases>
277 <snapshots>
278 <enabled>true</enabled>
279 </snapshots>
280 </repository>
281 <repository>
282 <id>opendaylight-mirror</id>
283 <name>opendaylight-mirror</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500284 <url>${opendaylight.nexus.public-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500285 <releases>
286 <enabled>true</enabled>
287 <updatePolicy>never</updatePolicy>
288 </releases>
289 <snapshots>
290 <enabled>false</enabled>
291 </snapshots>
292 </repository>
293 <repository>
294 <id>opendaylight-snapshot</id>
295 <name>opendaylight-snapshot</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500296 <url>${opendaylight.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500297 <releases>
298 <enabled>false</enabled>
299 </releases>
300 <snapshots>
301 <enabled>true</enabled>
302 </snapshots>
303 </repository>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500304 </repositories>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400305
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500306 <pluginRepositories>
307 <pluginRepository>
308 <id>onap-public</id>
309 <url>${onap.nexus.public-url}</url>
310 <releases>
311 <enabled>true</enabled>
312 </releases>
313 <snapshots>
314 <enabled>true</enabled>
315 </snapshots>
316 </pluginRepository>
317 <pluginRepository>
318 <id>onap-staging</id>
319 <url>${onap.nexus.staging-url}</url>
320 <releases>
321 <enabled>true</enabled>
322 </releases>
323 <snapshots>
324 <enabled>true</enabled>
325 </snapshots>
326 </pluginRepository>
327 <pluginRepository>
328 <id>onap-snapshot</id>
329 <url>${onap.nexus.snapshot-url}</url>
330 <releases>
331 <enabled>false</enabled>
332 </releases>
333 <snapshots>
334 <enabled>true</enabled>
335 </snapshots>
336 </pluginRepository>
337 <pluginRepository>
338 <id>opendaylight-mirror</id>
339 <name>opendaylight-mirror</name>
340 <url>${opendaylight.nexus.public-url}</url>
341 <releases>
342 <enabled>true</enabled>
343 <updatePolicy>never</updatePolicy>
344 </releases>
345 <snapshots>
346 <enabled>false</enabled>
347 </snapshots>
348 </pluginRepository>
349 <pluginRepository>
350 <id>opendaylight-snapshot</id>
351 <name>opendaylight-snapshot</name>
352 <url>${opendaylight.nexus.snapshot-url}</url>
353 <releases>
354 <enabled>false</enabled>
355 </releases>
356 <snapshots>
357 <enabled>true</enabled>
358 </snapshots>
359 </pluginRepository>
360 <!-- Black Duck plugin dependencies -->
361 <pluginRepository>
362 <id>JCenter</id>
363 <name>JCenter Repository</name>
364 <url>http://jcenter.bintray.com</url>
365 </pluginRepository>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500366 <pluginRepository>
367 <id>Restlet</id>
368 <name>Restlet Repository</name>
369 <url>http://maven.restlet.com</url>
370 </pluginRepository>
371 </pluginRepositories>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400372
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500373 <build>
374 <pluginManagement>
375 <plugins>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500376 <!-- Plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500377 <plugin>
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-deploy-plugin</artifactId>
380 <!-- This version supports the "deployAtEnd" parameter -->
381 <version>2.8</version>
382 <configuration>
383 <skip/>
Singal, Kapil (ks220y)6fa7fc92021-02-01 16:11:38 -0500384 <deployAtEnd>true</deployAtEnd>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500385 </configuration>
386 </plugin>
387 <plugin>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-site-plugin</artifactId>
390 <version>3.6</version>
391 <dependencies>
392 <dependency>
393 <groupId>org.apache.maven.wagon</groupId>
394 <artifactId>wagon-webdav-jackrabbit</artifactId>
395 <version>2.10</version>
396 </dependency>
397 </dependencies>
398 </plugin>
399 <plugin>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-enforcer-plugin</artifactId>
402 <version>3.0.0-M2</version>
403 <executions>
404 <execution>
405 <id>enforce-property</id>
406 <goals>
407 <goal>enforce</goal>
408 </goals>
409 <configuration>
410 <rules>
411 <requireProperty>
412 <property>onap.nexus.url</property>
413 <message>You must set a onap.nexus.url property in your
414 ~/.m2/settings.xml. See oparent/settings.xml for an example.
415 </message>
416 </requireProperty>
417 </rules>
418 <fail>true</fail>
419 </configuration>
420 </execution>
421 <execution>
422 <id>enforce-no-snapshots</id>
423 <goals>
424 <goal>enforce</goal>
425 </goals>
426 <configuration>
427 <rules>
428 <requireReleaseDeps>
429 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
430 <onlyWhenRelease>true</onlyWhenRelease>
431 <level>WARN</level>
432 </requireReleaseDeps>
433 </rules>
434 </configuration>
435 </execution>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200436 <execution>
437 <id>enforce-maven</id>
438 <goals>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100439 <goal>enforce</goal>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200440 </goals>
441 <configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100442 <rules>
443 <requireJavaVersion>
444 <version>8</version>
445 </requireJavaVersion>
446 <requireMavenVersion>
447 <version>[3.5.0,)</version>
448 </requireMavenVersion>
449 </rules>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200450 </configuration>
451 </execution>
452 <execution>
453 <id>enforce-banned-dependencies</id>
454 <goals>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100455 <goal>enforce</goal>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200456 </goals>
457 <configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100458 <rules>
459 <bannedDependencies>
460 <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>
461 <excludes>
462 <exclude>org.mockito:mockito-all</exclude>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400463 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100464 </excludes>
465 </bannedDependencies>
466 </rules>
467 <fail>true</fail>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200468 </configuration>
469 </execution>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500470 </executions>
471 </plugin>
472 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
473 <plugin>
474 <groupId>org.sonarsource.scanner.maven</groupId>
475 <artifactId>sonar-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500476 <version>${sonar.scanner.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500477 </plugin>
478 <!-- end of plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500479 <!-- Plugins from ONAP oparent -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500480 <plugin>
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-surefire-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100483 <version>${maven-surefire-plugin.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500484 <configuration>
485 <!-- Sets the VM argument line used when unit tests are run. -->
486 <argLine>${surefireArgLine}</argLine>
487 <!-- Excludes integration tests when unit tests are run. -->
488 <excludes>
489 <exclude>**/IT*.java</exclude>
490 </excludes>
491 </configuration>
492 </plugin>
493 <plugin>
494 <groupId>org.apache.maven.plugins</groupId>
495 <artifactId>maven-failsafe-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100496 <version>${maven-failsafe-plugin.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500497 <executions>
498 <!-- Ensures that both integration-test and verify goals of the Failsafe
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400499 Maven plugin are executed. -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500500 <execution>
501 <id>integration-tests</id>
502 <goals>
503 <goal>integration-test</goal>
504 <goal>verify</goal>
505 </goals>
506 <configuration>
507 <!-- Sets the VM argument line used when integration tests are run. -->
508 <argLine>${failsafeArgLine}</argLine>
509 </configuration>
510 </execution>
511 </executions>
512 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400513
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500514 <!-- End of plugins from ONAP oparent -->
515 <plugin>
516 <groupId>org.codehaus.mojo</groupId>
517 <artifactId>properties-maven-plugin</artifactId>
518 <version>1.0.0</version>
519 <executions>
520 <execution>
521 <goals>
522 <goal>set-system-properties</goal>
523 </goals>
524 <configuration>
525 <properties>
526 <property>
527 <name>maven.wagon.http.ssl.allowall</name>
528 <value>${ssl.allowall}</value>
529 </property>
530 <property>
531 <name>maven.wagon.http.ssl.insecure</name>
532 <value>${ssl.insecure}</value>
533 </property>
534 </properties>
535 </configuration>
536 </execution>
537 </executions>
538 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400539
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500540 <plugin>
541 <groupId>org.codehaus.mojo</groupId>
542 <artifactId>versions-maven-plugin</artifactId>
543 <version>2.5</version>
544 <configuration>
545 <processAllModules>true</processAllModules>
546 </configuration>
547 </plugin>
548 <plugin>
549 <artifactId>maven-scm-plugin</artifactId>
550 <version>1.8.1</version>
551 <configuration>
552 <tag>${project.artifactId}-${project.version}</tag>
553 </configuration>
554 </plugin>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500555 <plugin>
556 <groupId>com.github.ferstl</groupId>
557 <artifactId>depgraph-maven-plugin</artifactId>
558 <version>3.3.0</version>
559 <configuration>
560 <graphFormat>text</graphFormat>
561 <outputFileName>${dependency-list.file}</outputFileName>
562 <outputDirectory>${project.basedir}</outputDirectory>
563 <transitiveExcludes>*</transitiveExcludes>
564 <showVersions>true</showVersions>
Timoney, Dan (dt5972)cc0c96a2019-12-11 10:04:52 -0500565 <showGroupIds>true</showGroupIds>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500566 </configuration>
567 </plugin>
Michael Dürre66430cc2020-08-24 14:39:08 +0200568 <plugin>
569 <groupId>de.jacks-it-lab</groupId>
570 <artifactId>frontend-maven-plugin</artifactId>
571 <version>1.7.2</version>
572 </plugin>
573 <plugin>
574 <groupId>com.github.alexcojocaru</groupId>
575 <artifactId>elasticsearch-maven-plugin</artifactId>
576 <version>6.16</version>
577 <configuration>
578 <version>7.1.1</version>
579 </configuration>
580 </plugin>
Dan Timoneye816a592020-09-03 08:56:01 -0400581 <plugin>
582 <groupId>org.apache.maven.plugins</groupId>
583 <artifactId>maven-javadoc-plugin</artifactId>
584 <version>3.2.0</version>
585 <configuration>
586 <failOnError>false</failOnError>
587 </configuration>
588 </plugin>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100589 <plugin>
590 <artifactId>maven-checkstyle-plugin</artifactId>
591 <executions>
592 <execution>
593 <phase>process-sources</phase>
594 <goals>
595 <goal>check</goal>
596 </goals>
597 <configuration>
598 <failOnViolation>false</failOnViolation>
599 <skip>false</skip>
600 </configuration>
601 </execution>
602 </executions>
603 </plugin>
604 <plugin>
605 <groupId>com.github.spotbugs</groupId>
606 <artifactId>spotbugs-maven-plugin</artifactId>
607 <version>3.1.12.2</version>
608 <executions>
609 <execution>
610 <id>analyze-compile</id>
611 <phase>compile</phase>
612 <goals>
613 <goal>check</goal>
614 </goals>
615 <configuration>
616 <plugins>
617 <plugin>
618 <groupId>jp.skypencil.findbugs.slf4j</groupId>
619 <artifactId>bug-pattern</artifactId>
620 <version>1.5.0</version>
621 </plugin>
622 </plugins>
623 <effort>Max</effort>
624 <threshold>Low</threshold>
625 <failOnError>false</failOnError>
626 <skip>true</skip>
627 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
628 <xmlOutput>true</xmlOutput>
629 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
630 </configuration>
631 </execution>
632 </executions>
633 <dependencies>
634 <dependency>
635 <groupId>com.github.spotbugs</groupId>
636 <artifactId>spotbugs</artifactId>
637 <version>3.1.12</version>
638 <scope>compile</scope>
639 </dependency>
640 <dependency>
641 <groupId>org.opendaylight.odlparent</groupId>
642 <artifactId>spotbugs</artifactId>
643 <version>7.0.5</version>
644 <scope>compile</scope>
645 </dependency>
646 <dependency>
647 <groupId>org.slf4j</groupId>
648 <artifactId>slf4j-simple</artifactId>
649 <version>1.8.0-beta2</version>
650 <scope>compile</scope>
651 </dependency>
652 </dependencies>
653 <configuration>
654 <plugins>
655 <plugin>
656 <groupId>jp.skypencil.findbugs.slf4j</groupId>
657 <artifactId>bug-pattern</artifactId>
658 <version>1.5.0</version>
659 </plugin>
660 </plugins>
661 <effort>Max</effort>
662 <threshold>Low</threshold>
663 <failOnError>false</failOnError>
664 <skip>true</skip>
665 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
666 <xmlOutput>true</xmlOutput>
667 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
668 </configuration>
669 </plugin>
670 <plugin>
671 <artifactId>maven-checkstyle-plugin</artifactId>
672 <version>${checkstyle.plugin.version}</version>
673 <dependencies>
674 <dependency>
675 <groupId>org.onap.oparent</groupId>
676 <artifactId>checkstyle</artifactId>
677 <version>1.2.2</version>
678 </dependency>
679 </dependencies>
680 <executions>
681 <execution>
682 <id>check-license</id>
683 <goals>
684 <goal>check</goal>
685 </goals>
686 <phase>process-sources</phase>
687 <configuration>
688 <configLocation>onap-checkstyle/check-license.xml</configLocation>
689 <includeResources>false</includeResources>
690 <includeTestSourceDirectory>true</includeTestSourceDirectory>
691 <includeTestResources>false</includeTestResources>
692 <sourceDirectories>
693 <directory>${project.build.sourceDirectory}</directory>
694 </sourceDirectories>
695 <excludes>
696 </excludes>
697 <consoleOutput>true</consoleOutput>
698 <failOnViolation>false</failOnViolation>
699 </configuration>
700 </execution>
701 <execution>
702 <id>onap-java-style</id>
703 <goals>
704 <goal>check</goal>
705 </goals>
706 <phase>process-sources</phase>
707 <configuration>
708 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
709 with minor changes -->
710 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
711 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
712 <sourceDirectories>
713 <directory>${project.build.sourceDirectory}/src/main/java</directory>
714 </sourceDirectories>
715 <includeResources>true</includeResources>
716 <includeTestSourceDirectory>true</includeTestSourceDirectory>
717 <includeTestResources>true</includeTestResources>
718 <excludes>
719 </excludes>
720 <consoleOutput>true</consoleOutput>
721 <failOnViolation>false</failOnViolation>
722 </configuration>
723 </execution>
724 </executions>
725 </plugin>
Michael DÜrre67cb8d52021-04-12 13:11:00 +0200726 <plugin>
727 <groupId>org.gaul</groupId>
728 <artifactId>modernizer-maven-plugin</artifactId>
729 <version>2.1.0</version>
730 <executions>
731 <execution>
732 <id>modernizer</id>
733 <phase>verify</phase>
734 <goals>
735 <goal>modernizer</goal>
736 </goals>
737 <configuration>
738 <failOnViolations>false</failOnViolations>
739 <skip>true</skip>
740 </configuration>
741 </execution>
742 </executions>
743 <configuration>
744 <failOnViolations>false</failOnViolations>
745 <skip>true</skip>
746 </configuration>
747 </plugin>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500748 </plugins>
749 </pluginManagement>
750 <plugins>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500751 <!-- Plugins from oparent version (parent of oparent) -->
752 <plugin>
753 <groupId>org.apache.maven.plugins</groupId>
754 <artifactId>maven-deploy-plugin</artifactId>
755 </plugin>
756 <plugin>
757 <groupId>org.apache.maven.plugins</groupId>
758 <artifactId>maven-site-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100759 <!--
760 <configuration>
761 <reportPlugins>
762 <reportPlugin>
763 <groupId>org.apache.maven.plugins</groupId>
764 <artifactId>maven-checkstyle-plugin</artifactId>
765 <version>${checkstyle.plugin.version}</version>
766 </reportPlugin>
767 </reportPlugins>
768 </configuration>
769 -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500770 </plugin>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500771 <!-- end of plugins from oparent version (parent of oparent) -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400772
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500773 <!-- Plugins from oparent -->
774 <plugin>
775 <artifactId>maven-checkstyle-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100776 <version>${checkstyle.plugin.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500777 <dependencies>
778 <dependency>
779 <groupId>org.onap.oparent</groupId>
780 <artifactId>checkstyle</artifactId>
781 <version>1.2.2</version>
782 </dependency>
783 </dependencies>
784 <executions>
785 <execution>
Michael DÜrref2bcac02021-02-09 08:35:01 +0100786 <!-- overwrite odl default to supress spotbugs code check execution -->
787 <goals>
788 <goal>check</goal>
789 </goals>
790 <phase>process-sources</phase>
791 <configuration>
792 <skip>true</skip>
793 <failOnViolation>false</failOnViolation>
794 </configuration>
795 </execution>
796 <execution>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500797 <id>onap-license</id>
798 <goals>
799 <goal>check</goal>
800 </goals>
801 <phase>process-sources</phase>
802 <configuration>
803 <configLocation>onap-checkstyle/check-license.xml</configLocation>
804 <includeResources>false</includeResources>
805 <includeTestSourceDirectory>true</includeTestSourceDirectory>
806 <includeTestResources>false</includeTestResources>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100807 <sourceDirectories>
808 <directory>${project.build.sourceDirectory}</directory>
809 </sourceDirectories>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500810 <excludes>
811 </excludes>
812 <consoleOutput>true</consoleOutput>
813 <failOnViolation>false</failOnViolation>
814 </configuration>
815 </execution>
816 <execution>
817 <id>onap-java-style</id>
818 <goals>
819 <goal>check</goal>
820 </goals>
821 <phase>process-sources</phase>
822 <configuration>
823 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400824 with minor changes -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500825 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500826 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100827 <sourceDirectories>
828 <directory>${project.build.sourceDirectory}/src/main/java</directory>
829 </sourceDirectories>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500830 <includeResources>true</includeResources>
831 <includeTestSourceDirectory>true</includeTestSourceDirectory>
832 <includeTestResources>true</includeTestResources>
833 <excludes>
834 </excludes>
835 <consoleOutput>true</consoleOutput>
836 <failOnViolation>false</failOnViolation>
837 </configuration>
838 </execution>
839 </executions>
840 </plugin>
841 <plugin>
842 <groupId>org.codehaus.mojo</groupId>
843 <artifactId>build-helper-maven-plugin</artifactId>
844 <version>1.12</version>
845 </plugin>
846 <!-- Jacoco / Sonar -->
847 <plugin>
848 <groupId>org.jacoco</groupId>
849 <artifactId>jacoco-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500850 <version>${jacoco.version}</version>
851 <executions>
852 <execution>
853 <id>pre-unit-test</id>
854 <goals>
855 <goal>prepare-agent</goal>
856 </goals>
857 <configuration>
858 <!-- Sets the path to the file which contains the execution data. -->
859 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500860 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500861 <propertyName>surefireArgLine</propertyName>
862 </configuration>
863 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500864 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500865 <execution>
866 <id>post-unit-test</id>
867 <phase>test</phase>
868 <goals>
869 <goal>report</goal>
870 </goals>
871 <configuration>
872 <!-- Sets the path to the file which contains the execution data. -->
873 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
874 <!-- Sets the output directory for the code coverage report. -->
875 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
876 </configuration>
877 </execution>
878 <execution>
879 <id>pre-integration-test</id>
880 <phase>pre-integration-test</phase>
881 <goals>
882 <goal>prepare-agent</goal>
883 </goals>
884 <configuration>
885 <!-- Sets the path to the file which contains the execution data. -->
886 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500887 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500888 <propertyName>failsafeArgLine</propertyName>
889 </configuration>
890 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500891 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500892 <execution>
893 <id>post-integration-test</id>
894 <phase>post-integration-test</phase>
895 <goals>
896 <goal>report</goal>
897 </goals>
898 <configuration>
899 <!-- Sets the path to the file which contains the execution data. -->
900 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
901 <!-- Sets the output directory for the code coverage report. -->
902 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
903 </configuration>
904 </execution>
905 <execution>
906 <id>default-prepare-agent</id>
907 <goals>
908 <goal>prepare-agent</goal>
909 </goals>
910 </execution>
911 <execution>
912 <id>default-report</id>
913 <phase>prepare-package</phase>
914 <goals>
915 <goal>report</goal>
916 </goals>
917 </execution>
918 <execution>
919 <id>default-check</id>
920 <goals>
921 <goal>check</goal>
922 </goals>
923 <configuration>
924 <rules>
925 <rule>
926 <element>PACKAGE</element>
927 <limits>
928 <limit>
929 <counter>COMPLEXITY</counter>
930 <value>COVEREDRATIO</value>
931 <minimum>0.0</minimum>
932 </limit>
933 </limits>
934 </rule>
935 </rules>
936 </configuration>
937 </execution>
938 </executions>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500939 </plugin>
940 <plugin>
941 <groupId>org.apache.maven.plugins</groupId>
942 <artifactId>maven-surefire-plugin</artifactId>
943 </plugin>
944 <plugin>
945 <groupId>org.apache.maven.plugins</groupId>
946 <artifactId>maven-failsafe-plugin</artifactId>
947 </plugin>
948 <!-- end of plugins from oparent -->
949 <plugin>
950 <groupId>org.apache.maven.plugins</groupId>
951 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500952 <executions>
953 <execution>
954 <id>attach-javadocs</id>
955 <goals>
956 <goal>jar</goal>
957 </goals>
958 <configuration>
959 <additionalparam>-Xdoclint:none</additionalparam>
960 </configuration>
961 </execution>
962 </executions>
963 </plugin>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200964 <plugin>
965 <artifactId>maven-enforcer-plugin</artifactId>
966 <version>3.0.0-M2</version>
967 <executions>
968 <execution>
969 <id>enforce-property</id>
970 <goals>
971 <goal>enforce</goal>
972 </goals>
973 <configuration>
974 <rules>
975 <requireProperty>
976 <property>onap.nexus.url</property>
977 <message>You must set a onap.nexus.url property in your
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100978 ~/.m2/settings.xml. See oparent/settings.xml for an example.
979 </message>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200980 </requireProperty>
981 </rules>
982 <fail>true</fail>
983 </configuration>
984 </execution>
985 <execution>
986 <id>enforce-no-snapshots</id>
987 <goals>
988 <goal>enforce</goal>
989 </goals>
990 <configuration>
991 <rules>
992 <requireReleaseDeps>
993 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
994 <onlyWhenRelease>true</onlyWhenRelease>
995 <level>WARN</level>
996 </requireReleaseDeps>
997 </rules>
998 </configuration>
999 </execution>
1000 <execution>
1001 <id>enforce-maven</id>
1002 <goals>
1003 <goal>enforce</goal>
1004 </goals>
1005 <configuration>
1006 <rules>
1007 <requireJavaVersion>
1008 <version>1.8.0</version>
1009 </requireJavaVersion>
1010 <requireMavenVersion>
1011 <version>[3.5.0,)</version>
1012 </requireMavenVersion>
1013 </rules>
1014 </configuration>
1015 </execution>
1016 <execution>
1017 <id>enforce-banned-dependencies</id>
1018 <goals>
1019 <goal>enforce</goal>
1020 </goals>
1021 <configuration>
1022 <rules>
1023 <bannedDependencies>
1024 <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>
1025 <excludes>
1026 <exclude>org.mockito:mockito-all</exclude>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -04001027 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +02001028 </excludes>
1029 </bannedDependencies>
1030 </rules>
1031 <fail>true</fail>
1032 </configuration>
1033 </execution>
1034 </executions>
1035 </plugin>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -04001036 <plugin>
1037 <groupId>pl.project13.maven</groupId>
1038 <artifactId>git-commit-id-plugin</artifactId>
1039 <version>4.0.0</version>
1040 <configuration>
1041 <commitIdGenerationMode>full</commitIdGenerationMode>
1042 <includeOnlyProperties>
1043 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
1044 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
1045 </includeOnlyProperties>
1046 </configuration>
1047 </plugin>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001048 </plugins>
1049 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001050
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001051 <reporting>
1052 <plugins>
1053 <plugin>
1054 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001055 <configuration>
1056 <failOnError>false</failOnError>
1057 <additionalparam>-Xdoclint:none</additionalparam>
1058 </configuration>
1059 </plugin>
1060 </plugins>
1061 </reporting>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001062
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001063 <profiles>
1064 <!-- Profiles from ONAP oparent -->
1065 <profile>
1066 <id>generate-json</id>
1067 <activation>
1068 <file>
1069 <exists>${swagger-properties}</exists>
1070 </file>
1071 <property>
1072 <name>swagger-sdk.generate-json</name>
1073 </property>
1074 </activation>
1075 <build>
1076 <plugins>
1077 <plugin>
1078 <groupId>org.codehaus.mojo</groupId>
1079 <artifactId>properties-maven-plugin</artifactId>
1080 <version>1.0.0</version>
1081 <executions>
1082 <execution>
1083 <phase>initialize</phase>
1084 <goals>
1085 <goal>read-project-properties</goal>
1086 </goals>
1087 <configuration>
1088 <files>
1089 <file>${basedir}/src/main/resources/swagger.properties</file>
1090 </files>
1091 </configuration>
1092 </execution>
1093 </executions>
1094 </plugin>
1095 <plugin>
1096 <groupId>com.github.kongchen</groupId>
1097 <artifactId>swagger-maven-plugin</artifactId>
1098 <version>3.1.4</version>
1099 <configuration>
1100 <apiSources>
1101 <apiSource>
1102 <locations>${api-rest-package}</locations>
1103 <schemes>http,https</schemes>
1104 <host>${api-host-ip}:${api-host-port}</host>
1105 <basePath>${api-base-path}</basePath>
1106 <info>
1107 <title>${api-title}</title>
1108 <version>${api-version}</version>
1109 <description>${api-description}</description>
1110 <license>
1111 <name>${api-license}</name>
1112 </license>
1113 </info>
1114 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
1115 </apiSource>
1116 </apiSources>
1117 </configuration>
1118 <executions>
1119 <execution>
1120 <phase>compile</phase>
1121 <goals>
1122 <goal>generate</goal>
1123 </goals>
1124 </execution>
1125 </executions>
1126 </plugin>
1127 <plugin>
1128 <groupId>org.apache.maven.plugins</groupId>
1129 <artifactId>maven-install-plugin</artifactId>
1130 <version>2.3.1</version>
1131 <executions>
1132 <execution>
1133 <id>install-file-id</id>
1134 <phase>install</phase>
1135 <goals>
1136 <goal>install-file</goal>
1137 </goals>
1138 <configuration>
1139 <file>${basedir}/src/main/resources/swagger.json</file>
1140 <groupId>${project.groupId}</groupId>
1141 <artifactId>${project.artifactId}-swagger-schema</artifactId>
1142 <version>${project.version}</version>
1143 <packaging>json</packaging>
1144 </configuration>
1145 </execution>
1146 </executions>
1147 </plugin>
1148 </plugins>
1149 </build>
1150 </profile>
1151 <profile>
1152 <id>generate-sdk</id>
1153 <activation>
1154 <file>
1155 <exists>${swagger-json}</exists>
1156 </file>
1157 <property>
1158 <name>swagger-sdk.generate-java-sdk</name>
1159 </property>
1160 </activation>
1161 <build>
1162 <plugins>
1163 <plugin>
1164 <groupId>org.apache.maven.plugins</groupId>
1165 <artifactId>maven-antrun-plugin</artifactId>
1166 <version>1.8</version>
1167 <executions>
1168 <execution>
1169 <phase>initialize</phase>
1170 <id>ant-create-script</id>
1171 <configuration>
1172 <exportAntProperties>true</exportAntProperties>
1173 <tasks>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001174 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001175 <condition property="is_windows" value="true">
1176 <os family="windows"/>
1177 </condition>
1178 <condition property="isLinux" value="true">
1179 <os family="unix"/>
1180 </condition>
1181 <if>
1182 <equals arg1="${is_windows}" arg2="true"/>
1183 <then>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001184 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1185 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001186 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001187 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001188 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001189 </then>
1190 <else>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001191 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1192 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001193 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001194 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001195 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001196 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001197 </else>
1198 </if>
1199 </tasks>
1200 </configuration>
1201 <goals>
1202 <goal>run</goal>
1203 </goals>
1204 </execution>
1205 </executions>
1206 <dependencies>
1207 <dependency>
1208 <groupId>ant-contrib</groupId>
1209 <artifactId>ant-contrib</artifactId>
1210 <version>1.0b3</version>
1211 <exclusions>
1212 <exclusion>
1213 <groupId>ant</groupId>
1214 <artifactId>ant</artifactId>
1215 </exclusion>
1216 </exclusions>
1217 </dependency>
1218 </dependencies>
1219 </plugin>
1220 <plugin>
1221 <groupId>io.swagger</groupId>
1222 <artifactId>swagger-codegen-maven-plugin</artifactId>
1223 <version>2.2.1</version>
1224 <executions>
1225 <execution>
1226 <goals>
1227 <goal>generate</goal>
1228 </goals>
1229 <configuration>
1230 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1231 <output>${project.build.directory}/generated-sources</output>
1232 <language>java</language>
1233 <configOptions>
1234 <dateLibrary>joda</dateLibrary>
1235 </configOptions>
1236 <library>jersey2</library>
1237 <groupId>${project.groupId}</groupId>
1238 <artifactId>${project.artifactId}-java-sdk</artifactId>
1239 <artifactVersion>${project.version}</artifactVersion>
1240 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1241 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1242 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1243 </configuration>
1244 </execution>
1245 </executions>
1246 </plugin>
1247 <plugin>
1248 <groupId>org.codehaus.mojo</groupId>
1249 <artifactId>exec-maven-plugin</artifactId>
1250 <version>1.5.0</version>
1251 <executions>
1252 <execution>
1253 <id>swagger-generate-sources</id>
1254 <phase>generate-sources</phase>
1255 <goals>
1256 <goal>exec</goal>
1257 </goals>
1258 <configuration>
1259 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1260 </configuration>
1261 </execution>
1262 </executions>
1263 </plugin>
1264 <plugin>
1265 <groupId>org.apache.maven.plugins</groupId>
1266 <artifactId>maven-clean-plugin</artifactId>
1267 <version>3.0.0</version>
1268 <executions>
1269 <execution>
1270 <id>clean-generated-files</id>
1271 <phase>generate-sources</phase>
1272 <goals>
1273 <goal>clean</goal>
1274 </goals>
1275 <configuration>
1276 <filesets>
1277 <fileset>
1278 <directory>${project.build.directory}/generated-sources</directory>
1279 </fileset>
1280 </filesets>
1281 </configuration>
1282 </execution>
1283 </executions>
1284 </plugin>
1285 </plugins>
1286 </build>
1287 <dependencies>
1288 <dependency>
1289 <groupId>org.onap.msb.swagger-sdk</groupId>
1290 <artifactId>swagger-sdk</artifactId>
1291 <version>1.0.0</version>
1292 </dependency>
1293 </dependencies>
1294 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001295 <profile>
1296 <id>sonar-jacoco-aggregate</id>
1297 <activation>
1298 <property>
1299 <name>onap.jacoco.aggregateFile</name>
1300 </property>
1301 </activation>
1302 <build>
1303 <plugins>
1304 <plugin>
1305 <groupId>org.jacoco</groupId>
1306 <artifactId>jacoco-maven-plugin</artifactId>
1307 <executions>
1308 <execution>
1309 <id>merge</id>
1310 <goals>
1311 <goal>merge</goal>
1312 </goals>
1313 <phase>generate-resources</phase>
1314 <configuration>
1315 <destFile>${onap.jacoco.aggregateFile}</destFile>
1316 <fileSets>
1317 <fileSet>
1318 <directory>${project.basedir}</directory>
1319 <includes>
1320 <include>**/target/code-coverage/*.exec</include>
1321 </includes>
1322 </fileSet>
1323 </fileSets>
1324 </configuration>
1325 </execution>
1326 </executions>
1327 </plugin>
1328 </plugins>
1329 </build>
1330 </profile>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001331 <!-- End of profiles from ONAP oparent -->
Timoney, Dan (dt5972)0586da42019-07-17 10:43:14 -04001332
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001333 <profile>
1334 <id>yang-compile</id>
1335 <activation>
1336 <file>
1337 <exists>src/main/yang</exists>
1338 </file>
1339 </activation>
1340 <build>
1341 <plugins>
1342 <plugin>
1343 <groupId>org.opendaylight.yangtools</groupId>
1344 <artifactId>yang-maven-plugin</artifactId>
Michael DÜrre67cb8d52021-04-12 13:11:00 +02001345 <version>6.0.5</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001346 <dependencies>
1347 <dependency>
1348 <groupId>org.opendaylight.mdsal</groupId>
1349 <artifactId>maven-sal-api-gen-plugin</artifactId>
1350 <version>${odl.mdsal.model.version}</version>
1351 <type>jar</type>
Michael Dürre2c39a4d2020-07-06 06:22:15 +02001352 <scope>compile</scope>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001353 </dependency>
1354 <dependency>
1355 <groupId>org.opendaylight.netconf</groupId>
1356 <artifactId>sal-rest-docgen-maven</artifactId>
1357 <version>${odl.netconf.sal.rest.docgen.version}</version>
1358 <type>jar</type>
1359 </dependency>
1360 </dependencies>
1361 <executions>
1362 <execution>
Singal, Kapil (ks220y)704554f2020-01-20 15:12:43 -05001363 <id>binding</id>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001364 <goals>
1365 <goal>generate-sources</goal>
1366 </goals>
1367 <configuration>
1368 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1369 <codeGenerators>
1370 <generator>
1371 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1372 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1373 </generator>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001374 <!--
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001375 <generator>
1376 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1377 <outputBaseDir>target/swagger</outputBaseDir>
1378 </generator>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +01001379 -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001380 </codeGenerators>
1381 <inspectDependencies>true</inspectDependencies>
1382 </configuration>
1383 </execution>
1384 </executions>
1385 </plugin>
1386 </plugins>
1387 </build>
1388 </profile>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001389 </profiles>
Dan Timoney0f2db3f2018-01-25 16:23:27 -05001390</project>