blob: 1ec378d3c3df9a03b18ad90abf3581da7e916e51 [file] [log] [blame]
Dan Timoneyd7746ae2020-03-20 15:36:38 -04001<?xml version="1.0" encoding="UTF-8"?>
2<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">
3 <modelVersion>4.0.0</modelVersion>
4
5 <parent>
6 <groupId>org.onap.oparent</groupId>
7 <artifactId>oparent</artifactId>
Dan Timoney4b9f4f22021-03-22 15:09:59 -04008 <version>3.2.0</version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -04009 <relativePath/>
10 </parent>
11
12 <groupId>org.onap.ccsdk.parent</groupId>
13 <artifactId>oparent</artifactId>
Dan Timoney4be50502022-01-03 14:25:47 -050014 <version>2.3.3-SNAPSHOT</version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040015 <packaging>pom</packaging>
16
17 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
18 <description>Root POM to be used in place of oparent for CCSDK based projects</description>
19 <url>http://wiki.onap.org</url>
20 <organization>
21 <name>ONAP</name>
22 </organization>
23
24 <issueManagement>
25 <system>JIRA</system>
26 <url>https://jira.onap.org/</url>
27 </issueManagement>
Singal, Kapil (ks220y)7bc072e2021-06-09 17:31:32 -040028 <distributionManagement>
29 <repository>
30 <id>ecomp-releases</id>
31 <url>${onap.nexus.release-url}</url>
32 </repository>
33 <snapshotRepository>
34 <id>ecomp-snapshots</id>
35 <url>${onap.nexus.snapshot-url}</url>
36 </snapshotRepository>
37 </distributionManagement>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040038
39 <properties>
40 <!-- 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>
51 <!-- ONAP repositories -->
52 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
53 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
54 <onap.nexus.port>443</onap.nexus.port>
55 <onap.nexus.protocol>https</onap.nexus.protocol>
56 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
57 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
58 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
59 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
60 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
61 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
62
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010063 <java.version>11</java.version>
64 <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
65 <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
66 <bundle.plugin.version>4.2.1</bundle.plugin.version>
67 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040068 <checkstyle.skip>true</checkstyle.skip>
69
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010070 <!-- CCSDK component versions -->
Dan Timoneyfc006212021-10-05 15:55:28 -040071 <ccsdk.cds.version>(1.2.9999, 1.3.99999-SNAPSHOT]</ccsdk.cds.version>
72 <ccsdk.features.version>(1.2.99999, 1.3.99999-SNAPSHOT]</ccsdk.features.version>
73 <ccsdk.sli.version>(1.3.99999, 1.4.99999-SNAPSHOT]</ccsdk.sli.version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010074 <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
75 <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
76 <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
77 <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
78 <ccsdk.distribution.version>1.1.1-SNAPSHOT</ccsdk.distribution.version>
79
Dan Timoney156d2a92022-01-03 11:49:40 -050080 <log4j.version>2.17.1</log4j.version>
81 <log4j2.version>2.17.1</log4j2.version>
Michael DÜrre7bb133e2022-01-18 10:06:31 +010082 <mariadb.connector.version>2.7.5</mariadb.connector.version>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -040083 <fasterxml.jackson.version>2.10.5</fasterxml.jackson.version>
Dan Timoneyd9c8dcb2021-08-23 11:36:27 -040084 <velocity.version>2.3</velocity.version>
Dan Timoneydffc2f52021-06-09 16:28:07 -040085 <dmaap.listener.version>1.1.12</dmaap.listener.version>
Dan Timoney161996d2020-12-09 07:37:08 -050086 <sdc.client.version>1.4.1</sdc.client.version>
87 <sdc.tosca.version>1.6.5</sdc.tosca.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040088
Dan Timoney4b9f4f22021-03-22 15:09:59 -040089 <antlr.version>4.8-1</antlr.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040090 </properties>
91
92 <dependencyManagement>
93 <dependencies>
94 <dependency>
Michael DÜrre67cb8d52021-04-12 13:11:00 +020095 <!-- keep groupId and version as plain and not as var,
96 otherwise ccsdk/distribution/dependencies is not resolving correctly -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -040097 <groupId>org.onap.ccsdk.parent</groupId>
98 <artifactId>dependencies-bom</artifactId>
Dan Timoney4be50502022-01-03 14:25:47 -050099 <version>2.3.3-SNAPSHOT</version>
Dan Timoney5700b852021-01-29 12:38:52 -0500100 <type>pom</type>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500101 <scope>import</scope>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400102 </dependency>
103 <dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-dependencies</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100106 <version>2.3.8.RELEASE</version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100107 <type>pom</type>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400108 <scope>import</scope>
Dan Timoney161996d2020-12-09 07:37:08 -0500109 </dependency>
Dan Timoney4b9f4f22021-03-22 15:09:59 -0400110 <dependency>
111 <groupId>org.antlr</groupId>
112 <artifactId>antlr4-runtime</artifactId>
113 <version>${antlr.version}</version>
114 </dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500115 <dependency>
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100116 <groupId>org.mariadb.jdbc</groupId>
117 <artifactId>mariadb-java-client</artifactId>
118 <version>${mariadb.connector.version}</version>
119 </dependency>
120 <dependency>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400121 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
122 <artifactId>sdc-distribution-client</artifactId>
123 <version>${sdc.client.version}</version>
124 <scope>compile</scope>
125 </dependency>
126 <dependency>
127 <groupId>org.onap.sdc.sdc-tosca</groupId>
128 <artifactId>sdc-tosca</artifactId>
129 <version>${sdc.tosca.version}</version>
130 <scope>compile</scope>
131 </dependency>
132 <dependency>
133 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
134 <artifactId>dmaapClient</artifactId>
135 <version>${dmaap.listener.version}</version>
136 </dependency>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400137 </dependencies>
138 </dependencyManagement>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500139 <dependencies>
140 <dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500141 <groupId>javax.annotation</groupId>
142 <artifactId>javax.annotation-api</artifactId>
143 <version>1.3.2</version>
144 </dependency>
145 <dependency>
146 <groupId>junit</groupId>
147 <artifactId>junit</artifactId>
148 <scope>test</scope>
149 </dependency>
150 <dependency>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500151 <groupId>org.slf4j</groupId>
152 <artifactId>slf4j-api</artifactId>
153 <scope>provided</scope>
Dan Timoney161996d2020-12-09 07:37:08 -0500154 </dependency>
155 <dependency>
156 <groupId>org.slf4j</groupId>
157 <artifactId>slf4j-simple</artifactId>
158 <scope>test</scope>
159 </dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500160 <dependency>
161 <groupId>org.mockito</groupId>
162 <artifactId>mockito-core</artifactId>
163 <version>1.10.19</version>
164 <scope>test</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.testng</groupId>
168 <artifactId>testng</artifactId>
169 <version>6.11</version>
170 <scope>test</scope>
171 </dependency>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500172 </dependencies>
173
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400174 <repositories>
175 <repository>
176 <id>onap-public</id>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400177 <url>${onap.nexus.public-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400178 <releases>
179 <enabled>true</enabled>
180 <updatePolicy>never</updatePolicy>
181 </releases>
182 <snapshots>
183 <enabled>true</enabled>
184 <updatePolicy>always</updatePolicy>
185 </snapshots>
186 </repository>
187 <repository>
188 <id>onap-staging</id>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400189 <url>${onap.nexus.staging-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400190 <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>ecomp-release</id>
201 <name>onap-repository-releases</name>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400202 <url>${onap.nexus.release-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400203 <releases>
204 <enabled>true</enabled>
205 <updatePolicy>never</updatePolicy>
206 </releases>
207 <snapshots>
208 <enabled>false</enabled>
209 </snapshots>
210 </repository>
211 <repository>
212 <id>ecomp-snapshot</id>
213 <name>onap-repository-snapshots</name>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400214 <url>${onap.nexus.snapshot-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400215 <releases>
216 <enabled>false</enabled>
217 </releases>
218 <snapshots>
219 <enabled>true</enabled>
220 </snapshots>
221 </repository>
222 </repositories>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400223 <pluginRepositories>
224 <pluginRepository>
225 <id>onap-public</id>
226 <url>${onap.nexus.public-url}</url>
227 <releases>
228 <enabled>true</enabled>
229 </releases>
230 <snapshots>
231 <enabled>true</enabled>
232 </snapshots>
233 </pluginRepository>
234 <pluginRepository>
235 <id>onap-staging</id>
236 <url>${onap.nexus.staging-url}</url>
237 <releases>
238 <enabled>true</enabled>
239 </releases>
240 <snapshots>
241 <enabled>true</enabled>
242 </snapshots>
243 </pluginRepository>
244 <pluginRepository>
245 <id>onap-snapshot</id>
246 <url>${onap.nexus.snapshot-url}</url>
247 <releases>
248 <enabled>false</enabled>
249 </releases>
250 <snapshots>
251 <enabled>true</enabled>
252 </snapshots>
253 </pluginRepository>
254 <!-- Black Duck plugin dependencies -->
255 <pluginRepository>
256 <id>JCenter</id>
257 <name>JCenter Repository</name>
258 <url>http://jcenter.bintray.com</url>
259 </pluginRepository>
260 <pluginRepository>
261 <id>Restlet</id>
262 <name>Restlet Repository</name>
263 <url>http://maven.restlet.com</url>
264 </pluginRepository>
265 </pluginRepositories>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400266
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400267 <build>
268 <pluginManagement>
269 <plugins>
270 <plugin>
Dan Timoney161996d2020-12-09 07:37:08 -0500271 <groupId>org.apache.maven.plugins</groupId>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500272 <artifactId>maven-deploy-plugin</artifactId>
273 <!-- This version supports the "deployAtEnd" parameter -->
274 <version>2.8</version>
275 <configuration>
276 <skip/>
277 <deployAtEnd>true</deployAtEnd>
278 </configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100279 </plugin>
280 <plugin>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-compiler-plugin</artifactId>
283 <version>${maven-compiler-plugin.version}</version>
284 <configuration>
285 <release>${java.version}</release>
286 <!--explicitly remove source and target-->
287 <source combine.self="override"/>
288 <target combine.self="override"/>
289 </configuration>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500290 </plugin>
291 <plugin>
292 <groupId>org.apache.maven.plugins</groupId>
Dan Timoney161996d2020-12-09 07:37:08 -0500293 <artifactId>maven-resources-plugin</artifactId>
294 <version>3.2.0</version>
295 </plugin>
296 <plugin>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500297 <groupId>org.antlr</groupId>
298 <artifactId>antlr4-maven-plugin</artifactId>
Dan Timoney4b9f4f22021-03-22 15:09:59 -0400299 <version>${antlr.version}</version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400300 </plugin>
301 </plugins>
302 </pluginManagement>
303 <plugins>
304 <!-- Jacoco / Sonar -->
305 <plugin>
306 <groupId>org.jacoco</groupId>
307 <artifactId>jacoco-maven-plugin</artifactId>
308 <version>${jacoco.version}</version>
309 <executions>
310 <execution>
311 <id>pre-unit-test</id>
312 <goals>
313 <goal>prepare-agent</goal>
314 </goals>
315 <configuration>
316 <!-- Sets the path to the file which contains the execution data. -->
317 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400318 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400319 <propertyName>surefireArgLine</propertyName>
320 </configuration>
321 </execution>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400322 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400323 <execution>
324 <id>post-unit-test</id>
325 <phase>test</phase>
326 <goals>
327 <goal>report</goal>
328 </goals>
329 <configuration>
330 <!-- Sets the path to the file which contains the execution data. -->
331 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
332 <!-- Sets the output directory for the code coverage report. -->
333 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
334 </configuration>
335 </execution>
336 <execution>
337 <id>pre-integration-test</id>
338 <phase>pre-integration-test</phase>
339 <goals>
340 <goal>prepare-agent</goal>
341 </goals>
342 <configuration>
343 <!-- Sets the path to the file which contains the execution data. -->
344 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400345 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400346 <propertyName>failsafeArgLine</propertyName>
347 </configuration>
348 </execution>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400349 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400350 <execution>
351 <id>post-integration-test</id>
352 <phase>post-integration-test</phase>
353 <goals>
354 <goal>report</goal>
355 </goals>
356 <configuration>
357 <!-- Sets the path to the file which contains the execution data. -->
358 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
359 <!-- Sets the output directory for the code coverage report. -->
360 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
361 </configuration>
362 </execution>
363 <execution>
364 <id>default-prepare-agent</id>
365 <goals>
366 <goal>prepare-agent</goal>
367 </goals>
368 </execution>
369 <execution>
370 <id>default-report</id>
371 <phase>prepare-package</phase>
372 <goals>
373 <goal>report</goal>
374 </goals>
375 </execution>
376 <execution>
377 <id>default-check</id>
378 <goals>
379 <goal>check</goal>
380 </goals>
381 <configuration>
382 <rules>
383 <rule>
384 <element>PACKAGE</element>
385 <limits>
386 <limit>
387 <counter>COMPLEXITY</counter>
388 <value>COVEREDRATIO</value>
389 <minimum>0.0</minimum>
390 </limit>
391 </limits>
392 </rule>
393 </rules>
394 </configuration>
395 </execution>
396 </executions>
397 </plugin>
398 <plugin>
399 <groupId>org.codehaus.mojo</groupId>
400 <artifactId>versions-maven-plugin</artifactId>
401 <version>2.5</version>
402 <configuration>
403 <processAllModules>true</processAllModules>
404 </configuration>
405 </plugin>
406 <plugin>
407 <groupId>org.apache.felix</groupId>
408 <artifactId>maven-bundle-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100409 <version>${bundle.plugin.version}</version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400410 <extensions>true</extensions>
411 </plugin>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500412 <plugin>
413 <groupId>org.eclipse.m2e</groupId>
414 <artifactId>lifecycle-mapping</artifactId>
415 <version>1.0.0</version>
416 <configuration>
417 <lifecycleMappingMetadata>
418 <pluginExecutions>
419 <pluginExecution>
420 <pluginExecutionFilter>
421 <groupId>org.apache.felix</groupId>
422 <artifactId>maven-bundle-plugin</artifactId>
423 <versionRange>[1.0,)</versionRange>
424 <goals>
425 <goal>manifest</goal>
426 </goals>
427 </pluginExecutionFilter>
428 <action>
429 <execute />
430 <ignore />
431 </action>
432 </pluginExecution>
433 </pluginExecutions>
434 </lifecycleMappingMetadata>
435 </configuration>
436 </plugin>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400437 </plugins>
438 </build>
439
440 <profiles>
441 <profile>
442 <id>sonar-jacoco-aggregate</id>
443 <activation>
444 <property>
445 <name>onap.jacoco.aggregateFile</name>
446 </property>
447 </activation>
448 <build>
449 <plugins>
450 <plugin>
451 <groupId>org.jacoco</groupId>
452 <artifactId>jacoco-maven-plugin</artifactId>
453 <executions>
454 <execution>
455 <id>merge</id>
456 <goals>
457 <goal>merge</goal>
458 </goals>
459 <phase>generate-resources</phase>
460 <configuration>
461 <destFile>${onap.jacoco.aggregateFile}</destFile>
462 <fileSets>
463 <fileSet>
464 <directory>${project.basedir}</directory>
465 <includes>
466 <include>**/target/code-coverage/*.exec</include>
467 </includes>
468 </fileSet>
469 </fileSets>
470 </configuration>
471 </execution>
472 </executions>
473 </plugin>
474 </plugins>
475 </build>
476 </profile>
477 </profiles>
478</project>