blob: d432323162b2b614e54cc06999586c970c395cf2 [file] [log] [blame]
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -04001<?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)632a1f32019-09-27 14:09:00 -04003 <modelVersion>4.0.0</modelVersion>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -04004
Singal, Kapil (ks220y)76ea3c62022-05-02 14:13:19 -04005 <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/springboot/spring-boot-setup/src/main/template/pom-template-jdk8.xml
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05006 Any updates needed should be made to that template and not to the generated
7 pom.xml file -->
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -04008 <parent>
9 <groupId>org.springframework.boot</groupId>
10 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoney9c23b602021-08-03 11:28:00 -040011 <version>2.3.12.RELEASE</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040012 <relativePath/>
13 </parent>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040014
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040015 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoney411d1132022-03-31 14:15:13 -040017 <version>2.4.0-SNAPSHOT</version>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040018 <packaging>pom</packaging>
19
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040020 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050021 <description>Root POM to be used in place of spring-boot parent for CCSDK based projects</description>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040022 <url>http://wiki.onap.org</url>
23 <organization>
24 <name>ONAP</name>
25 </organization>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040026
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040027 <issueManagement>
28 <system>JIRA</system>
29 <url>https://jira.onap.org/</url>
30 </issueManagement>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -040031
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040032 <distributionManagement>
33 <repository>
34 <id>ecomp-releases</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050035 <url>${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040036 </repository>
37 <snapshotRepository>
38 <id>ecomp-snapshots</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050039 <url>${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040040 </snapshotRepository>
41 </distributionManagement>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040042
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040043 <properties>
Dan Timoney621888e2020-01-17 09:54:02 -050044 <!-- Sonar properties -->
45 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
46 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
47 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
48 <!-- Default Sonar configuration -->
49 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
50 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
51 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
52
53 <!-- Jacoco properties -->
54 <jacoco.version>0.8.5</jacoco.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040055 <!-- properties from oparent -->
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050056
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040057 <maven.compiler.source>1.8</maven.compiler.source>
58 <maven.compiler.target>1.8</maven.compiler.target>
59 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
60 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040061 <!-- sitePath may be overridden in the inheriting POM if desired -->
62 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Singal, Kapil (ks220y)e14c10b2020-01-07 11:54:24 -050063
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040064 <!-- If following file exist, auto-generation of swagger.json will be done -->
65 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
66 <!-- If following file exist, auto-generation of sdk will be done -->
67 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
68 <!-- end of properties from oparent -->
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040069
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040070 <!-- ONAP repositories -->
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -040071 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040072 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
73 <onap.nexus.port>443</onap.nexus.port>
74 <onap.nexus.protocol>https</onap.nexus.protocol>
75 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
76 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
77 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
78 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
79 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
80 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040081
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040082 <java.version.source>1.8</java.version.source>
83 <java.version.target>1.8</java.version.target>
84 <bundle.plugin.version>2.5.0</bundle.plugin.version>
85 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
86 <features.file>features.xml</features.file>
87 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
88 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
89 <checkstyle.skip>true</checkstyle.skip>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040090
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050091 <!-- logging-analytics versions -->
Claudio D. Gasparini10688642021-05-14 10:33:22 +020092 <logging-analytics.version>1.6.9</logging-analytics.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050093
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040094 <!-- CCSDK component versions -->
Dan Timoneyf92791e2022-04-25 09:14:59 -040095 <ccsdk.cds.version>(1.3.99999,1.4.99999-SNAPSHOT]</ccsdk.cds.version>
96 <ccsdk.features.version>(1.3.99999, 1.4.99999-SNAPSHOT]</ccsdk.features.version>
97 <ccsdk.distribution.version>(1.3.99999, 1.4.99999-SNAPSHOT]</ccsdk.distribution.version>
98 <ccsdk.sli.version>(1.4.99999, 1.5.99999-SNAPSHOT]</ccsdk.sli.version>
Jozsef Csongvaia4d399c2020-12-14 07:39:31 -050099 <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
100 <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
101 <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
102 <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400103
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400104 <!-- Spring versions -->
Dan Timoney9c23b602021-08-03 11:28:00 -0400105 <spring.boot.version>2.3.12.RELEASE</spring.boot.version>
106 <spring.version>5.2.15.RELEASE</spring.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400107
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400108 <!-- Kotlin versions -->
109 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
Brinda Santhb58c8162020-01-31 14:24:27 -0500110 <kotlin.version>1.3.61</kotlin.version>
111 <kotlin.maven.version>1.3.61</kotlin.maven.version>
112 <kotlin.couroutines.version>1.3.3</kotlin.couroutines.version>
113 <kotlinpoet.version>1.5.0</kotlinpoet.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400114 <kroto-plus.version>0.5.0</kroto-plus.version>
Brinda Santhb58c8162020-01-31 14:24:27 -0500115 <nats.version>2.6.6</nats.version>
116 <nats.streaming.version>2.2.3</nats.streaming.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400117 <mockk.version>1.9.3</mockk.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400118
Singal, Kapil (ks220y)dfaa2552020-02-04 09:35:37 -0500119 <!-- Managed dependency versions -->
Dan Timoney4b9f4f22021-03-22 15:09:59 -0400120 <antlr.version>4.8-1</antlr.version>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000121 <commons.lang.version>2.6</commons.lang.version>
Dan Timoney9c23b602021-08-03 11:28:00 -0400122 <apache.httpcomponents.core.version>4.4.14</apache.httpcomponents.core.version>
123 <apache.httpcomponents.client.version>4.5.13</apache.httpcomponents.client.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400124 <derby.version>10.14.2.0</derby.version>
125 <eelf.version>1.0.0</eelf.version>
Brinda Santhd58f23d2019-11-25 17:00:00 -0500126 <grpc.version>1.25.0</grpc.version>
Dan Timoney9c23b602021-08-03 11:28:00 -0400127 <netty-ssl>2.0.39.Final</netty-ssl>
Brinda Santhd58f23d2019-11-25 17:00:00 -0500128 <protobuff.java.version>3.10.0</protobuff.java.version>
129 <protobuff.java.utils.version>3.10.0</protobuff.java.utils.version>
Dan Timoney9c23b602021-08-03 11:28:00 -0400130 <jersey.version>2.30.1</jersey.version>
131 <jersey.client.version>2.30.1</jersey.client.version>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000132 <jettison.version>1.3.8</jettison.version>
Dan Timoney156d2a92022-01-03 11:49:40 -0500133 <log4j.version>2.17.1</log4j.version>
134 <log4j2.version>2.17.1</log4j2.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400135 <logback.version>1.2.3</logback.version>
Dan Timoneyf11f8082021-07-15 12:38:19 -0400136 <mariadb.connector.version>2.7.3</mariadb.connector.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500137 <mariadb4j.version>2.4.0</mariadb4j.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400138 <slf4j.version>1.7.25</slf4j.version>
Dan Timoneybc67c402021-08-05 10:46:18 -0400139 <springfox.version>2.9.2</springfox.version>
Singal, Kapil (ks220y)b5adc452020-02-20 13:53:41 -0500140 <testng.version>6.14.3</testng.version>
Dan Timoney9c23b602021-08-03 11:28:00 -0400141 <tomcat-jdbc.version>9.0.46</tomcat-jdbc.version>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500142 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400143 </properties>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400144
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400145 <dependencyManagement>
146 <dependencies>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500147 <!-- Note: If value in BOM conflicts with value inherited from
148 parent pom, inherited value takes precedence. This seems more like
149 a bug than a feature, but this is how maven 3.6 works -->
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400150 <dependency>
151 <groupId>org.onap.ccsdk.parent</groupId>
152 <artifactId>dependencies-bom</artifactId>
Dan Timoney411d1132022-03-31 14:15:13 -0400153 <version>2.4.0-SNAPSHOT</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400154 <type>pom</type>
155 <scope>import</scope>
156 </dependency>
157 <dependency>
Dan Timoneybc67c402021-08-05 10:46:18 -0400158 <groupId>com.fasterxml.jackson</groupId>
159 <artifactId>jackson-bom</artifactId>
160 <version>2.11.4</version>
161 <type>pom</type>
162 <scope>import</scope>
163 </dependency>
164 <dependency>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400165 <groupId>org.onap.ccsdk.sli.core</groupId>
166 <artifactId>sli-common</artifactId>
167 <version>${ccsdk.sli.core.version}</version>
168 </dependency>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400169 <dependency>
170 <groupId>org.onap.ccsdk.sli.core</groupId>
171 <artifactId>sli-provider</artifactId>
172 <version>${ccsdk.sli.core.version}</version>
173 </dependency>
174 <dependency>
175 <groupId>org.onap.ccsdk.sli.core</groupId>
176 <artifactId>ccsdk-sli</artifactId>
177 <version>${ccsdk.sli.core.version}</version>
178 <type>xml</type>
179 <classifier>features</classifier>
180 </dependency>
181 <dependency>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400182 <groupId>org.onap.ccsdk.sli.core</groupId>
183 <artifactId>dblib-provider</artifactId>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500184 <version>${ccsdk.sli.core.version}</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400185 </dependency>
186 <dependency>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500187 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
188 <artifactId>aai-service-provider</artifactId>
189 <version>${ccsdk.sli.adaptors.version}</version>
190 </dependency>
191 <dependency>
192 <groupId>org.onap.logging-analytics</groupId>
193 <artifactId>logging-slf4j</artifactId>
194 <version>${logging-analytics.version}</version>
195 </dependency>
196 <dependency>
197 <groupId>org.onap.logging-analytics</groupId>
198 <artifactId>logging-filter-base</artifactId>
199 <version>${logging-analytics.version}</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400200 </dependency>
Dan Timoney95395e82021-08-17 11:24:26 -0400201 <dependency>
202 <groupId>org.liquibase</groupId>
203 <artifactId>liquibase-core</artifactId>
204 <version>4.4.2-nordix</version>
Singal, Kapil (ks220y)76ea3c62022-05-02 14:13:19 -0400205 </dependency>
Dan Timoney954da432022-01-03 14:04:29 -0500206 <dependency>
207 <groupId>org.apache.logging.log4j</groupId>
208 <artifactId>log4j-api</artifactId>
209 <version>${log4j2.version}</version>
210 </dependency>
211 <dependency>
212 <groupId>org.apache.logging.log4j</groupId>
213 <artifactId>log4j-core</artifactId>
214 <version>${log4j2.version}</version>
215 </dependency>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400216 </dependencies>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400217 </dependencyManagement>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400218
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400219 <repositories>
220 <repository>
221 <id>onap-public</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500222 <url>${onap.nexus.public-url}</url>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400223 <releases>
224 <enabled>true</enabled>
225 <updatePolicy>never</updatePolicy>
226 </releases>
227 <snapshots>
228 <enabled>true</enabled>
229 <updatePolicy>always</updatePolicy>
230 </snapshots>
231 </repository>
232 <repository>
233 <id>onap-staging</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500234 <url>${onap.nexus.staging-url}</url>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400235 <releases>
236 <enabled>true</enabled>
237 <updatePolicy>never</updatePolicy>
238 </releases>
239 <snapshots>
240 <enabled>true</enabled>
241 <updatePolicy>always</updatePolicy>
242 </snapshots>
243 </repository>
244 <repository>
245 <id>ecomp-release</id>
246 <name>onap-repository-releases</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500247 <url>${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400248 <releases>
249 <enabled>true</enabled>
250 <updatePolicy>never</updatePolicy>
251 </releases>
252 <snapshots>
253 <enabled>false</enabled>
254 </snapshots>
255 </repository>
256 <repository>
257 <id>ecomp-snapshot</id>
258 <name>onap-repository-snapshots</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500259 <url>${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400260 <releases>
261 <enabled>false</enabled>
262 </releases>
263 <snapshots>
264 <enabled>true</enabled>
265 </snapshots>
266 </repository>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400267 </repositories>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400268
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400269 <pluginRepositories>
270 <pluginRepository>
271 <id>onap-public</id>
272 <url>${onap.nexus.public-url}</url>
273 <releases>
274 <enabled>true</enabled>
275 </releases>
276 <snapshots>
277 <enabled>true</enabled>
278 </snapshots>
279 </pluginRepository>
280 <pluginRepository>
281 <id>onap-staging</id>
282 <url>${onap.nexus.staging-url}</url>
283 <releases>
284 <enabled>true</enabled>
285 </releases>
286 <snapshots>
287 <enabled>true</enabled>
288 </snapshots>
289 </pluginRepository>
290 <pluginRepository>
291 <id>onap-snapshot</id>
292 <url>${onap.nexus.snapshot-url}</url>
293 <releases>
294 <enabled>false</enabled>
295 </releases>
296 <snapshots>
297 <enabled>true</enabled>
298 </snapshots>
299 </pluginRepository>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400300 <!-- Black Duck plugin dependencies -->
301 <pluginRepository>
302 <id>JCenter</id>
303 <name>JCenter Repository</name>
304 <url>http://jcenter.bintray.com</url>
305 </pluginRepository>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400306
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400307 <pluginRepository>
308 <id>Restlet</id>
309 <name>Restlet Repository</name>
310 <url>http://maven.restlet.com</url>
311 </pluginRepository>
312 </pluginRepositories>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400313
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400314 <build>
315 <pluginManagement>
316 <plugins>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400317 <!-- Plugins from ONAP oparent -->
318 <plugin>
319 <groupId>org.apache.maven.plugins</groupId>
320 <artifactId>maven-deploy-plugin</artifactId>
321 <!-- This version supports the "deployAtEnd" parameter -->
322 <version>2.8</version>
323 <configuration>
324 <skip/>
Singal, Kapil (ks220y)6fa7fc92021-02-01 16:11:38 -0500325 <deployAtEnd>true</deployAtEnd>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400326 </configuration>
327 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400328 <plugin>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-site-plugin</artifactId>
331 <version>3.6</version>
332 <dependencies>
333 <dependency>
334 <groupId>org.apache.maven.wagon</groupId>
335 <artifactId>wagon-webdav-jackrabbit</artifactId>
336 <version>2.10</version>
337 </dependency>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000338 <dependency>
339 <groupId>org.apache.maven.doxia</groupId>
340 <artifactId>doxia-core</artifactId>
341 <version>1.7</version>
342 </dependency>
343 <dependency>
344 <groupId>org.apache.maven.doxia</groupId>
345 <artifactId>doxia-sink-api</artifactId>
346 <version>1.7</version>
347 </dependency>
348 <dependency>
349 <groupId>org.apache.maven.doxia</groupId>
350 <artifactId>doxia-logging-api</artifactId>
351 <version>1.7</version>
352 </dependency>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400353 </dependencies>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000354 <executions>
355 <execution>
356 <id>attach-descriptor</id>
357 <goals>
358 <goal>attach-descriptor</goal>
359 </goals>
360 </execution>
361 </executions>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400362 </plugin>
363 <plugin>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400364 <groupId>org.apache.maven.plugins</groupId>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000365 <artifactId>maven-checkstyle-plugin</artifactId>
366 <version>2.17</version>
367 <dependencies>
368 <dependency>
369 <groupId>org.onap.oparent</groupId>
370 <artifactId>checkstyle</artifactId>
371 <version>1.1.1</version>
372 </dependency>
373 </dependencies>
374 <executions>
375 <execution>
376 <id>check-license</id>
377 <goals>
378 <goal>check</goal>
379 </goals>
380 <phase>process-sources</phase>
381 <configuration>
382 <configLocation>onap-checkstyle/check-license.xml</configLocation>
383 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
384 <includeResources>false</includeResources>
385 <includeTestSourceDirectory>true</includeTestSourceDirectory>
386 <includeTestResources>false</includeTestResources>
387 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
388 <excludes>
389 </excludes>
390 <failsOnError>false</failsOnError>
391 <consoleOutput>true</consoleOutput>
392 </configuration>
393 </execution>
394 <execution>
395 <id>check-style</id>
396 <goals>
397 <goal>check</goal>
398 </goals>
399 <phase>process-sources</phase>
400 <configuration>
401 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
402 with minor changes -->
403 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500404 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000405 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
406 <includeResources>true</includeResources>
407 <includeTestSourceDirectory>true</includeTestSourceDirectory>
408 <includeTestResources>true</includeTestResources>
409 <excludes>
410 </excludes>
411 <failsOnError>false</failsOnError>
412 <consoleOutput>true</consoleOutput>
413 </configuration>
414 </execution>
415 </executions>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400416 </plugin>
Dan Timoney621888e2020-01-17 09:54:02 -0500417
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400418 <plugin>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-surefire-plugin</artifactId>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000421 <version>2.19.1</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400422 <configuration>
423 <!-- Sets the VM argument line used when unit tests are run. -->
424 <argLine>${surefireArgLine}</argLine>
425 <!-- Excludes integration tests when unit tests are run. -->
426 <excludes>
427 <exclude>**/IT*.java</exclude>
428 </excludes>
429 </configuration>
430 </plugin>
431 <plugin>
432 <groupId>org.apache.maven.plugins</groupId>
433 <artifactId>maven-failsafe-plugin</artifactId>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000434 <version>2.19.1</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400435 <executions>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500436 <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400437 <execution>
438 <id>integration-tests</id>
439 <goals>
440 <goal>integration-test</goal>
441 <goal>verify</goal>
442 </goals>
443 <configuration>
444 <!-- Sets the VM argument line used when integration tests are run. -->
445 <argLine>${failsafeArgLine}</argLine>
446 </configuration>
447 </execution>
448 </executions>
449 </plugin>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000450 <plugin>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-compiler-plugin</artifactId>
453 <version>${maven.compile.plugin.version}</version>
454 <configuration>
455 <source>${java.version.source}</source>
456 <target>${java.version.target}</target>
457 </configuration>
458 </plugin>
459 <plugin>
460 <groupId>org.sonarsource.scanner.maven</groupId>
461 <artifactId>sonar-maven-plugin</artifactId>
462 <version>3.6.0.1398</version>
463 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400464
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400465 <!-- End of plugins from ONAP oparent -->
Singal, Kapil (ks220y)829b0e22020-02-05 11:55:21 -0500466
467 <plugin>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000468 <groupId>org.apache.maven.plugins</groupId>
469 <artifactId>maven-javadoc-plugin</artifactId>
Dan Timoneye816a592020-09-03 08:56:01 -0400470 <version>3.2.0</version>
Singal, Kapil (ks220y)829b0e22020-02-05 11:55:21 -0500471 <configuration>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000472 <additionalDependencies>
473 <additionalDependency>
474 <groupId>org.slf4j</groupId>
475 <artifactId>slf4j-api</artifactId>
476 <version>${slf4j.version}</version>
477 </additionalDependency>
478 <additionalDependency>
479 <groupId>org.antlr</groupId>
480 <artifactId>antlr4</artifactId>
481 <version>${antlr.version}</version>
482 </additionalDependency>
483 <additionalDependency>
484 <groupId>org.antlr</groupId>
485 <artifactId>antlr4-runtime</artifactId>
486 <version>${antlr.version}</version>
487 </additionalDependency>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000488 <additionalDependency>
489 <groupId>com.sun.jersey</groupId>
490 <artifactId>jersey-client</artifactId>
491 <version>${jersey.client.version}</version>
492 </additionalDependency>
493 <additionalDependency>
494 <groupId>com.sun.jersey</groupId>
495 <artifactId>jersey-core</artifactId>
496 <version>${jersey.version}</version>
497 </additionalDependency>
498 <additionalDependency>
499 <groupId>org.apache.httpcomponents</groupId>
500 <artifactId>httpcore-osgi</artifactId>
501 <version>${apache.httpcomponents.core.version}</version>
502 </additionalDependency>
503 <additionalDependency>
504 <groupId>org.apache.httpcomponents</groupId>
505 <artifactId>httpclient-osgi</artifactId>
506 <version>${apache.httpcomponents.client.version}</version>
507 </additionalDependency>
508 <additionalDependency>
509 <groupId>commons-lang</groupId>
510 <artifactId>commons-lang</artifactId>
511 <version>${commons.lang.version}</version>
512 </additionalDependency>
513 </additionalDependencies>
Dan Timoneye816a592020-09-03 08:56:01 -0400514 <failOnError>false</failOnError>
Singal, Kapil (ks220y)829b0e22020-02-05 11:55:21 -0500515 </configuration>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000516 <executions>
517 <execution>
518 <id>aggregate</id>
519 <goals>
520 <goal>aggregate</goal>
521 </goals>
522 <phase>site</phase>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000523 </execution>
524 </executions>
Singal, Kapil (ks220y)829b0e22020-02-05 11:55:21 -0500525 </plugin>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500526 <plugin>
527 <groupId>com.github.ferstl</groupId>
528 <artifactId>depgraph-maven-plugin</artifactId>
529 <version>3.3.0</version>
530 <configuration>
531 <graphFormat>text</graphFormat>
532 <outputFileName>${dependency-list.file}</outputFileName>
533 <outputDirectory>${project.basedir}</outputDirectory>
534 <transitiveExcludes>*</transitiveExcludes>
535 <showVersions>true</showVersions>
Timoney, Dan (dt5972)cc0c96a2019-12-11 10:04:52 -0500536 <showGroupIds>true</showGroupIds>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500537 </configuration>
538 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400539 </plugins>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400540 </pluginManagement>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400541 <plugins>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000542 <!-- Plugins from ONAP oparent -->
Dan Timoney621888e2020-01-17 09:54:02 -0500543 <!-- Jacoco / Sonar -->
544 <plugin>
545 <groupId>org.jacoco</groupId>
546 <artifactId>jacoco-maven-plugin</artifactId>
547 <version>${jacoco.version}</version>
548 <executions>
549 <execution>
550 <id>pre-unit-test</id>
551 <goals>
552 <goal>prepare-agent</goal>
553 </goals>
554 <configuration>
555 <!-- Sets the path to the file which contains the execution data. -->
556 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500557 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500558 <propertyName>surefireArgLine</propertyName>
559 </configuration>
560 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500561 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500562 <execution>
563 <id>post-unit-test</id>
564 <phase>test</phase>
565 <goals>
566 <goal>report</goal>
567 </goals>
568 <configuration>
569 <!-- Sets the path to the file which contains the execution data. -->
570 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
571 <!-- Sets the output directory for the code coverage report. -->
572 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
573 </configuration>
574 </execution>
575 <execution>
576 <id>pre-integration-test</id>
577 <phase>pre-integration-test</phase>
578 <goals>
579 <goal>prepare-agent</goal>
580 </goals>
581 <configuration>
582 <!-- Sets the path to the file which contains the execution data. -->
583 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500584 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500585 <propertyName>failsafeArgLine</propertyName>
586 </configuration>
587 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500588 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500589 <execution>
590 <id>post-integration-test</id>
591 <phase>post-integration-test</phase>
592 <goals>
593 <goal>report</goal>
594 </goals>
595 <configuration>
596 <!-- Sets the path to the file which contains the execution data. -->
597 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
598 <!-- Sets the output directory for the code coverage report. -->
599 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
600 </configuration>
601 </execution>
602 <execution>
603 <id>default-prepare-agent</id>
604 <goals>
605 <goal>prepare-agent</goal>
606 </goals>
607 </execution>
608 <execution>
609 <id>default-report</id>
610 <phase>prepare-package</phase>
611 <goals>
612 <goal>report</goal>
613 </goals>
614 </execution>
615 <execution>
616 <id>default-check</id>
617 <goals>
618 <goal>check</goal>
619 </goals>
620 <configuration>
621 <rules>
622 <rule>
623 <element>PACKAGE</element>
624 <limits>
625 <limit>
626 <counter>COMPLEXITY</counter>
627 <value>COVEREDRATIO</value>
628 <minimum>0.0</minimum>
629 </limit>
630 </limits>
631 </rule>
632 </rules>
633 </configuration>
634 </execution>
635 </executions>
636 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400637 <plugin>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500638 <groupId>org.apache.maven.plugins</groupId>
639 <artifactId>maven-deploy-plugin</artifactId>
640 </plugin>
641 <plugin>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400642 <groupId>org.apache.maven.plugins</groupId>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000643 <artifactId>maven-checkstyle-plugin</artifactId>
644 </plugin>
645 <plugin>
646 <groupId>org.codehaus.mojo</groupId>
647 <artifactId>build-helper-maven-plugin</artifactId>
648 <version>1.12</version>
649 </plugin>
650 <!-- Jacoco / Sonar -->
651 <plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400652 <groupId>org.apache.maven.plugins</groupId>
653 <artifactId>maven-surefire-plugin</artifactId>
654 </plugin>
655 <plugin>
656 <groupId>org.apache.maven.plugins</groupId>
657 <artifactId>maven-failsafe-plugin</artifactId>
658 </plugin>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000659
660 <!-- End of plugins from ONAP oparent -->
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400661 <plugin>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000662 <groupId>org.codehaus.mojo</groupId>
663 <artifactId>properties-maven-plugin</artifactId>
664 <version>1.0.0</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400665 <executions>
666 <execution>
667 <goals>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000668 <goal>set-system-properties</goal>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400669 </goals>
670 <configuration>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000671 <properties>
672 <property>
673 <name>maven.wagon.http.ssl.allowall</name>
674 <value>${ssl.allowall}</value>
675 </property>
676 <property>
677 <name>maven.wagon.http.ssl.insecure</name>
678 <value>${ssl.insecure}</value>
679 </property>
680 </properties>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400681 </configuration>
682 </execution>
683 </executions>
684 </plugin>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000685 <plugin>
686 <groupId>org.codehaus.mojo</groupId>
687 <artifactId>versions-maven-plugin</artifactId>
688 <version>2.5</version>
689 <configuration>
690 <processAllModules>true</processAllModules>
691 </configuration>
692 </plugin>
693 <plugin>
694 <artifactId>maven-scm-plugin</artifactId>
695 <version>1.8.1</version>
696 <configuration>
697 <tag>${project.artifactId}-${project.version}</tag>
698 </configuration>
699 </plugin>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -0400700 <plugin>
701 <groupId>pl.project13.maven</groupId>
702 <artifactId>git-commit-id-plugin</artifactId>
703 <version>4.0.0</version>
704 <configuration>
705 <commitIdGenerationMode>full</commitIdGenerationMode>
706 <includeOnlyProperties>
707 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
708 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
709 </includeOnlyProperties>
710 </configuration>
711 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400712 </plugins>
713 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400714
715 <reporting>
716 <plugins>
717 <plugin>
718 <artifactId>maven-javadoc-plugin</artifactId>
719 <version>2.10.4</version>
720 <configuration>
721 <failOnError>false</failOnError>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000722 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
723 <docletArtifact>
724 <groupId>org.umlgraph</groupId>
725 <artifactId>umlgraph</artifactId>
726 <version>5.6</version>
727 </docletArtifact>
728 <additionalparam>-views</additionalparam>
729 <useStandardDocletOptions>true</useStandardDocletOptions>
730 <excludePackageNames>org.opendaylight.*</excludePackageNames>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400731 </configuration>
732 <reportSets>
733 <reportSet>
734 <reports>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000735 <report>javadoc-no-fork</report>
736 <report>test-javadoc-no-fork</report>
737 </reports>
738 </reportSet>
739 <reportSet>
740 <id>aggregate</id>
741 <reports>
742 <report>aggregate</report>
743 <report>test-aggregate</report>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400744 </reports>
745 </reportSet>
746 </reportSets>
747 </plugin>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000748 <plugin>
749 <groupId>org.apache.maven.plugins</groupId>
750 <artifactId>maven-jxr-plugin</artifactId>
751 <version>2.3</version>
752 <reportSets>
753 <reportSet>
754 <id>aggregate</id>
755 <reports>
756 <report>aggregate</report>
757 <report>test-aggregate</report>
758 </reports>
759 </reportSet>
760 </reportSets>
761 </plugin>
KAPIL SINGAL6531b112020-02-06 01:11:41 +0000762 <plugin>
763 <artifactId>maven-surefire-plugin</artifactId>
764 <version>2.17</version>
765 </plugin>
766 <plugin>
767 <groupId>org.apache.maven.plugins</groupId>
768 <artifactId>maven-changelog-plugin</artifactId>
769 <version>2.3</version>
770 <reportSets>
771 <reportSet>
772 <id>dual-report</id>
773 <configuration>
774 <type>range</type>
775 <range>30</range>
776 </configuration>
777 <reports>
778 <report>changelog</report>
779 <report>file-activity</report>
780 </reports>
781 </reportSet>
782 </reportSets>
783 </plugin>
784 <plugin>
785 <groupId>org.codehaus.mojo</groupId>
786 <artifactId>taglist-maven-plugin</artifactId>
787 <version>2.4</version>
788 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400789 </plugins>
790 </reporting>
791
792 <profiles>
793 <!-- Profiles from ONAP oparent -->
794 <profile>
795 <id>generate-json</id>
796 <activation>
797 <file>
798 <exists>${swagger-properties}</exists>
799 </file>
800 <property>
801 <name>swagger-sdk.generate-json</name>
802 </property>
803 </activation>
804 <build>
805 <plugins>
806 <plugin>
807 <groupId>org.codehaus.mojo</groupId>
808 <artifactId>properties-maven-plugin</artifactId>
809 <version>1.0.0</version>
810 <executions>
811 <execution>
812 <phase>initialize</phase>
813 <goals>
814 <goal>read-project-properties</goal>
815 </goals>
816 <configuration>
817 <files>
818 <file>${basedir}/src/main/resources/swagger.properties</file>
819 </files>
820 </configuration>
821 </execution>
822 </executions>
823 </plugin>
824 <plugin>
825 <groupId>com.github.kongchen</groupId>
826 <artifactId>swagger-maven-plugin</artifactId>
827 <version>3.1.4</version>
828 <configuration>
829 <apiSources>
830 <apiSource>
831 <locations>${api-rest-package}</locations>
832 <schemes>http,https</schemes>
833 <host>${api-host-ip}:${api-host-port}</host>
834 <basePath>${api-base-path}</basePath>
835 <info>
836 <title>${api-title}</title>
837 <version>${api-version}</version>
838 <description>${api-description}</description>
839 <license>
840 <name>${api-license}</name>
841 </license>
842 </info>
843 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
844 </apiSource>
845 </apiSources>
846 </configuration>
847 <executions>
848 <execution>
849 <phase>compile</phase>
850 <goals>
851 <goal>generate</goal>
852 </goals>
853 </execution>
854 </executions>
855 </plugin>
856 <plugin>
857 <groupId>org.apache.maven.plugins</groupId>
858 <artifactId>maven-install-plugin</artifactId>
859 <version>2.3.1</version>
860 <executions>
861 <execution>
862 <id>install-file-id</id>
863 <phase>install</phase>
864 <goals>
865 <goal>install-file</goal>
866 </goals>
867 <configuration>
868 <file>${basedir}/src/main/resources/swagger.json</file>
869 <groupId>${project.groupId}</groupId>
870 <artifactId>${project.artifactId}-swagger-schema</artifactId>
871 <version>${project.version}</version>
872 <packaging>json</packaging>
873 </configuration>
874 </execution>
875 </executions>
876 </plugin>
877 </plugins>
878 </build>
879 </profile>
880 <profile>
881 <id>generate-sdk</id>
882 <activation>
883 <file>
884 <exists>${swagger-json}</exists>
885 </file>
886 <property>
887 <name>swagger-sdk.generate-java-sdk</name>
888 </property>
889 </activation>
890 <build>
891 <plugins>
892 <plugin>
893 <groupId>org.apache.maven.plugins</groupId>
894 <artifactId>maven-antrun-plugin</artifactId>
895 <version>1.8</version>
896 <executions>
897 <execution>
898 <phase>initialize</phase>
899 <id>ant-create-script</id>
900 <configuration>
901 <exportAntProperties>true</exportAntProperties>
902 <tasks>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400903 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
904 <condition property="is_windows" value="true">
905 <os family="windows"/>
906 </condition>
907 <condition property="isLinux" value="true">
908 <os family="unix"/>
909 </condition>
910 <if>
911 <equals arg1="${is_windows}" arg2="true"/>
912 <then>
913 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
914 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
915 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
916 </then>
917 <else>
918 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
919 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
920 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
921 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
922 </else>
923 </if>
924 </tasks>
925 </configuration>
926 <goals>
927 <goal>run</goal>
928 </goals>
929 </execution>
930 </executions>
931 <dependencies>
932 <dependency>
933 <groupId>ant-contrib</groupId>
934 <artifactId>ant-contrib</artifactId>
935 <version>1.0b3</version>
936 <exclusions>
937 <exclusion>
938 <groupId>ant</groupId>
939 <artifactId>ant</artifactId>
940 </exclusion>
941 </exclusions>
942 </dependency>
943 </dependencies>
944 </plugin>
945 <plugin>
946 <groupId>io.swagger</groupId>
947 <artifactId>swagger-codegen-maven-plugin</artifactId>
948 <version>2.2.1</version>
949 <executions>
950 <execution>
951 <goals>
952 <goal>generate</goal>
953 </goals>
954 <configuration>
955 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
956 <output>${project.build.directory}/generated-sources</output>
957 <language>java</language>
958 <configOptions>
959 <dateLibrary>joda</dateLibrary>
960 </configOptions>
961 <library>jersey2</library>
962 <groupId>${project.groupId}</groupId>
963 <artifactId>${project.artifactId}-java-sdk</artifactId>
964 <artifactVersion>${project.version}</artifactVersion>
965 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
966 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
967 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
968 </configuration>
969 </execution>
970 </executions>
971 </plugin>
972 <plugin>
973 <groupId>org.codehaus.mojo</groupId>
974 <artifactId>exec-maven-plugin</artifactId>
975 <version>1.5.0</version>
976 <executions>
977 <execution>
978 <id>swagger-generate-sources</id>
979 <phase>generate-sources</phase>
980 <goals>
981 <goal>exec</goal>
982 </goals>
983 <configuration>
984 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
985 </configuration>
986 </execution>
987 </executions>
988 </plugin>
989 <plugin>
990 <groupId>org.apache.maven.plugins</groupId>
991 <artifactId>maven-clean-plugin</artifactId>
992 <version>3.0.0</version>
993 <executions>
994 <execution>
995 <id>clean-generated-files</id>
996 <phase>generate-sources</phase>
997 <goals>
998 <goal>clean</goal>
999 </goals>
1000 <configuration>
1001 <filesets>
1002 <fileset>
1003 <directory>${project.build.directory}/generated-sources</directory>
1004 </fileset>
1005 </filesets>
1006 </configuration>
1007 </execution>
1008 </executions>
1009 </plugin>
1010 </plugins>
1011 </build>
1012 <dependencies>
1013 <dependency>
1014 <groupId>org.onap.msb.swagger-sdk</groupId>
1015 <artifactId>swagger-sdk</artifactId>
1016 <version>1.0.0</version>
1017 </dependency>
1018 </dependencies>
1019 </profile>
1020 <profile>
1021 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
1022 q = http://memory-alpha.wikia.com/wiki/Q ;)
1023
1024 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
1025 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
1026 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
1027 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1028
1029 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1030 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
1031 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1032 -->
1033 <id>q</id>
1034 <properties>
1035 <skipTests>true</skipTests>
Singal, Kapil (ks220y)44bb42e2020-09-18 11:00:50 -04001036 <skipPush>true</skipPush>
1037 <docker.skip.push>true</docker.skip.push>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001038 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1039 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
1040 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
1041 <skipIT>true</skipIT>
1042 <skipITs>true</skipITs>
1043 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1044 <jacoco.skip>true</jacoco.skip>
1045 <maven.javadoc.skip>true</maven.javadoc.skip>
1046 <maven.source.skip>true</maven.source.skip>
1047 <checkstyle.skip>true</checkstyle.skip>
1048 <findbugs.skip>true</findbugs.skip>
1049 <spotbugs.skip>true</spotbugs.skip>
1050 <pmd.skip>true</pmd.skip>
1051 <cpd.skip>true</cpd.skip>
1052 <maven.site.skip>true</maven.site.skip>
1053 <invoker.skip>true</invoker.skip>
1054 <enforcer.skip>true</enforcer.skip>
1055 <duplicate-finder.skip>true</duplicate-finder.skip>
1056 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1057 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1058 <modernizer.skip>true</modernizer.skip>
Singal, Kapil (ks220y)9c6ac882019-11-20 12:42:58 -05001059 <format.skipExecute>true</format.skipExecute>
1060 <format.skipValidate>true</format.skipValidate>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001061 </properties>
1062 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001063 <profile>
1064 <id>sonar-jacoco-aggregate</id>
1065 <activation>
1066 <property>
1067 <name>onap.jacoco.aggregateFile</name>
1068 </property>
1069 </activation>
1070 <build>
1071 <plugins>
1072 <plugin>
1073 <groupId>org.jacoco</groupId>
1074 <artifactId>jacoco-maven-plugin</artifactId>
1075 <executions>
1076 <execution>
1077 <id>merge</id>
1078 <goals>
1079 <goal>merge</goal>
1080 </goals>
1081 <phase>generate-resources</phase>
1082 <configuration>
1083 <destFile>${onap.jacoco.aggregateFile}</destFile>
1084 <fileSets>
1085 <fileSet>
1086 <directory>${project.basedir}</directory>
1087 <includes>
1088 <include>**/target/code-coverage/*.exec</include>
1089 </includes>
1090 </fileSet>
1091 </fileSets>
1092 </configuration>
1093 </execution>
1094 </executions>
1095 </plugin>
1096 </plugins>
1097 </build>
1098 </profile>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001099 <!-- End of profiles from ONAP oparent -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001100 </profiles>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -04001101</project>