blob: 1d353d0203fda6ba6f78ccbefd31bf06e88e7eb1 [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
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500113 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
114 <apache.httpcomponents.client.version>4.5.10</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>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500125 <mariadb.connector.version>2.4.4</mariadb.connector.version>
126 <mariadb4j.version>2.4.0</mariadb4j.version>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400127 <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>
Timoney, Dan (dt5972)cc0c96a2019-12-11 10:04:52 -0500623 <showGroupIds>true</showGroupIds>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500624 </configuration>
625 </plugin>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400626 </plugins>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400627
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400628 </pluginManagement>
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400629 <plugins>
630 <!-- Plugins from ONAP oparent -->
631 <plugin>
632 <artifactId>maven-checkstyle-plugin</artifactId>
633 </plugin>
634 <plugin>
635 <groupId>org.codehaus.mojo</groupId>
636 <artifactId>build-helper-maven-plugin</artifactId>
637 <version>1.12</version>
638 </plugin>
639 <!-- Jacoco / Sonar -->
640 <plugin>
641 <groupId>org.jacoco</groupId>
642 <artifactId>jacoco-maven-plugin</artifactId>
643 </plugin>
644 <plugin>
645 <groupId>org.apache.maven.plugins</groupId>
646 <artifactId>maven-surefire-plugin</artifactId>
647 </plugin>
648 <plugin>
649 <groupId>org.apache.maven.plugins</groupId>
650 <artifactId>maven-failsafe-plugin</artifactId>
651 </plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400652
Singal, Kapil (ks220y)632a1f32019-09-27 14:09:00 -0400653 <!-- End of plugins from ONAP oparent -->
654 <plugin>
655 <groupId>org.codehaus.mojo</groupId>
656 <artifactId>properties-maven-plugin</artifactId>
657 <version>1.0.0</version>
658 <executions>
659 <execution>
660 <goals>
661 <goal>set-system-properties</goal>
662 </goals>
663 <configuration>
664 <properties>
665 <property>
666 <name>maven.wagon.http.ssl.allowall</name>
667 <value>${ssl.allowall}</value>
668 </property>
669 <property>
670 <name>maven.wagon.http.ssl.insecure</name>
671 <value>${ssl.insecure}</value>
672 </property>
673 </properties>
674 </configuration>
675 </execution>
676 </executions>
677 </plugin>
678 <plugin>
679 <groupId>org.codehaus.mojo</groupId>
680 <artifactId>versions-maven-plugin</artifactId>
681 <version>2.5</version>
682 <configuration>
683 <processAllModules>true</processAllModules>
684 </configuration>
685 </plugin>
686 <plugin>
687 <artifactId>maven-scm-plugin</artifactId>
688 <version>1.8.1</version>
689 <configuration>
690 <tag>${project.artifactId}-${project.version}</tag>
691 </configuration>
692 </plugin>
693 </plugins>
694 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400695
696 <reporting>
697 <plugins>
698 <plugin>
699 <artifactId>maven-javadoc-plugin</artifactId>
700 <version>2.10.4</version>
701 <configuration>
702 <failOnError>false</failOnError>
703 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
704 <docletArtifact>
705 <groupId>org.umlgraph</groupId>
706 <artifactId>umlgraph</artifactId>
707 <version>5.6</version>
708 </docletArtifact>
709 <additionalparam>-views</additionalparam>
710 <useStandardDocletOptions>true</useStandardDocletOptions>
711 <excludePackageNames>org.opendaylight.*</excludePackageNames>
712 </configuration>
713 <reportSets>
714 <reportSet>
715 <reports>
716 <report>javadoc-no-fork</report>
717 <report>test-javadoc-no-fork</report>
718 </reports>
719 </reportSet>
720 <reportSet>
721 <id>aggregate</id>
722 <reports>
723 <report>aggregate</report>
724 <report>test-aggregate</report>
725 </reports>
726 </reportSet>
727 </reportSets>
728 </plugin>
729 <plugin>
730 <groupId>org.apache.maven.plugins</groupId>
731 <artifactId>maven-jxr-plugin</artifactId>
732 <version>2.3</version>
733 <reportSets>
734 <reportSet>
735 <id>aggregate</id>
736 <reports>
737 <report>aggregate</report>
738 <report>test-aggregate</report>
739 </reports>
740 </reportSet>
741 </reportSets>
742 </plugin>
743
744 <plugin>
745 <artifactId>maven-surefire-plugin</artifactId>
746 <version>2.17</version>
747 </plugin>
748 <plugin>
749 <groupId>org.apache.maven.plugins</groupId>
750 <artifactId>maven-changelog-plugin</artifactId>
751 <version>2.3</version>
752 <reportSets>
753 <reportSet>
754 <id>dual-report</id>
755 <configuration>
756 <type>range</type>
757 <range>30</range>
758 </configuration>
759 <reports>
760 <report>changelog</report>
761 <report>file-activity</report>
762 </reports>
763 </reportSet>
764 </reportSets>
765 </plugin>
766 <plugin>
767 <groupId>org.codehaus.mojo</groupId>
768 <artifactId>taglist-maven-plugin</artifactId>
769 <version>2.4</version>
770 </plugin>
771 </plugins>
772 </reporting>
773
774 <profiles>
775 <!-- Profiles from ONAP oparent -->
776 <profile>
777 <id>generate-json</id>
778 <activation>
779 <file>
780 <exists>${swagger-properties}</exists>
781 </file>
782 <property>
783 <name>swagger-sdk.generate-json</name>
784 </property>
785 </activation>
786 <build>
787 <plugins>
788 <plugin>
789 <groupId>org.codehaus.mojo</groupId>
790 <artifactId>properties-maven-plugin</artifactId>
791 <version>1.0.0</version>
792 <executions>
793 <execution>
794 <phase>initialize</phase>
795 <goals>
796 <goal>read-project-properties</goal>
797 </goals>
798 <configuration>
799 <files>
800 <file>${basedir}/src/main/resources/swagger.properties</file>
801 </files>
802 </configuration>
803 </execution>
804 </executions>
805 </plugin>
806 <plugin>
807 <groupId>com.github.kongchen</groupId>
808 <artifactId>swagger-maven-plugin</artifactId>
809 <version>3.1.4</version>
810 <configuration>
811 <apiSources>
812 <apiSource>
813 <locations>${api-rest-package}</locations>
814 <schemes>http,https</schemes>
815 <host>${api-host-ip}:${api-host-port}</host>
816 <basePath>${api-base-path}</basePath>
817 <info>
818 <title>${api-title}</title>
819 <version>${api-version}</version>
820 <description>${api-description}</description>
821 <license>
822 <name>${api-license}</name>
823 </license>
824 </info>
825 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
826 </apiSource>
827 </apiSources>
828 </configuration>
829 <executions>
830 <execution>
831 <phase>compile</phase>
832 <goals>
833 <goal>generate</goal>
834 </goals>
835 </execution>
836 </executions>
837 </plugin>
838 <plugin>
839 <groupId>org.apache.maven.plugins</groupId>
840 <artifactId>maven-install-plugin</artifactId>
841 <version>2.3.1</version>
842 <executions>
843 <execution>
844 <id>install-file-id</id>
845 <phase>install</phase>
846 <goals>
847 <goal>install-file</goal>
848 </goals>
849 <configuration>
850 <file>${basedir}/src/main/resources/swagger.json</file>
851 <groupId>${project.groupId}</groupId>
852 <artifactId>${project.artifactId}-swagger-schema</artifactId>
853 <version>${project.version}</version>
854 <packaging>json</packaging>
855 </configuration>
856 </execution>
857 </executions>
858 </plugin>
859 </plugins>
860 </build>
861 </profile>
862 <profile>
863 <id>generate-sdk</id>
864 <activation>
865 <file>
866 <exists>${swagger-json}</exists>
867 </file>
868 <property>
869 <name>swagger-sdk.generate-java-sdk</name>
870 </property>
871 </activation>
872 <build>
873 <plugins>
874 <plugin>
875 <groupId>org.apache.maven.plugins</groupId>
876 <artifactId>maven-antrun-plugin</artifactId>
877 <version>1.8</version>
878 <executions>
879 <execution>
880 <phase>initialize</phase>
881 <id>ant-create-script</id>
882 <configuration>
883 <exportAntProperties>true</exportAntProperties>
884 <tasks>
885
886 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
887 <condition property="is_windows" value="true">
888 <os family="windows"/>
889 </condition>
890 <condition property="isLinux" value="true">
891 <os family="unix"/>
892 </condition>
893 <if>
894 <equals arg1="${is_windows}" arg2="true"/>
895 <then>
896 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
897 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
898 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
899 </then>
900 <else>
901 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
902 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
903 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
904 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
905 </else>
906 </if>
907 </tasks>
908 </configuration>
909 <goals>
910 <goal>run</goal>
911 </goals>
912 </execution>
913 </executions>
914 <dependencies>
915 <dependency>
916 <groupId>ant-contrib</groupId>
917 <artifactId>ant-contrib</artifactId>
918 <version>1.0b3</version>
919 <exclusions>
920 <exclusion>
921 <groupId>ant</groupId>
922 <artifactId>ant</artifactId>
923 </exclusion>
924 </exclusions>
925 </dependency>
926 </dependencies>
927 </plugin>
928 <plugin>
929 <groupId>io.swagger</groupId>
930 <artifactId>swagger-codegen-maven-plugin</artifactId>
931 <version>2.2.1</version>
932 <executions>
933 <execution>
934 <goals>
935 <goal>generate</goal>
936 </goals>
937 <configuration>
938 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
939 <output>${project.build.directory}/generated-sources</output>
940 <language>java</language>
941 <configOptions>
942 <dateLibrary>joda</dateLibrary>
943 </configOptions>
944 <library>jersey2</library>
945 <groupId>${project.groupId}</groupId>
946 <artifactId>${project.artifactId}-java-sdk</artifactId>
947 <artifactVersion>${project.version}</artifactVersion>
948 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
949 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
950 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
951 </configuration>
952 </execution>
953 </executions>
954 </plugin>
955 <plugin>
956 <groupId>org.codehaus.mojo</groupId>
957 <artifactId>exec-maven-plugin</artifactId>
958 <version>1.5.0</version>
959 <executions>
960 <execution>
961 <id>swagger-generate-sources</id>
962 <phase>generate-sources</phase>
963 <goals>
964 <goal>exec</goal>
965 </goals>
966 <configuration>
967 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
968 </configuration>
969 </execution>
970 </executions>
971 </plugin>
972 <plugin>
973 <groupId>org.apache.maven.plugins</groupId>
974 <artifactId>maven-clean-plugin</artifactId>
975 <version>3.0.0</version>
976 <executions>
977 <execution>
978 <id>clean-generated-files</id>
979 <phase>generate-sources</phase>
980 <goals>
981 <goal>clean</goal>
982 </goals>
983 <configuration>
984 <filesets>
985 <fileset>
986 <directory>${project.build.directory}/generated-sources</directory>
987 </fileset>
988 </filesets>
989 </configuration>
990 </execution>
991 </executions>
992 </plugin>
993 </plugins>
994 </build>
995 <dependencies>
996 <dependency>
997 <groupId>org.onap.msb.swagger-sdk</groupId>
998 <artifactId>swagger-sdk</artifactId>
999 <version>1.0.0</version>
1000 </dependency>
1001 </dependencies>
1002 </profile>
1003 <profile>
1004 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
1005 q = http://memory-alpha.wikia.com/wiki/Q ;)
1006
1007 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
1008 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
1009 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
1010 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1011
1012 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1013 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
1014 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1015 -->
1016 <id>q</id>
1017 <properties>
1018 <skipTests>true</skipTests>
1019 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1020 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
1021 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
1022 <skipIT>true</skipIT>
1023 <skipITs>true</skipITs>
1024 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1025 <jacoco.skip>true</jacoco.skip>
1026 <maven.javadoc.skip>true</maven.javadoc.skip>
1027 <maven.source.skip>true</maven.source.skip>
1028 <checkstyle.skip>true</checkstyle.skip>
1029 <findbugs.skip>true</findbugs.skip>
1030 <spotbugs.skip>true</spotbugs.skip>
1031 <pmd.skip>true</pmd.skip>
1032 <cpd.skip>true</cpd.skip>
1033 <maven.site.skip>true</maven.site.skip>
1034 <invoker.skip>true</invoker.skip>
1035 <enforcer.skip>true</enforcer.skip>
1036 <duplicate-finder.skip>true</duplicate-finder.skip>
1037 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1038 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1039 <modernizer.skip>true</modernizer.skip>
Singal, Kapil (ks220y)9c6ac882019-11-20 12:42:58 -05001040 <format.skipExecute>true</format.skipExecute>
1041 <format.skipValidate>true</format.skipValidate>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001042 </properties>
1043 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001044 <profile>
1045 <id>sonar-jacoco-aggregate</id>
1046 <activation>
1047 <property>
1048 <name>onap.jacoco.aggregateFile</name>
1049 </property>
1050 </activation>
1051 <build>
1052 <plugins>
1053 <plugin>
1054 <groupId>org.jacoco</groupId>
1055 <artifactId>jacoco-maven-plugin</artifactId>
1056 <executions>
1057 <execution>
1058 <id>merge</id>
1059 <goals>
1060 <goal>merge</goal>
1061 </goals>
1062 <phase>generate-resources</phase>
1063 <configuration>
1064 <destFile>${onap.jacoco.aggregateFile}</destFile>
1065 <fileSets>
1066 <fileSet>
1067 <directory>${project.basedir}</directory>
1068 <includes>
1069 <include>**/target/code-coverage/*.exec</include>
1070 </includes>
1071 </fileSet>
1072 </fileSets>
1073 </configuration>
1074 </execution>
1075 </executions>
1076 </plugin>
1077 </plugins>
1078 </build>
1079 </profile>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001080 <!-- End of profiles from ONAP oparent -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04001081 </profiles>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -04001082</project>