blob: 303e2c9c1f3c31ee5c611dc14045e0a0732527f5 [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>
8 <version>2.1.8.RELEASE</version>
9 <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>
Timoney, Dan (dt5972)cda6d8e2019-11-12 13:44:16 -050014 <version>1.5.1-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>
40 <!-- properties from oparent -->
41 <maven.compiler.source>1.8</maven.compiler.source>
42 <maven.compiler.target>1.8</maven.compiler.target>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
45 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
46 <!-- sitePath may be overridden in the inheriting POM if desired -->
47 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
48 <jacoco.version>0.7.7.201606060606</jacoco.version>
49 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
50 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
51 <!-- Default Sonar configuration -->
52 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
53 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
54 below -->
55 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
56 <!-- If following file exist, auto-generation of swagger.json will be done -->
57 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
58 <!-- If following file exist, auto-generation of sdk will be done -->
59 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
60 <!-- end of properties from oparent -->
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040061
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040062 <!-- ONAP repositories -->
63 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
64 <onap.nexus.port>443</onap.nexus.port>
65 <onap.nexus.protocol>https</onap.nexus.protocol>
66 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
67 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
68 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
69 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
70 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
71 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040072
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040073 <java.version.source>1.8</java.version.source>
74 <java.version.target>1.8</java.version.target>
75 <bundle.plugin.version>2.5.0</bundle.plugin.version>
76 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
77 <features.file>features.xml</features.file>
78 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
79 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
80 <checkstyle.skip>true</checkstyle.skip>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040081
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040082 <sonar.language>java</sonar.language>
83 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
84 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
85 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
86 <sonar.projectVersion>${project.version}</sonar.projectVersion>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040087
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -040088 <!-- CCSDK component versions -->
89 <ccsdk.sli.core.version>0.7.0-SNAPSHOT</ccsdk.sli.core.version>
90 <ccsdk.sli.adaptors.version>0.7.0-SNAPSHOT</ccsdk.sli.adaptors.version>
91 <ccsdk.sli.northbound.version>0.7.0-SNAPSHOT</ccsdk.sli.northbound.version>
92 <ccsdk.sli.plugins.version>0.7.0-SNAPSHOT</ccsdk.sli.plugins.version>
93 <ccsdk.distribution.version>0.7.0-SNAPSHOT</ccsdk.distribution.version>
94 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
95 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
96 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
97 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
98 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040099
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400100 <!-- Spring versions -->
Brinda Santhf08f70f2019-10-02 19:36:52 -0400101 <spring.boot.version>2.1.8.RELEASE</spring.boot.version>
102 <spring.version>5.1.9.RELEASE</spring.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400103
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400104 <!-- Kotlin versions -->
105 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
106 <kotlin.version>1.3.50</kotlin.version>
107 <kotlin.maven.version>1.3.50</kotlin.maven.version>
Brinda Santhf08f70f2019-10-02 19:36:52 -0400108 <kotlin.couroutines.version>1.3.2</kotlin.couroutines.version>
Singal, Kapil (ks220y)17d2d572019-12-05 14:12:45 -0500109 <kotlinpoet.version>1.4.4</kotlinpoet.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400110 <kroto-plus.version>0.5.0</kroto-plus.version>
111 <mockk.version>1.9.3</mockk.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400112
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500113 <apache.httpcomponents.core.version>4.4.10</apache.httpcomponents.core.version>
114 <apache.httpcomponents.client.version>4.5.6</apache.httpcomponents.client.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400115 <derby.version>10.14.2.0</derby.version>
116 <eelf.version>1.0.0</eelf.version>
Brinda Santhd58f23d2019-11-25 17:00:00 -0500117 <grpc.version>1.25.0</grpc.version>
118 <protobuff.java.version>3.10.0</protobuff.java.version>
119 <protobuff.java.utils.version>3.10.0</protobuff.java.utils.version>
120 <atomix.version>3.1.5</atomix.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400121 <jersey.version>2.25.1</jersey.version>
122 <jettison.version>1.3.8</jettison.version>
123 <junit.version>4.12</junit.version>
124 <logback.version>1.2.3</logback.version>
125 <mariadb.connector.version>2.1.1</mariadb.connector.version>
126 <mariadb4j.version>2.2.3</mariadb4j.version>
127 <slf4j.version>1.7.25</slf4j.version>
128 <testng.version>6.11</testng.version>
Rich Tabedzkid163dcb2019-11-04 15:08:16 -0500129 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500130 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400131 </properties>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400132
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400133 <dependencyManagement>
134 <dependencies>
135 <dependency>
136 <groupId>org.onap.ccsdk.parent</groupId>
137 <artifactId>dependencies-bom</artifactId>
Singal, Kapil (ks220y)17d2d572019-12-05 14:12:45 -0500138 <version>1.5.1-SNAPSHOT</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400139 <type>pom</type>
140 <scope>import</scope>
141 </dependency>
142 <dependency>
143 <groupId>org.onap.ccsdk.sli.core</groupId>
144 <artifactId>sli-common</artifactId>
145 <version>${ccsdk.sli.core.version}</version>
146 </dependency>
Brinda Santh40ff6f42019-07-26 10:00:10 -0400147
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400148 <dependency>
149 <groupId>org.onap.ccsdk.sli.core</groupId>
150 <artifactId>sli-provider</artifactId>
151 <version>${ccsdk.sli.core.version}</version>
152 </dependency>
153 <dependency>
154 <groupId>org.onap.ccsdk.sli.core</groupId>
155 <artifactId>ccsdk-sli</artifactId>
156 <version>${ccsdk.sli.core.version}</version>
157 <type>xml</type>
158 <classifier>features</classifier>
159 </dependency>
160 <dependency>
161 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
162 <artifactId>aai-service-provider</artifactId>
163 <version>${sdnctl.aai.service.version}</version>
164 </dependency>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400165
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400166 <dependency>
167 <groupId>org.onap.ccsdk.sli.core</groupId>
168 <artifactId>dblib-provider</artifactId>
169 <version>${sdnctl.dblib.version}</version>
170 </dependency>
171 <dependency>
172 <groupId>junit</groupId>
173 <artifactId>junit</artifactId>
174 <version>${junit.version}</version>
175 <scope>test</scope>
176 </dependency>
177 </dependencies>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400178
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400179 </dependencyManagement>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400180
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400181 <repositories>
182 <repository>
183 <id>onap-public</id>
184 <url>https://nexus.onap.org/content/groups/public</url>
185 <releases>
186 <enabled>true</enabled>
187 <updatePolicy>never</updatePolicy>
188 </releases>
189 <snapshots>
190 <enabled>true</enabled>
191 <updatePolicy>always</updatePolicy>
192 </snapshots>
193 </repository>
194 <repository>
195 <id>onap-staging</id>
196 <url>https://nexus.onap.org/content/groups/staging</url>
197 <releases>
198 <enabled>true</enabled>
199 <updatePolicy>never</updatePolicy>
200 </releases>
201 <snapshots>
202 <enabled>true</enabled>
203 <updatePolicy>always</updatePolicy>
204 </snapshots>
205 </repository>
206 <repository>
207 <id>ecomp-release</id>
208 <name>onap-repository-releases</name>
209 <url>https://nexus.onap.org/content/repositories/releases</url>
210 <releases>
211 <enabled>true</enabled>
212 <updatePolicy>never</updatePolicy>
213 </releases>
214 <snapshots>
215 <enabled>false</enabled>
216 </snapshots>
217 </repository>
218 <repository>
219 <id>ecomp-snapshot</id>
220 <name>onap-repository-snapshots</name>
221 <url>https://nexus.onap.org/content/repositories/snapshots</url>
222 <releases>
223 <enabled>false</enabled>
224 </releases>
225 <snapshots>
226 <enabled>true</enabled>
227 </snapshots>
228 </repository>
229 <repository>
230 <id>opendaylight-mirror</id>
231 <name>opendaylight-mirror</name>
232 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
233 <releases>
234 <enabled>true</enabled>
235 <updatePolicy>never</updatePolicy>
236 </releases>
237 <snapshots>
238 <enabled>false</enabled>
239 </snapshots>
240 </repository>
241 <repository>
242 <id>opendaylight-snapshot</id>
243 <name>opendaylight-snapshot</name>
244 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
245 <releases>
246 <enabled>false</enabled>
247 </releases>
248 <snapshots>
249 <enabled>true</enabled>
250 </snapshots>
251 </repository>
Timoney, Dan (dt5972)0586da42019-07-17 10:43:14 -0400252
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400253 </repositories>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400254 <pluginRepositories>
255 <pluginRepository>
256 <id>onap-public</id>
257 <url>${onap.nexus.public-url}</url>
258 <releases>
259 <enabled>true</enabled>
260 </releases>
261 <snapshots>
262 <enabled>true</enabled>
263 </snapshots>
264 </pluginRepository>
265 <pluginRepository>
266 <id>onap-staging</id>
267 <url>${onap.nexus.staging-url}</url>
268 <releases>
269 <enabled>true</enabled>
270 </releases>
271 <snapshots>
272 <enabled>true</enabled>
273 </snapshots>
274 </pluginRepository>
275 <pluginRepository>
276 <id>onap-snapshot</id>
277 <url>${onap.nexus.snapshot-url}</url>
278 <releases>
279 <enabled>false</enabled>
280 </releases>
281 <snapshots>
282 <enabled>true</enabled>
283 </snapshots>
284 </pluginRepository>
285 <pluginRepository>
286 <id>opendaylight-mirror</id>
287 <name>opendaylight-mirror</name>
288 <url>${opendaylight.nexus.public-url}</url>
289 <releases>
290 <enabled>true</enabled>
291 <updatePolicy>never</updatePolicy>
292 </releases>
293 <snapshots>
294 <enabled>false</enabled>
295 </snapshots>
296 </pluginRepository>
297 <pluginRepository>
298 <id>opendaylight-snapshot</id>
299 <name>opendaylight-snapshot</name>
300 <url>${opendaylight.nexus.snapshot-url}</url>
301 <releases>
302 <enabled>false</enabled>
303 </releases>
304 <snapshots>
305 <enabled>true</enabled>
306 </snapshots>
307 </pluginRepository>
308 <!-- Black Duck plugin dependencies -->
309 <pluginRepository>
310 <id>JCenter</id>
311 <name>JCenter Repository</name>
312 <url>http://jcenter.bintray.com</url>
313 </pluginRepository>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400314
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400315 <pluginRepository>
316 <id>Restlet</id>
317 <name>Restlet Repository</name>
318 <url>http://maven.restlet.com</url>
319 </pluginRepository>
320 </pluginRepositories>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400321
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400322 <build>
323 <pluginManagement>
324 <plugins>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400325
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400326 <!-- Plugins from ONAP oparent -->
327 <plugin>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-deploy-plugin</artifactId>
330 <!-- This version supports the "deployAtEnd" parameter -->
331 <version>2.8</version>
332 <configuration>
333 <skip/>
334 </configuration>
335 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400336
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400337 <plugin>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-site-plugin</artifactId>
340 <version>3.6</version>
341 <dependencies>
342 <dependency>
343 <groupId>org.apache.maven.wagon</groupId>
344 <artifactId>wagon-webdav-jackrabbit</artifactId>
345 <version>2.10</version>
346 </dependency>
347 <dependency>
348 <groupId>org.apache.maven.doxia</groupId>
349 <artifactId>doxia-core</artifactId>
350 <version>1.7</version>
351 </dependency>
352 <dependency>
353 <groupId>org.apache.maven.doxia</groupId>
354 <artifactId>doxia-sink-api</artifactId>
355 <version>1.7</version>
356 </dependency>
357 <dependency>
358 <groupId>org.apache.maven.doxia</groupId>
359 <artifactId>doxia-logging-api</artifactId>
360 <version>1.7</version>
361 </dependency>
362 </dependencies>
363 <executions>
364 <execution>
365 <id>attach-descriptor</id>
366 <goals>
367 <goal>attach-descriptor</goal>
368 </goals>
369 </execution>
370 </executions>
371 </plugin>
372 <plugin>
373 <artifactId>maven-checkstyle-plugin</artifactId>
374 <version>2.17</version>
375 <dependencies>
376 <dependency>
377 <groupId>org.onap.oparent</groupId>
378 <artifactId>checkstyle</artifactId>
379 <version>1.1.1</version>
380 </dependency>
381 </dependencies>
382 <executions>
383 <execution>
384 <id>check-license</id>
385 <goals>
386 <goal>check</goal>
387 </goals>
388 <phase>process-sources</phase>
389 <configuration>
390 <configLocation>onap-checkstyle/check-license.xml</configLocation>
391 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
392 <includeResources>false</includeResources>
393 <includeTestSourceDirectory>true</includeTestSourceDirectory>
394 <includeTestResources>false</includeTestResources>
395 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
396 <excludes>
397 </excludes>
398 <failsOnError>false</failsOnError>
399 <consoleOutput>true</consoleOutput>
400 </configuration>
401 </execution>
402 <execution>
403 <id>check-style</id>
404 <goals>
405 <goal>check</goal>
406 </goals>
407 <phase>process-sources</phase>
408 <configuration>
409 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
410 with minor changes -->
411 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
412 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
413 sources directory -->
414 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
415 <includeResources>true</includeResources>
416 <includeTestSourceDirectory>true</includeTestSourceDirectory>
417 <includeTestResources>true</includeTestResources>
418 <excludes>
419 </excludes>
420 <failsOnError>false</failsOnError>
421 <consoleOutput>true</consoleOutput>
422 </configuration>
423 </execution>
424 </executions>
425 </plugin>
426 <plugin>
427 <groupId>org.jacoco</groupId>
428 <artifactId>jacoco-maven-plugin</artifactId>
429 <version>${jacoco.version}</version>
430 <configuration>
431 <!-- Note: This exclusion list should match <sonar.exclusions> property
432 above -->
433 <excludes>
434 <exclude>**/gen/**</exclude>
435 <exclude>**/generated-sources/**</exclude>
436 <exclude>**/yang-gen/**</exclude>
437 <exclude>**/pax/**</exclude>
438 </excludes>
439 </configuration>
440 <executions>
441 <!-- Prepares the property pointing to the JaCoCo runtime agent which
442 is passed as VM argument when Maven the Surefire plugin is executed. -->
443 <execution>
444 <id>pre-unit-test</id>
445 <goals>
446 <goal>prepare-agent</goal>
447 </goals>
448 <configuration>
449 <!-- Sets the path to the file which contains the execution data. -->
450 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
451 <!-- Sets the name of the property containing the settings for JaCoCo
452 runtime agent. -->
453 <propertyName>surefireArgLine</propertyName>
454 </configuration>
455 </execution>
456 <!-- Ensures that the code coverage report for unit tests is created
457 after unit tests have been run. -->
458 <execution>
459 <id>post-unit-test</id>
460 <phase>test</phase>
461 <goals>
462 <goal>report</goal>
463 </goals>
464 <configuration>
465 <!-- Sets the path to the file which contains the execution data. -->
466 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
467 <!-- Sets the output directory for the code coverage report. -->
468 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
469 </configuration>
470 </execution>
471 <execution>
472 <id>pre-integration-test</id>
473 <phase>pre-integration-test</phase>
474 <goals>
475 <goal>prepare-agent</goal>
476 </goals>
477 <configuration>
478 <!-- Sets the path to the file which contains the execution data. -->
479 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
480 <!-- Sets the name of the property containing the settings for JaCoCo
481 runtime agent. -->
482 <propertyName>failsafeArgLine</propertyName>
483 </configuration>
484 </execution>
485 <!-- Ensures that the code coverage report for integration tests after
486 integration tests have been run. -->
487 <execution>
488 <id>post-integration-test</id>
489 <phase>post-integration-test</phase>
490 <goals>
491 <goal>report</goal>
492 </goals>
493 <configuration>
494 <!-- Sets the path to the file which contains the execution data. -->
495 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
496 <!-- Sets the output directory for the code coverage report. -->
497 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
498 </configuration>
499 </execution>
500 </executions>
501 </plugin>
502 <plugin>
503 <groupId>org.apache.maven.plugins</groupId>
504 <artifactId>maven-surefire-plugin</artifactId>
505 <version>2.19.1</version>
506 <configuration>
507 <!-- Sets the VM argument line used when unit tests are run. -->
508 <argLine>${surefireArgLine}</argLine>
509 <!-- Excludes integration tests when unit tests are run. -->
510 <excludes>
511 <exclude>**/IT*.java</exclude>
512 </excludes>
513 </configuration>
514 </plugin>
515 <plugin>
516 <groupId>org.apache.maven.plugins</groupId>
517 <artifactId>maven-failsafe-plugin</artifactId>
518 <version>2.19.1</version>
519 <executions>
520 <!-- Ensures that both integration-test and verify goals of the Failsafe
521 Maven plugin are executed. -->
522 <execution>
523 <id>integration-tests</id>
524 <goals>
525 <goal>integration-test</goal>
526 <goal>verify</goal>
527 </goals>
528 <configuration>
529 <!-- Sets the VM argument line used when integration tests are run. -->
530 <argLine>${failsafeArgLine}</argLine>
531 </configuration>
532 </execution>
533 </executions>
534 </plugin>
535 <plugin>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-compiler-plugin</artifactId>
538 <version>${maven.compile.plugin.version}</version>
539 <configuration>
540 <source>${java.version.source}</source>
541 <target>${java.version.target}</target>
542 </configuration>
543 </plugin>
544 <plugin>
545 <groupId>org.sonarsource.scanner.maven</groupId>
546 <artifactId>sonar-maven-plugin</artifactId>
Singal, Kapil (ks220y)03800a72019-11-29 11:19:35 -0500547 <version>3.6.0.1398</version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400548 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400549
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400550 <!-- End of plugins from ONAP oparent -->
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400551
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400552 <plugin>
553 <groupId>org.apache.maven.plugins</groupId>
554 <artifactId>maven-javadoc-plugin</artifactId>
555 <version>2.10</version>
556 <configuration>
557 <additionalDependencies>
558 <additionalDependency>
559 <groupId>org.slf4j</groupId>
560 <artifactId>slf4j-api</artifactId>
561 <version>${slf4j.version}</version>
562 </additionalDependency>
563 <additionalDependency>
564 <groupId>org.antlr</groupId>
565 <artifactId>antlr4</artifactId>
566 <version>${antlr.version}</version>
567 </additionalDependency>
568 <additionalDependency>
569 <groupId>org.antlr</groupId>
570 <artifactId>antlr4-runtime</artifactId>
571 <version>${antlr.version}</version>
572 </additionalDependency>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400573
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400574 <additionalDependency>
575 <groupId>com.sun.jersey</groupId>
576 <artifactId>jersey-client</artifactId>
577 <version>${jersey.client.version}</version>
578 </additionalDependency>
579 <additionalDependency>
580 <groupId>com.sun.jersey</groupId>
581 <artifactId>jersey-core</artifactId>
582 <version>${jersey.version}</version>
583 </additionalDependency>
584 <additionalDependency>
585 <groupId>org.apache.httpcomponents</groupId>
586 <artifactId>httpcore-osgi</artifactId>
587 <version>${apache.httpcomponents.core.version}</version>
588 </additionalDependency>
589 <additionalDependency>
590 <groupId>org.apache.httpcomponents</groupId>
591 <artifactId>httpclient-osgi</artifactId>
592 <version>${apache.httpcomponents.client.version}</version>
593 </additionalDependency>
594 <additionalDependency>
595 <groupId>commons-lang</groupId>
596 <artifactId>commons-lang</artifactId>
597 <version>${commons.lang.version}</version>
598 </additionalDependency>
599 </additionalDependencies>
600 </configuration>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400601
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400602 <executions>
603 <execution>
604 <id>aggregate</id>
605 <goals>
606 <goal>aggregate</goal>
607 </goals>
608 <phase>site</phase>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400609
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400610 </execution>
611 </executions>
612 </plugin>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500613 <plugin>
614 <groupId>com.github.ferstl</groupId>
615 <artifactId>depgraph-maven-plugin</artifactId>
616 <version>3.3.0</version>
617 <configuration>
618 <graphFormat>text</graphFormat>
619 <outputFileName>${dependency-list.file}</outputFileName>
620 <outputDirectory>${project.basedir}</outputDirectory>
621 <transitiveExcludes>*</transitiveExcludes>
622 <showVersions>true</showVersions>
623 </configuration>
624 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400625 </plugins>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400626
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400627 </pluginManagement>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400628 <plugins>
629 <!-- Plugins from ONAP oparent -->
630 <plugin>
631 <artifactId>maven-checkstyle-plugin</artifactId>
632 </plugin>
633 <plugin>
634 <groupId>org.codehaus.mojo</groupId>
635 <artifactId>build-helper-maven-plugin</artifactId>
636 <version>1.12</version>
637 </plugin>
638 <!-- Jacoco / Sonar -->
639 <plugin>
640 <groupId>org.jacoco</groupId>
641 <artifactId>jacoco-maven-plugin</artifactId>
642 </plugin>
643 <plugin>
644 <groupId>org.apache.maven.plugins</groupId>
645 <artifactId>maven-surefire-plugin</artifactId>
646 </plugin>
647 <plugin>
648 <groupId>org.apache.maven.plugins</groupId>
649 <artifactId>maven-failsafe-plugin</artifactId>
650 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400651
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400652 <!-- End of plugins from ONAP oparent -->
653 <plugin>
654 <groupId>org.codehaus.mojo</groupId>
655 <artifactId>properties-maven-plugin</artifactId>
656 <version>1.0.0</version>
657 <executions>
658 <execution>
659 <goals>
660 <goal>set-system-properties</goal>
661 </goals>
662 <configuration>
663 <properties>
664 <property>
665 <name>maven.wagon.http.ssl.allowall</name>
666 <value>${ssl.allowall}</value>
667 </property>
668 <property>
669 <name>maven.wagon.http.ssl.insecure</name>
670 <value>${ssl.insecure}</value>
671 </property>
672 </properties>
673 </configuration>
674 </execution>
675 </executions>
676 </plugin>
677 <plugin>
678 <groupId>org.codehaus.mojo</groupId>
679 <artifactId>versions-maven-plugin</artifactId>
680 <version>2.5</version>
681 <configuration>
682 <processAllModules>true</processAllModules>
683 </configuration>
684 </plugin>
685 <plugin>
686 <artifactId>maven-scm-plugin</artifactId>
687 <version>1.8.1</version>
688 <configuration>
689 <tag>${project.artifactId}-${project.version}</tag>
690 </configuration>
691 </plugin>
692 </plugins>
693 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400694
695 <reporting>
696 <plugins>
697 <plugin>
698 <artifactId>maven-javadoc-plugin</artifactId>
699 <version>2.10.4</version>
700 <configuration>
701 <failOnError>false</failOnError>
702 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
703 <docletArtifact>
704 <groupId>org.umlgraph</groupId>
705 <artifactId>umlgraph</artifactId>
706 <version>5.6</version>
707 </docletArtifact>
708 <additionalparam>-views</additionalparam>
709 <useStandardDocletOptions>true</useStandardDocletOptions>
710 <excludePackageNames>org.opendaylight.*</excludePackageNames>
711 </configuration>
712 <reportSets>
713 <reportSet>
714 <reports>
715 <report>javadoc-no-fork</report>
716 <report>test-javadoc-no-fork</report>
717 </reports>
718 </reportSet>
719 <reportSet>
720 <id>aggregate</id>
721 <reports>
722 <report>aggregate</report>
723 <report>test-aggregate</report>
724 </reports>
725 </reportSet>
726 </reportSets>
727 </plugin>
728 <plugin>
729 <groupId>org.apache.maven.plugins</groupId>
730 <artifactId>maven-jxr-plugin</artifactId>
731 <version>2.3</version>
732 <reportSets>
733 <reportSet>
734 <id>aggregate</id>
735 <reports>
736 <report>aggregate</report>
737 <report>test-aggregate</report>
738 </reports>
739 </reportSet>
740 </reportSets>
741 </plugin>
742
743 <plugin>
744 <artifactId>maven-surefire-plugin</artifactId>
745 <version>2.17</version>
746 </plugin>
747 <plugin>
748 <groupId>org.apache.maven.plugins</groupId>
749 <artifactId>maven-changelog-plugin</artifactId>
750 <version>2.3</version>
751 <reportSets>
752 <reportSet>
753 <id>dual-report</id>
754 <configuration>
755 <type>range</type>
756 <range>30</range>
757 </configuration>
758 <reports>
759 <report>changelog</report>
760 <report>file-activity</report>
761 </reports>
762 </reportSet>
763 </reportSets>
764 </plugin>
765 <plugin>
766 <groupId>org.codehaus.mojo</groupId>
767 <artifactId>taglist-maven-plugin</artifactId>
768 <version>2.4</version>
769 </plugin>
770 </plugins>
771 </reporting>
772
773 <profiles>
774 <!-- Profiles from ONAP oparent -->
775 <profile>
776 <id>generate-json</id>
777 <activation>
778 <file>
779 <exists>${swagger-properties}</exists>
780 </file>
781 <property>
782 <name>swagger-sdk.generate-json</name>
783 </property>
784 </activation>
785 <build>
786 <plugins>
787 <plugin>
788 <groupId>org.codehaus.mojo</groupId>
789 <artifactId>properties-maven-plugin</artifactId>
790 <version>1.0.0</version>
791 <executions>
792 <execution>
793 <phase>initialize</phase>
794 <goals>
795 <goal>read-project-properties</goal>
796 </goals>
797 <configuration>
798 <files>
799 <file>${basedir}/src/main/resources/swagger.properties</file>
800 </files>
801 </configuration>
802 </execution>
803 </executions>
804 </plugin>
805 <plugin>
806 <groupId>com.github.kongchen</groupId>
807 <artifactId>swagger-maven-plugin</artifactId>
808 <version>3.1.4</version>
809 <configuration>
810 <apiSources>
811 <apiSource>
812 <locations>${api-rest-package}</locations>
813 <schemes>http,https</schemes>
814 <host>${api-host-ip}:${api-host-port}</host>
815 <basePath>${api-base-path}</basePath>
816 <info>
817 <title>${api-title}</title>
818 <version>${api-version}</version>
819 <description>${api-description}</description>
820 <license>
821 <name>${api-license}</name>
822 </license>
823 </info>
824 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
825 </apiSource>
826 </apiSources>
827 </configuration>
828 <executions>
829 <execution>
830 <phase>compile</phase>
831 <goals>
832 <goal>generate</goal>
833 </goals>
834 </execution>
835 </executions>
836 </plugin>
837 <plugin>
838 <groupId>org.apache.maven.plugins</groupId>
839 <artifactId>maven-install-plugin</artifactId>
840 <version>2.3.1</version>
841 <executions>
842 <execution>
843 <id>install-file-id</id>
844 <phase>install</phase>
845 <goals>
846 <goal>install-file</goal>
847 </goals>
848 <configuration>
849 <file>${basedir}/src/main/resources/swagger.json</file>
850 <groupId>${project.groupId}</groupId>
851 <artifactId>${project.artifactId}-swagger-schema</artifactId>
852 <version>${project.version}</version>
853 <packaging>json</packaging>
854 </configuration>
855 </execution>
856 </executions>
857 </plugin>
858 </plugins>
859 </build>
860 </profile>
861 <profile>
862 <id>generate-sdk</id>
863 <activation>
864 <file>
865 <exists>${swagger-json}</exists>
866 </file>
867 <property>
868 <name>swagger-sdk.generate-java-sdk</name>
869 </property>
870 </activation>
871 <build>
872 <plugins>
873 <plugin>
874 <groupId>org.apache.maven.plugins</groupId>
875 <artifactId>maven-antrun-plugin</artifactId>
876 <version>1.8</version>
877 <executions>
878 <execution>
879 <phase>initialize</phase>
880 <id>ant-create-script</id>
881 <configuration>
882 <exportAntProperties>true</exportAntProperties>
883 <tasks>
884
885 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
886 <condition property="is_windows" value="true">
887 <os family="windows"/>
888 </condition>
889 <condition property="isLinux" value="true">
890 <os family="unix"/>
891 </condition>
892 <if>
893 <equals arg1="${is_windows}" arg2="true"/>
894 <then>
895 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
896 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
897 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
898 </then>
899 <else>
900 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
901 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
902 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
903 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
904 </else>
905 </if>
906 </tasks>
907 </configuration>
908 <goals>
909 <goal>run</goal>
910 </goals>
911 </execution>
912 </executions>
913 <dependencies>
914 <dependency>
915 <groupId>ant-contrib</groupId>
916 <artifactId>ant-contrib</artifactId>
917 <version>1.0b3</version>
918 <exclusions>
919 <exclusion>
920 <groupId>ant</groupId>
921 <artifactId>ant</artifactId>
922 </exclusion>
923 </exclusions>
924 </dependency>
925 </dependencies>
926 </plugin>
927 <plugin>
928 <groupId>io.swagger</groupId>
929 <artifactId>swagger-codegen-maven-plugin</artifactId>
930 <version>2.2.1</version>
931 <executions>
932 <execution>
933 <goals>
934 <goal>generate</goal>
935 </goals>
936 <configuration>
937 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
938 <output>${project.build.directory}/generated-sources</output>
939 <language>java</language>
940 <configOptions>
941 <dateLibrary>joda</dateLibrary>
942 </configOptions>
943 <library>jersey2</library>
944 <groupId>${project.groupId}</groupId>
945 <artifactId>${project.artifactId}-java-sdk</artifactId>
946 <artifactVersion>${project.version}</artifactVersion>
947 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
948 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
949 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
950 </configuration>
951 </execution>
952 </executions>
953 </plugin>
954 <plugin>
955 <groupId>org.codehaus.mojo</groupId>
956 <artifactId>exec-maven-plugin</artifactId>
957 <version>1.5.0</version>
958 <executions>
959 <execution>
960 <id>swagger-generate-sources</id>
961 <phase>generate-sources</phase>
962 <goals>
963 <goal>exec</goal>
964 </goals>
965 <configuration>
966 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
967 </configuration>
968 </execution>
969 </executions>
970 </plugin>
971 <plugin>
972 <groupId>org.apache.maven.plugins</groupId>
973 <artifactId>maven-clean-plugin</artifactId>
974 <version>3.0.0</version>
975 <executions>
976 <execution>
977 <id>clean-generated-files</id>
978 <phase>generate-sources</phase>
979 <goals>
980 <goal>clean</goal>
981 </goals>
982 <configuration>
983 <filesets>
984 <fileset>
985 <directory>${project.build.directory}/generated-sources</directory>
986 </fileset>
987 </filesets>
988 </configuration>
989 </execution>
990 </executions>
991 </plugin>
992 </plugins>
993 </build>
994 <dependencies>
995 <dependency>
996 <groupId>org.onap.msb.swagger-sdk</groupId>
997 <artifactId>swagger-sdk</artifactId>
998 <version>1.0.0</version>
999 </dependency>
1000 </dependencies>
1001 </profile>
1002 <profile>
1003 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
1004 q = http://memory-alpha.wikia.com/wiki/Q ;)
1005
1006 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
1007 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
1008 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
1009 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1010
1011 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1012 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
1013 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1014 -->
1015 <id>q</id>
1016 <properties>
1017 <skipTests>true</skipTests>
1018 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1019 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
1020 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
1021 <skipIT>true</skipIT>
1022 <skipITs>true</skipITs>
1023 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1024 <jacoco.skip>true</jacoco.skip>
1025 <maven.javadoc.skip>true</maven.javadoc.skip>
1026 <maven.source.skip>true</maven.source.skip>
1027 <checkstyle.skip>true</checkstyle.skip>
1028 <findbugs.skip>true</findbugs.skip>
1029 <spotbugs.skip>true</spotbugs.skip>
1030 <pmd.skip>true</pmd.skip>
1031 <cpd.skip>true</cpd.skip>
1032 <maven.site.skip>true</maven.site.skip>
1033 <invoker.skip>true</invoker.skip>
1034 <enforcer.skip>true</enforcer.skip>
1035 <duplicate-finder.skip>true</duplicate-finder.skip>
1036 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1037 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1038 <modernizer.skip>true</modernizer.skip>
Singal, Kapil (ks220y)9c6ac882019-11-20 12:42:58 -05001039 <format.skipExecute>true</format.skipExecute>
1040 <format.skipValidate>true</format.skipValidate>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001041 </properties>
1042 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001043 <profile>
1044 <id>sonar-jacoco-aggregate</id>
1045 <activation>
1046 <property>
1047 <name>onap.jacoco.aggregateFile</name>
1048 </property>
1049 </activation>
1050 <build>
1051 <plugins>
1052 <plugin>
1053 <groupId>org.jacoco</groupId>
1054 <artifactId>jacoco-maven-plugin</artifactId>
1055 <executions>
1056 <execution>
1057 <id>merge</id>
1058 <goals>
1059 <goal>merge</goal>
1060 </goals>
1061 <phase>generate-resources</phase>
1062 <configuration>
1063 <destFile>${onap.jacoco.aggregateFile}</destFile>
1064 <fileSets>
1065 <fileSet>
1066 <directory>${project.basedir}</directory>
1067 <includes>
1068 <include>**/target/code-coverage/*.exec</include>
1069 </includes>
1070 </fileSet>
1071 </fileSets>
1072 </configuration>
1073 </execution>
1074 </executions>
1075 </plugin>
1076 </plugins>
1077 </build>
1078 </profile>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001079 <!-- End of profiles from ONAP oparent -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001080 </profiles>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -04001081</project>