blob: 3ab11e6842d5c2a8dcb78ee9bcef7de24d820217 [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)632a1f32019-09-27 14:09:00 -04005 <parent>
6 <groupId>org.springframework.boot</groupId>
7 <artifactId>spring-boot-starter-parent</artifactId>
Brinda Santhb58c8162020-01-31 14:24:27 -05008 <version>2.2.4.RELEASE</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -04009 <relativePath/>
10 </parent>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040011
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040012 <groupId>org.onap.ccsdk.parent</groupId>
13 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoneyd5fccc72020-01-23 14:06:18 -050014 <version>1.5.2-SNAPSHOT</version>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040015 <packaging>pom</packaging>
16
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040017 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
18 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040019 <url>http://wiki.onap.org</url>
20 <organization>
21 <name>ONAP</name>
22 </organization>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040023
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040024 <issueManagement>
25 <system>JIRA</system>
26 <url>https://jira.onap.org/</url>
27 </issueManagement>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -040028 <distributionManagement>
29 <repository>
30 <id>ecomp-releases</id>
31 <url>https://nexus.onap.org/content/repositories/releases</url>
32 </repository>
33 <snapshotRepository>
34 <id>ecomp-snapshots</id>
35 <url>https://nexus.onap.org/content/repositories/snapshots</url>
36 </snapshotRepository>
37 </distributionManagement>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040038
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040039 <properties>
Dan Timoney621888e2020-01-17 09:54:02 -050040 <!-- Sonar properties -->
41 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
42 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
43 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
44 <!-- Default Sonar configuration -->
45 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
46 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
47 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
48
49 <!-- Jacoco properties -->
50 <jacoco.version>0.8.5</jacoco.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040051 <!-- properties from oparent -->
52 <maven.compiler.source>1.8</maven.compiler.source>
53 <maven.compiler.target>1.8</maven.compiler.target>
54 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
56 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
57 <!-- sitePath may be overridden in the inheriting POM if desired -->
58 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Singal, Kapil (ks220y)e14c10b2020-01-07 11:54:24 -050059
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040060 <!-- If following file exist, auto-generation of swagger.json will be done -->
61 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
62 <!-- If following file exist, auto-generation of sdk will be done -->
63 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
64 <!-- end of properties from oparent -->
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040065
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040066 <!-- ONAP repositories -->
67 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
68 <onap.nexus.port>443</onap.nexus.port>
69 <onap.nexus.protocol>https</onap.nexus.protocol>
70 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
71 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
72 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
73 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
74 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
75 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040076
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040077 <java.version.source>1.8</java.version.source>
78 <java.version.target>1.8</java.version.target>
79 <bundle.plugin.version>2.5.0</bundle.plugin.version>
80 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
81 <features.file>features.xml</features.file>
82 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
83 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
84 <checkstyle.skip>true</checkstyle.skip>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040085
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040086 <!-- CCSDK component versions -->
Dan Timoneyd93c1302020-01-30 13:29:02 -050087 <ccsdk.cds.version>0.7.1-SNAPSHOT</ccsdk.cds.version>
88 <ccsdk.sli.core.version>0.7.1-SNAPSHOT</ccsdk.sli.core.version>
89 <ccsdk.sli.adaptors.version>0.7.1-SNAPSHOT</ccsdk.sli.adaptors.version>
90 <ccsdk.sli.northbound.version>0.7.1-SNAPSHOT</ccsdk.sli.northbound.version>
91 <ccsdk.sli.plugins.version>0.7.1-SNAPSHOT</ccsdk.sli.plugins.version>
92 <ccsdk.distribution.version>0.7.1-SNAPSHOT</ccsdk.distribution.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040093 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
94 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
95 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
96 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
97 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040098
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040099 <!-- Spring versions -->
Brinda Santhb58c8162020-01-31 14:24:27 -0500100 <spring.boot.version>2.2.4.RELEASE</spring.boot.version>
101 <spring.version>5.2.3.RELEASE</spring.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400102
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400103 <!-- Kotlin versions -->
104 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
Brinda Santhb58c8162020-01-31 14:24:27 -0500105 <kotlin.version>1.3.61</kotlin.version>
106 <kotlin.maven.version>1.3.61</kotlin.maven.version>
107 <kotlin.couroutines.version>1.3.3</kotlin.couroutines.version>
108 <kotlinpoet.version>1.5.0</kotlinpoet.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400109 <kroto-plus.version>0.5.0</kroto-plus.version>
Brinda Santhb58c8162020-01-31 14:24:27 -0500110 <nats.version>2.6.6</nats.version>
111 <nats.streaming.version>2.2.3</nats.streaming.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400112 <mockk.version>1.9.3</mockk.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400113
Singal, Kapil (ks220y)dfaa2552020-02-04 09:35:37 -0500114 <!-- Managed dependency versions -->
115 <antlr.version>4.7.2</antlr.version>
116 <commons.lang.version>2.6</commons.lang.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500117 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
118 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400119 <derby.version>10.14.2.0</derby.version>
120 <eelf.version>1.0.0</eelf.version>
Brinda Santhd58f23d2019-11-25 17:00:00 -0500121 <grpc.version>1.25.0</grpc.version>
122 <protobuff.java.version>3.10.0</protobuff.java.version>
123 <protobuff.java.utils.version>3.10.0</protobuff.java.utils.version>
124 <atomix.version>3.1.5</atomix.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400125 <jersey.version>2.25.1</jersey.version>
Singal, Kapil (ks220y)dfaa2552020-02-04 09:35:37 -0500126 <jersey.client.version>2.25.1</jersey.client.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400127 <jettison.version>1.3.8</jettison.version>
128 <junit.version>4.12</junit.version>
129 <logback.version>1.2.3</logback.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500130 <mariadb.connector.version>2.4.4</mariadb.connector.version>
131 <mariadb4j.version>2.4.0</mariadb4j.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400132 <slf4j.version>1.7.25</slf4j.version>
133 <testng.version>6.11</testng.version>
Rich Tabedzkid163dcb2019-11-04 15:08:16 -0500134 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500135 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400136 </properties>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400137
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400138 <dependencyManagement>
139 <dependencies>
140 <dependency>
141 <groupId>org.onap.ccsdk.parent</groupId>
142 <artifactId>dependencies-bom</artifactId>
Dan Timoneyd5fccc72020-01-23 14:06:18 -0500143 <version>1.5.2-SNAPSHOT</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400144 <type>pom</type>
145 <scope>import</scope>
146 </dependency>
147 <dependency>
148 <groupId>org.onap.ccsdk.sli.core</groupId>
149 <artifactId>sli-common</artifactId>
150 <version>${ccsdk.sli.core.version}</version>
151 </dependency>
Brinda Santh40ff6f42019-07-26 10:00:10 -0400152
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400153 <dependency>
154 <groupId>org.onap.ccsdk.sli.core</groupId>
155 <artifactId>sli-provider</artifactId>
156 <version>${ccsdk.sli.core.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>org.onap.ccsdk.sli.core</groupId>
160 <artifactId>ccsdk-sli</artifactId>
161 <version>${ccsdk.sli.core.version}</version>
162 <type>xml</type>
163 <classifier>features</classifier>
164 </dependency>
165 <dependency>
166 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
167 <artifactId>aai-service-provider</artifactId>
168 <version>${sdnctl.aai.service.version}</version>
169 </dependency>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400170
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400171 <dependency>
172 <groupId>org.onap.ccsdk.sli.core</groupId>
173 <artifactId>dblib-provider</artifactId>
174 <version>${sdnctl.dblib.version}</version>
175 </dependency>
176 <dependency>
177 <groupId>junit</groupId>
178 <artifactId>junit</artifactId>
179 <version>${junit.version}</version>
180 <scope>test</scope>
181 </dependency>
182 </dependencies>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400183
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400184 </dependencyManagement>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400185
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400186 <repositories>
187 <repository>
188 <id>onap-public</id>
189 <url>https://nexus.onap.org/content/groups/public</url>
190 <releases>
191 <enabled>true</enabled>
192 <updatePolicy>never</updatePolicy>
193 </releases>
194 <snapshots>
195 <enabled>true</enabled>
196 <updatePolicy>always</updatePolicy>
197 </snapshots>
198 </repository>
199 <repository>
200 <id>onap-staging</id>
201 <url>https://nexus.onap.org/content/groups/staging</url>
202 <releases>
203 <enabled>true</enabled>
204 <updatePolicy>never</updatePolicy>
205 </releases>
206 <snapshots>
207 <enabled>true</enabled>
208 <updatePolicy>always</updatePolicy>
209 </snapshots>
210 </repository>
211 <repository>
212 <id>ecomp-release</id>
213 <name>onap-repository-releases</name>
214 <url>https://nexus.onap.org/content/repositories/releases</url>
215 <releases>
216 <enabled>true</enabled>
217 <updatePolicy>never</updatePolicy>
218 </releases>
219 <snapshots>
220 <enabled>false</enabled>
221 </snapshots>
222 </repository>
223 <repository>
224 <id>ecomp-snapshot</id>
225 <name>onap-repository-snapshots</name>
226 <url>https://nexus.onap.org/content/repositories/snapshots</url>
227 <releases>
228 <enabled>false</enabled>
229 </releases>
230 <snapshots>
231 <enabled>true</enabled>
232 </snapshots>
233 </repository>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400234 </repositories>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400235 <pluginRepositories>
236 <pluginRepository>
237 <id>onap-public</id>
238 <url>${onap.nexus.public-url}</url>
239 <releases>
240 <enabled>true</enabled>
241 </releases>
242 <snapshots>
243 <enabled>true</enabled>
244 </snapshots>
245 </pluginRepository>
246 <pluginRepository>
247 <id>onap-staging</id>
248 <url>${onap.nexus.staging-url}</url>
249 <releases>
250 <enabled>true</enabled>
251 </releases>
252 <snapshots>
253 <enabled>true</enabled>
254 </snapshots>
255 </pluginRepository>
256 <pluginRepository>
257 <id>onap-snapshot</id>
258 <url>${onap.nexus.snapshot-url}</url>
259 <releases>
260 <enabled>false</enabled>
261 </releases>
262 <snapshots>
263 <enabled>true</enabled>
264 </snapshots>
265 </pluginRepository>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400266 <!-- Black Duck plugin dependencies -->
267 <pluginRepository>
268 <id>JCenter</id>
269 <name>JCenter Repository</name>
270 <url>http://jcenter.bintray.com</url>
271 </pluginRepository>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400272
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400273 <pluginRepository>
274 <id>Restlet</id>
275 <name>Restlet Repository</name>
276 <url>http://maven.restlet.com</url>
277 </pluginRepository>
278 </pluginRepositories>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400279
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400280 <build>
281 <pluginManagement>
282 <plugins>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400283
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400284 <!-- Plugins from ONAP oparent -->
285 <plugin>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-deploy-plugin</artifactId>
288 <!-- This version supports the "deployAtEnd" parameter -->
289 <version>2.8</version>
290 <configuration>
291 <skip/>
292 </configuration>
293 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400294
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-site-plugin</artifactId>
298 <version>3.6</version>
299 <dependencies>
300 <dependency>
301 <groupId>org.apache.maven.wagon</groupId>
302 <artifactId>wagon-webdav-jackrabbit</artifactId>
303 <version>2.10</version>
304 </dependency>
305 <dependency>
306 <groupId>org.apache.maven.doxia</groupId>
307 <artifactId>doxia-core</artifactId>
308 <version>1.7</version>
309 </dependency>
310 <dependency>
311 <groupId>org.apache.maven.doxia</groupId>
312 <artifactId>doxia-sink-api</artifactId>
313 <version>1.7</version>
314 </dependency>
315 <dependency>
316 <groupId>org.apache.maven.doxia</groupId>
317 <artifactId>doxia-logging-api</artifactId>
318 <version>1.7</version>
319 </dependency>
320 </dependencies>
321 <executions>
322 <execution>
323 <id>attach-descriptor</id>
324 <goals>
325 <goal>attach-descriptor</goal>
326 </goals>
327 </execution>
328 </executions>
329 </plugin>
330 <plugin>
331 <artifactId>maven-checkstyle-plugin</artifactId>
332 <version>2.17</version>
333 <dependencies>
334 <dependency>
335 <groupId>org.onap.oparent</groupId>
336 <artifactId>checkstyle</artifactId>
337 <version>1.1.1</version>
338 </dependency>
339 </dependencies>
340 <executions>
341 <execution>
342 <id>check-license</id>
343 <goals>
344 <goal>check</goal>
345 </goals>
346 <phase>process-sources</phase>
347 <configuration>
348 <configLocation>onap-checkstyle/check-license.xml</configLocation>
349 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
350 <includeResources>false</includeResources>
351 <includeTestSourceDirectory>true</includeTestSourceDirectory>
352 <includeTestResources>false</includeTestResources>
353 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
354 <excludes>
355 </excludes>
356 <failsOnError>false</failsOnError>
357 <consoleOutput>true</consoleOutput>
358 </configuration>
359 </execution>
360 <execution>
361 <id>check-style</id>
362 <goals>
363 <goal>check</goal>
364 </goals>
365 <phase>process-sources</phase>
366 <configuration>
367 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
368 with minor changes -->
369 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
370 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
371 sources directory -->
372 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
373 <includeResources>true</includeResources>
374 <includeTestSourceDirectory>true</includeTestSourceDirectory>
375 <includeTestResources>true</includeTestResources>
376 <excludes>
377 </excludes>
378 <failsOnError>false</failsOnError>
379 <consoleOutput>true</consoleOutput>
380 </configuration>
381 </execution>
382 </executions>
383 </plugin>
Dan Timoney621888e2020-01-17 09:54:02 -0500384
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400385 <plugin>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-surefire-plugin</artifactId>
388 <version>2.19.1</version>
389 <configuration>
390 <!-- Sets the VM argument line used when unit tests are run. -->
391 <argLine>${surefireArgLine}</argLine>
392 <!-- Excludes integration tests when unit tests are run. -->
393 <excludes>
394 <exclude>**/IT*.java</exclude>
395 </excludes>
396 </configuration>
397 </plugin>
398 <plugin>
399 <groupId>org.apache.maven.plugins</groupId>
400 <artifactId>maven-failsafe-plugin</artifactId>
401 <version>2.19.1</version>
402 <executions>
403 <!-- Ensures that both integration-test and verify goals of the Failsafe
404 Maven plugin are executed. -->
405 <execution>
406 <id>integration-tests</id>
407 <goals>
408 <goal>integration-test</goal>
409 <goal>verify</goal>
410 </goals>
411 <configuration>
412 <!-- Sets the VM argument line used when integration tests are run. -->
413 <argLine>${failsafeArgLine}</argLine>
414 </configuration>
415 </execution>
416 </executions>
417 </plugin>
418 <plugin>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-compiler-plugin</artifactId>
421 <version>${maven.compile.plugin.version}</version>
422 <configuration>
423 <source>${java.version.source}</source>
424 <target>${java.version.target}</target>
425 </configuration>
426 </plugin>
427 <plugin>
428 <groupId>org.sonarsource.scanner.maven</groupId>
429 <artifactId>sonar-maven-plugin</artifactId>
Singal, Kapil (ks220y)03800a72019-11-29 11:19:35 -0500430 <version>3.6.0.1398</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400431 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400432
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400433 <!-- End of plugins from ONAP oparent -->
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400434
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400435 <plugin>
436 <groupId>org.apache.maven.plugins</groupId>
437 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)dfaa2552020-02-04 09:35:37 -0500438 <version>2.10.4</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400439 <configuration>
440 <additionalDependencies>
441 <additionalDependency>
442 <groupId>org.slf4j</groupId>
443 <artifactId>slf4j-api</artifactId>
444 <version>${slf4j.version}</version>
445 </additionalDependency>
446 <additionalDependency>
447 <groupId>org.antlr</groupId>
448 <artifactId>antlr4</artifactId>
449 <version>${antlr.version}</version>
450 </additionalDependency>
451 <additionalDependency>
452 <groupId>org.antlr</groupId>
453 <artifactId>antlr4-runtime</artifactId>
454 <version>${antlr.version}</version>
455 </additionalDependency>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400456
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400457 <additionalDependency>
458 <groupId>com.sun.jersey</groupId>
459 <artifactId>jersey-client</artifactId>
460 <version>${jersey.client.version}</version>
461 </additionalDependency>
462 <additionalDependency>
463 <groupId>com.sun.jersey</groupId>
464 <artifactId>jersey-core</artifactId>
465 <version>${jersey.version}</version>
466 </additionalDependency>
467 <additionalDependency>
468 <groupId>org.apache.httpcomponents</groupId>
469 <artifactId>httpcore-osgi</artifactId>
470 <version>${apache.httpcomponents.core.version}</version>
471 </additionalDependency>
472 <additionalDependency>
473 <groupId>org.apache.httpcomponents</groupId>
474 <artifactId>httpclient-osgi</artifactId>
475 <version>${apache.httpcomponents.client.version}</version>
476 </additionalDependency>
477 <additionalDependency>
478 <groupId>commons-lang</groupId>
479 <artifactId>commons-lang</artifactId>
480 <version>${commons.lang.version}</version>
481 </additionalDependency>
482 </additionalDependencies>
483 </configuration>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400484
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400485 <executions>
486 <execution>
487 <id>aggregate</id>
488 <goals>
489 <goal>aggregate</goal>
490 </goals>
491 <phase>site</phase>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400492
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400493 </execution>
494 </executions>
495 </plugin>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500496 <plugin>
497 <groupId>com.github.ferstl</groupId>
498 <artifactId>depgraph-maven-plugin</artifactId>
499 <version>3.3.0</version>
500 <configuration>
501 <graphFormat>text</graphFormat>
502 <outputFileName>${dependency-list.file}</outputFileName>
503 <outputDirectory>${project.basedir}</outputDirectory>
504 <transitiveExcludes>*</transitiveExcludes>
505 <showVersions>true</showVersions>
Timoney, Dan (dt5972)cc0c96a2019-12-11 10:04:52 -0500506 <showGroupIds>true</showGroupIds>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500507 </configuration>
508 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400509 </plugins>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400510
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400511 </pluginManagement>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400512 <plugins>
513 <!-- Plugins from ONAP oparent -->
Dan Timoney621888e2020-01-17 09:54:02 -0500514 <!-- Jacoco / Sonar -->
515 <plugin>
516 <groupId>org.jacoco</groupId>
517 <artifactId>jacoco-maven-plugin</artifactId>
518 <version>${jacoco.version}</version>
519 <executions>
520 <execution>
521 <id>pre-unit-test</id>
522 <goals>
523 <goal>prepare-agent</goal>
524 </goals>
525 <configuration>
526 <!-- Sets the path to the file which contains the execution data. -->
527 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
528 <!-- Sets the name of the property containing the settings for JaCoCo
529 runtime agent. -->
530 <propertyName>surefireArgLine</propertyName>
531 </configuration>
532 </execution>
533 <!-- Ensures that the code coverage report for unit tests is created
534 after unit tests have been run. -->
535 <execution>
536 <id>post-unit-test</id>
537 <phase>test</phase>
538 <goals>
539 <goal>report</goal>
540 </goals>
541 <configuration>
542 <!-- Sets the path to the file which contains the execution data. -->
543 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
544 <!-- Sets the output directory for the code coverage report. -->
545 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
546 </configuration>
547 </execution>
548 <execution>
549 <id>pre-integration-test</id>
550 <phase>pre-integration-test</phase>
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-it.exec</destFile>
557 <!-- Sets the name of the property containing the settings for JaCoCo
558 runtime agent. -->
559 <propertyName>failsafeArgLine</propertyName>
560 </configuration>
561 </execution>
562 <!-- Ensures that the code coverage report for integration tests after
563 integration tests have been run. -->
564 <execution>
565 <id>post-integration-test</id>
566 <phase>post-integration-test</phase>
567 <goals>
568 <goal>report</goal>
569 </goals>
570 <configuration>
571 <!-- Sets the path to the file which contains the execution data. -->
572 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
573 <!-- Sets the output directory for the code coverage report. -->
574 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
575 </configuration>
576 </execution>
577 <execution>
578 <id>default-prepare-agent</id>
579 <goals>
580 <goal>prepare-agent</goal>
581 </goals>
582 </execution>
583 <execution>
584 <id>default-report</id>
585 <phase>prepare-package</phase>
586 <goals>
587 <goal>report</goal>
588 </goals>
589 </execution>
590 <execution>
591 <id>default-check</id>
592 <goals>
593 <goal>check</goal>
594 </goals>
595 <configuration>
596 <rules>
597 <rule>
598 <element>PACKAGE</element>
599 <limits>
600 <limit>
601 <counter>COMPLEXITY</counter>
602 <value>COVEREDRATIO</value>
603 <minimum>0.0</minimum>
604 </limit>
605 </limits>
606 </rule>
607 </rules>
608 </configuration>
609 </execution>
610 </executions>
611 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400612 <plugin>
613 <artifactId>maven-checkstyle-plugin</artifactId>
614 </plugin>
615 <plugin>
616 <groupId>org.codehaus.mojo</groupId>
617 <artifactId>build-helper-maven-plugin</artifactId>
618 <version>1.12</version>
619 </plugin>
620 <!-- Jacoco / Sonar -->
621 <plugin>
622 <groupId>org.jacoco</groupId>
623 <artifactId>jacoco-maven-plugin</artifactId>
624 </plugin>
625 <plugin>
626 <groupId>org.apache.maven.plugins</groupId>
627 <artifactId>maven-surefire-plugin</artifactId>
628 </plugin>
629 <plugin>
630 <groupId>org.apache.maven.plugins</groupId>
631 <artifactId>maven-failsafe-plugin</artifactId>
632 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400633
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400634 <!-- End of plugins from ONAP oparent -->
635 <plugin>
636 <groupId>org.codehaus.mojo</groupId>
637 <artifactId>properties-maven-plugin</artifactId>
638 <version>1.0.0</version>
639 <executions>
640 <execution>
641 <goals>
642 <goal>set-system-properties</goal>
643 </goals>
644 <configuration>
645 <properties>
646 <property>
647 <name>maven.wagon.http.ssl.allowall</name>
648 <value>${ssl.allowall}</value>
649 </property>
650 <property>
651 <name>maven.wagon.http.ssl.insecure</name>
652 <value>${ssl.insecure}</value>
653 </property>
654 </properties>
655 </configuration>
656 </execution>
657 </executions>
658 </plugin>
659 <plugin>
660 <groupId>org.codehaus.mojo</groupId>
661 <artifactId>versions-maven-plugin</artifactId>
662 <version>2.5</version>
663 <configuration>
664 <processAllModules>true</processAllModules>
665 </configuration>
666 </plugin>
667 <plugin>
668 <artifactId>maven-scm-plugin</artifactId>
669 <version>1.8.1</version>
670 <configuration>
671 <tag>${project.artifactId}-${project.version}</tag>
672 </configuration>
673 </plugin>
674 </plugins>
675 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400676
677 <reporting>
678 <plugins>
679 <plugin>
680 <artifactId>maven-javadoc-plugin</artifactId>
681 <version>2.10.4</version>
682 <configuration>
683 <failOnError>false</failOnError>
684 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
685 <docletArtifact>
686 <groupId>org.umlgraph</groupId>
687 <artifactId>umlgraph</artifactId>
688 <version>5.6</version>
689 </docletArtifact>
690 <additionalparam>-views</additionalparam>
691 <useStandardDocletOptions>true</useStandardDocletOptions>
692 <excludePackageNames>org.opendaylight.*</excludePackageNames>
693 </configuration>
694 <reportSets>
695 <reportSet>
696 <reports>
697 <report>javadoc-no-fork</report>
698 <report>test-javadoc-no-fork</report>
699 </reports>
700 </reportSet>
701 <reportSet>
702 <id>aggregate</id>
703 <reports>
704 <report>aggregate</report>
705 <report>test-aggregate</report>
706 </reports>
707 </reportSet>
708 </reportSets>
709 </plugin>
710 <plugin>
711 <groupId>org.apache.maven.plugins</groupId>
712 <artifactId>maven-jxr-plugin</artifactId>
713 <version>2.3</version>
714 <reportSets>
715 <reportSet>
716 <id>aggregate</id>
717 <reports>
718 <report>aggregate</report>
719 <report>test-aggregate</report>
720 </reports>
721 </reportSet>
722 </reportSets>
723 </plugin>
724
725 <plugin>
726 <artifactId>maven-surefire-plugin</artifactId>
727 <version>2.17</version>
728 </plugin>
729 <plugin>
730 <groupId>org.apache.maven.plugins</groupId>
731 <artifactId>maven-changelog-plugin</artifactId>
732 <version>2.3</version>
733 <reportSets>
734 <reportSet>
735 <id>dual-report</id>
736 <configuration>
737 <type>range</type>
738 <range>30</range>
739 </configuration>
740 <reports>
741 <report>changelog</report>
742 <report>file-activity</report>
743 </reports>
744 </reportSet>
745 </reportSets>
746 </plugin>
747 <plugin>
748 <groupId>org.codehaus.mojo</groupId>
749 <artifactId>taglist-maven-plugin</artifactId>
750 <version>2.4</version>
751 </plugin>
752 </plugins>
753 </reporting>
754
755 <profiles>
756 <!-- Profiles from ONAP oparent -->
757 <profile>
758 <id>generate-json</id>
759 <activation>
760 <file>
761 <exists>${swagger-properties}</exists>
762 </file>
763 <property>
764 <name>swagger-sdk.generate-json</name>
765 </property>
766 </activation>
767 <build>
768 <plugins>
769 <plugin>
770 <groupId>org.codehaus.mojo</groupId>
771 <artifactId>properties-maven-plugin</artifactId>
772 <version>1.0.0</version>
773 <executions>
774 <execution>
775 <phase>initialize</phase>
776 <goals>
777 <goal>read-project-properties</goal>
778 </goals>
779 <configuration>
780 <files>
781 <file>${basedir}/src/main/resources/swagger.properties</file>
782 </files>
783 </configuration>
784 </execution>
785 </executions>
786 </plugin>
787 <plugin>
788 <groupId>com.github.kongchen</groupId>
789 <artifactId>swagger-maven-plugin</artifactId>
790 <version>3.1.4</version>
791 <configuration>
792 <apiSources>
793 <apiSource>
794 <locations>${api-rest-package}</locations>
795 <schemes>http,https</schemes>
796 <host>${api-host-ip}:${api-host-port}</host>
797 <basePath>${api-base-path}</basePath>
798 <info>
799 <title>${api-title}</title>
800 <version>${api-version}</version>
801 <description>${api-description}</description>
802 <license>
803 <name>${api-license}</name>
804 </license>
805 </info>
806 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
807 </apiSource>
808 </apiSources>
809 </configuration>
810 <executions>
811 <execution>
812 <phase>compile</phase>
813 <goals>
814 <goal>generate</goal>
815 </goals>
816 </execution>
817 </executions>
818 </plugin>
819 <plugin>
820 <groupId>org.apache.maven.plugins</groupId>
821 <artifactId>maven-install-plugin</artifactId>
822 <version>2.3.1</version>
823 <executions>
824 <execution>
825 <id>install-file-id</id>
826 <phase>install</phase>
827 <goals>
828 <goal>install-file</goal>
829 </goals>
830 <configuration>
831 <file>${basedir}/src/main/resources/swagger.json</file>
832 <groupId>${project.groupId}</groupId>
833 <artifactId>${project.artifactId}-swagger-schema</artifactId>
834 <version>${project.version}</version>
835 <packaging>json</packaging>
836 </configuration>
837 </execution>
838 </executions>
839 </plugin>
840 </plugins>
841 </build>
842 </profile>
843 <profile>
844 <id>generate-sdk</id>
845 <activation>
846 <file>
847 <exists>${swagger-json}</exists>
848 </file>
849 <property>
850 <name>swagger-sdk.generate-java-sdk</name>
851 </property>
852 </activation>
853 <build>
854 <plugins>
855 <plugin>
856 <groupId>org.apache.maven.plugins</groupId>
857 <artifactId>maven-antrun-plugin</artifactId>
858 <version>1.8</version>
859 <executions>
860 <execution>
861 <phase>initialize</phase>
862 <id>ant-create-script</id>
863 <configuration>
864 <exportAntProperties>true</exportAntProperties>
865 <tasks>
866
867 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
868 <condition property="is_windows" value="true">
869 <os family="windows"/>
870 </condition>
871 <condition property="isLinux" value="true">
872 <os family="unix"/>
873 </condition>
874 <if>
875 <equals arg1="${is_windows}" arg2="true"/>
876 <then>
877 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
878 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
879 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
880 </then>
881 <else>
882 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
883 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
884 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
885 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
886 </else>
887 </if>
888 </tasks>
889 </configuration>
890 <goals>
891 <goal>run</goal>
892 </goals>
893 </execution>
894 </executions>
895 <dependencies>
896 <dependency>
897 <groupId>ant-contrib</groupId>
898 <artifactId>ant-contrib</artifactId>
899 <version>1.0b3</version>
900 <exclusions>
901 <exclusion>
902 <groupId>ant</groupId>
903 <artifactId>ant</artifactId>
904 </exclusion>
905 </exclusions>
906 </dependency>
907 </dependencies>
908 </plugin>
909 <plugin>
910 <groupId>io.swagger</groupId>
911 <artifactId>swagger-codegen-maven-plugin</artifactId>
912 <version>2.2.1</version>
913 <executions>
914 <execution>
915 <goals>
916 <goal>generate</goal>
917 </goals>
918 <configuration>
919 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
920 <output>${project.build.directory}/generated-sources</output>
921 <language>java</language>
922 <configOptions>
923 <dateLibrary>joda</dateLibrary>
924 </configOptions>
925 <library>jersey2</library>
926 <groupId>${project.groupId}</groupId>
927 <artifactId>${project.artifactId}-java-sdk</artifactId>
928 <artifactVersion>${project.version}</artifactVersion>
929 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
930 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
931 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
932 </configuration>
933 </execution>
934 </executions>
935 </plugin>
936 <plugin>
937 <groupId>org.codehaus.mojo</groupId>
938 <artifactId>exec-maven-plugin</artifactId>
939 <version>1.5.0</version>
940 <executions>
941 <execution>
942 <id>swagger-generate-sources</id>
943 <phase>generate-sources</phase>
944 <goals>
945 <goal>exec</goal>
946 </goals>
947 <configuration>
948 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
949 </configuration>
950 </execution>
951 </executions>
952 </plugin>
953 <plugin>
954 <groupId>org.apache.maven.plugins</groupId>
955 <artifactId>maven-clean-plugin</artifactId>
956 <version>3.0.0</version>
957 <executions>
958 <execution>
959 <id>clean-generated-files</id>
960 <phase>generate-sources</phase>
961 <goals>
962 <goal>clean</goal>
963 </goals>
964 <configuration>
965 <filesets>
966 <fileset>
967 <directory>${project.build.directory}/generated-sources</directory>
968 </fileset>
969 </filesets>
970 </configuration>
971 </execution>
972 </executions>
973 </plugin>
974 </plugins>
975 </build>
976 <dependencies>
977 <dependency>
978 <groupId>org.onap.msb.swagger-sdk</groupId>
979 <artifactId>swagger-sdk</artifactId>
980 <version>1.0.0</version>
981 </dependency>
982 </dependencies>
983 </profile>
984 <profile>
985 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
986 q = http://memory-alpha.wikia.com/wiki/Q ;)
987
988 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
989 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
990 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
991 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
992
993 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
994 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
995 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
996 -->
997 <id>q</id>
998 <properties>
999 <skipTests>true</skipTests>
1000 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1001 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
1002 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
1003 <skipIT>true</skipIT>
1004 <skipITs>true</skipITs>
1005 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1006 <jacoco.skip>true</jacoco.skip>
1007 <maven.javadoc.skip>true</maven.javadoc.skip>
1008 <maven.source.skip>true</maven.source.skip>
1009 <checkstyle.skip>true</checkstyle.skip>
1010 <findbugs.skip>true</findbugs.skip>
1011 <spotbugs.skip>true</spotbugs.skip>
1012 <pmd.skip>true</pmd.skip>
1013 <cpd.skip>true</cpd.skip>
1014 <maven.site.skip>true</maven.site.skip>
1015 <invoker.skip>true</invoker.skip>
1016 <enforcer.skip>true</enforcer.skip>
1017 <duplicate-finder.skip>true</duplicate-finder.skip>
1018 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1019 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1020 <modernizer.skip>true</modernizer.skip>
Singal, Kapil (ks220y)9c6ac882019-11-20 12:42:58 -05001021 <format.skipExecute>true</format.skipExecute>
1022 <format.skipValidate>true</format.skipValidate>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001023 </properties>
1024 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001025 <profile>
1026 <id>sonar-jacoco-aggregate</id>
1027 <activation>
1028 <property>
1029 <name>onap.jacoco.aggregateFile</name>
1030 </property>
1031 </activation>
1032 <build>
1033 <plugins>
1034 <plugin>
1035 <groupId>org.jacoco</groupId>
1036 <artifactId>jacoco-maven-plugin</artifactId>
1037 <executions>
1038 <execution>
1039 <id>merge</id>
1040 <goals>
1041 <goal>merge</goal>
1042 </goals>
1043 <phase>generate-resources</phase>
1044 <configuration>
1045 <destFile>${onap.jacoco.aggregateFile}</destFile>
1046 <fileSets>
1047 <fileSet>
1048 <directory>${project.basedir}</directory>
1049 <includes>
1050 <include>**/target/code-coverage/*.exec</include>
1051 </includes>
1052 </fileSet>
1053 </fileSets>
1054 </configuration>
1055 </execution>
1056 </executions>
1057 </plugin>
1058 </plugins>
1059 </build>
1060 </profile>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001061 <!-- End of profiles from ONAP oparent -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001062 </profiles>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -04001063</project>