blob: be59529c54ca6a8b567e85d2d582c40ff3b8d58c [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 Timoney59d34e42022-07-25 09:36:01 -04008 <version>3.3.1</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 Timoneyce639342023-11-09 12:28:22 -050014 <version>2.7.0-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 -->
Dan Timoney5ed8b042023-02-08 07:40:23 -050050 <jacoco.version>0.8.8</jacoco.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040051 <!-- 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
Dan Timoney5ed8b042023-02-08 07:40:23 -050063 <java.version>17</java.version>
64 <maven-surefire-plugin.version>3.0.0-M8</maven-surefire-plugin.version>
65 <maven-failsafe-plugin.version>3.0.0-M8</maven-failsafe-plugin.version>
Dan Timoneyeef985c2023-01-31 09:02:33 -050066 <bundle.plugin.version>5.1.1</bundle.plugin.version>
Dan Timoney5ed8b042023-02-08 07:40:23 -050067 <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040068 <checkstyle.skip>true</checkstyle.skip>
Dan Timoney59d34e42022-07-25 09:36:01 -040069 <logback.version>1.2.11</logback.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040070
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010071 <!-- CCSDK component versions -->
Dan Timoney655aa0b2023-11-10 11:05:33 -050072 <ccsdk.cds.version>(1.6.9999, 1.7.99999-SNAPSHOT]</ccsdk.cds.version>
73 <ccsdk.features.version>(1.6.99999, 1.7.99999-SNAPSHOT]</ccsdk.features.version>
74 <ccsdk.sli.version>(1.7.99999, 1.8.99999-SNAPSHOT]</ccsdk.sli.version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010075 <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
76 <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
77 <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
78 <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
Timoney, Dan (dt5972)fec4cef2022-10-24 15:10:54 -040079 <ccsdk.distribution.version>(1.4.9999, 1.5.99999-SNAPSHOT]</ccsdk.distribution.version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +010080
Dan Timoney156d2a92022-01-03 11:49:40 -050081 <log4j.version>2.17.1</log4j.version>
82 <log4j2.version>2.17.1</log4j2.version>
Michael DÜrre7bb133e2022-01-18 10:06:31 +010083 <mariadb.connector.version>2.7.5</mariadb.connector.version>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -040084 <fasterxml.jackson.version>2.10.5</fasterxml.jackson.version>
Dan Timoneyd9c8dcb2021-08-23 11:36:27 -040085 <velocity.version>2.3</velocity.version>
highstreetherbert54f98a12022-12-08 16:51:41 +010086 <dmaap.listener.version>1.1.14</dmaap.listener.version>
efiacord04c3e42022-11-23 16:01:13 +000087 <sdc.client.version>2.0.0</sdc.client.version>
Dan Timoney161996d2020-12-09 07:37:08 -050088 <sdc.tosca.version>1.6.5</sdc.tosca.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040089
Dan Timoney43836a92023-06-22 16:04:02 -040090 <antlr.version>4.12.0</antlr.version>
91 <antlr4.version>4.12.0</antlr4.version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -040092 </properties>
93
94 <dependencyManagement>
95 <dependencies>
96 <dependency>
Michael DÜrre67cb8d52021-04-12 13:11:00 +020097 <!-- keep groupId and version as plain and not as var,
98 otherwise ccsdk/distribution/dependencies is not resolving correctly -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -040099 <groupId>org.onap.ccsdk.parent</groupId>
100 <artifactId>dependencies-bom</artifactId>
Dan Timoneyce639342023-11-09 12:28:22 -0500101 <version>2.7.0-SNAPSHOT</version>
Dan Timoney5700b852021-01-29 12:38:52 -0500102 <type>pom</type>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500103 <scope>import</scope>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400104 </dependency>
105 <dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500106 <groupId>org.springframework.boot</groupId>
107 <artifactId>spring-boot-dependencies</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100108 <version>2.3.8.RELEASE</version>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100109 <type>pom</type>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400110 <scope>import</scope>
Dan Timoney161996d2020-12-09 07:37:08 -0500111 </dependency>
Dan Timoney4b9f4f22021-03-22 15:09:59 -0400112 <dependency>
113 <groupId>org.antlr</groupId>
114 <artifactId>antlr4-runtime</artifactId>
115 <version>${antlr.version}</version>
116 </dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500117 <dependency>
Michael DÜrre7bb133e2022-01-18 10:06:31 +0100118 <groupId>org.mariadb.jdbc</groupId>
119 <artifactId>mariadb-java-client</artifactId>
120 <version>${mariadb.connector.version}</version>
121 </dependency>
122 <dependency>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400123 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
124 <artifactId>sdc-distribution-client</artifactId>
125 <version>${sdc.client.version}</version>
126 <scope>compile</scope>
127 </dependency>
128 <dependency>
129 <groupId>org.onap.sdc.sdc-tosca</groupId>
130 <artifactId>sdc-tosca</artifactId>
131 <version>${sdc.tosca.version}</version>
132 <scope>compile</scope>
133 </dependency>
134 <dependency>
135 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
136 <artifactId>dmaapClient</artifactId>
137 <version>${dmaap.listener.version}</version>
138 </dependency>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400139 </dependencies>
140 </dependencyManagement>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500141 <dependencies>
142 <dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500143 <groupId>javax.annotation</groupId>
144 <artifactId>javax.annotation-api</artifactId>
145 <version>1.3.2</version>
146 </dependency>
147 <dependency>
148 <groupId>junit</groupId>
149 <artifactId>junit</artifactId>
150 <scope>test</scope>
151 </dependency>
152 <dependency>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500153 <groupId>org.slf4j</groupId>
154 <artifactId>slf4j-api</artifactId>
155 <scope>provided</scope>
Dan Timoney161996d2020-12-09 07:37:08 -0500156 </dependency>
157 <dependency>
158 <groupId>org.slf4j</groupId>
159 <artifactId>slf4j-simple</artifactId>
160 <scope>test</scope>
161 </dependency>
Dan Timoney161996d2020-12-09 07:37:08 -0500162 <dependency>
163 <groupId>org.mockito</groupId>
164 <artifactId>mockito-core</artifactId>
Dan Timoney29e355f2022-07-21 08:21:16 -0400165 <version>3.12.4</version>
Dan Timoney161996d2020-12-09 07:37:08 -0500166 <scope>test</scope>
167 </dependency>
168 <dependency>
169 <groupId>org.testng</groupId>
170 <artifactId>testng</artifactId>
171 <version>6.11</version>
172 <scope>test</scope>
173 </dependency>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500174 </dependencies>
175
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400176 <repositories>
177 <repository>
178 <id>onap-public</id>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400179 <url>${onap.nexus.public-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400180 <releases>
181 <enabled>true</enabled>
182 <updatePolicy>never</updatePolicy>
183 </releases>
184 <snapshots>
185 <enabled>true</enabled>
186 <updatePolicy>always</updatePolicy>
187 </snapshots>
188 </repository>
189 <repository>
190 <id>onap-staging</id>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400191 <url>${onap.nexus.staging-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400192 <releases>
193 <enabled>true</enabled>
194 <updatePolicy>never</updatePolicy>
195 </releases>
196 <snapshots>
197 <enabled>true</enabled>
198 <updatePolicy>always</updatePolicy>
199 </snapshots>
200 </repository>
201 <repository>
202 <id>ecomp-release</id>
203 <name>onap-repository-releases</name>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400204 <url>${onap.nexus.release-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400205 <releases>
206 <enabled>true</enabled>
207 <updatePolicy>never</updatePolicy>
208 </releases>
209 <snapshots>
210 <enabled>false</enabled>
211 </snapshots>
212 </repository>
213 <repository>
214 <id>ecomp-snapshot</id>
215 <name>onap-repository-snapshots</name>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400216 <url>${onap.nexus.snapshot-url}</url>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400217 <releases>
218 <enabled>false</enabled>
219 </releases>
220 <snapshots>
221 <enabled>true</enabled>
222 </snapshots>
223 </repository>
224 </repositories>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400225 <pluginRepositories>
226 <pluginRepository>
227 <id>onap-public</id>
228 <url>${onap.nexus.public-url}</url>
229 <releases>
230 <enabled>true</enabled>
231 </releases>
232 <snapshots>
233 <enabled>true</enabled>
234 </snapshots>
235 </pluginRepository>
236 <pluginRepository>
237 <id>onap-staging</id>
238 <url>${onap.nexus.staging-url}</url>
239 <releases>
240 <enabled>true</enabled>
241 </releases>
242 <snapshots>
243 <enabled>true</enabled>
244 </snapshots>
245 </pluginRepository>
246 <pluginRepository>
247 <id>onap-snapshot</id>
248 <url>${onap.nexus.snapshot-url}</url>
249 <releases>
250 <enabled>false</enabled>
251 </releases>
252 <snapshots>
253 <enabled>true</enabled>
254 </snapshots>
255 </pluginRepository>
256 <!-- Black Duck plugin dependencies -->
257 <pluginRepository>
258 <id>JCenter</id>
259 <name>JCenter Repository</name>
260 <url>http://jcenter.bintray.com</url>
261 </pluginRepository>
262 <pluginRepository>
263 <id>Restlet</id>
264 <name>Restlet Repository</name>
265 <url>http://maven.restlet.com</url>
266 </pluginRepository>
267 </pluginRepositories>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400268
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400269 <build>
270 <pluginManagement>
271 <plugins>
272 <plugin>
Dan Timoney161996d2020-12-09 07:37:08 -0500273 <groupId>org.apache.maven.plugins</groupId>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500274 <artifactId>maven-deploy-plugin</artifactId>
275 <!-- This version supports the "deployAtEnd" parameter -->
276 <version>2.8</version>
277 <configuration>
278 <skip/>
279 <deployAtEnd>true</deployAtEnd>
280 </configuration>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100281 </plugin>
282 <plugin>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-compiler-plugin</artifactId>
285 <version>${maven-compiler-plugin.version}</version>
286 <configuration>
287 <release>${java.version}</release>
288 <!--explicitly remove source and target-->
289 <source combine.self="override"/>
290 <target combine.self="override"/>
291 </configuration>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500292 </plugin>
293 <plugin>
294 <groupId>org.apache.maven.plugins</groupId>
Dan Timoney161996d2020-12-09 07:37:08 -0500295 <artifactId>maven-resources-plugin</artifactId>
296 <version>3.2.0</version>
297 </plugin>
298 <plugin>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500299 <groupId>org.antlr</groupId>
300 <artifactId>antlr4-maven-plugin</artifactId>
Dan Timoney4b9f4f22021-03-22 15:09:59 -0400301 <version>${antlr.version}</version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400302 </plugin>
303 </plugins>
304 </pluginManagement>
305 <plugins>
306 <!-- Jacoco / Sonar -->
307 <plugin>
308 <groupId>org.jacoco</groupId>
309 <artifactId>jacoco-maven-plugin</artifactId>
310 <version>${jacoco.version}</version>
311 <executions>
312 <execution>
313 <id>pre-unit-test</id>
314 <goals>
315 <goal>prepare-agent</goal>
316 </goals>
317 <configuration>
318 <!-- Sets the path to the file which contains the execution data. -->
319 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400320 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400321 <propertyName>surefireArgLine</propertyName>
322 </configuration>
323 </execution>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400324 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400325 <execution>
326 <id>post-unit-test</id>
327 <phase>test</phase>
328 <goals>
329 <goal>report</goal>
330 </goals>
331 <configuration>
332 <!-- Sets the path to the file which contains the execution data. -->
333 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
334 <!-- Sets the output directory for the code coverage report. -->
335 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
336 </configuration>
337 </execution>
338 <execution>
339 <id>pre-integration-test</id>
340 <phase>pre-integration-test</phase>
341 <goals>
342 <goal>prepare-agent</goal>
343 </goals>
344 <configuration>
345 <!-- Sets the path to the file which contains the execution data. -->
346 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400347 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400348 <propertyName>failsafeArgLine</propertyName>
349 </configuration>
350 </execution>
Singal, Kapil (ks220y)b473d3c2021-06-07 19:47:37 -0400351 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400352 <execution>
353 <id>post-integration-test</id>
354 <phase>post-integration-test</phase>
355 <goals>
356 <goal>report</goal>
357 </goals>
358 <configuration>
359 <!-- Sets the path to the file which contains the execution data. -->
360 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
361 <!-- Sets the output directory for the code coverage report. -->
362 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
363 </configuration>
364 </execution>
365 <execution>
366 <id>default-prepare-agent</id>
367 <goals>
368 <goal>prepare-agent</goal>
369 </goals>
370 </execution>
371 <execution>
372 <id>default-report</id>
373 <phase>prepare-package</phase>
374 <goals>
375 <goal>report</goal>
376 </goals>
377 </execution>
378 <execution>
379 <id>default-check</id>
380 <goals>
381 <goal>check</goal>
382 </goals>
383 <configuration>
384 <rules>
385 <rule>
386 <element>PACKAGE</element>
387 <limits>
388 <limit>
389 <counter>COMPLEXITY</counter>
390 <value>COVEREDRATIO</value>
391 <minimum>0.0</minimum>
392 </limit>
393 </limits>
394 </rule>
395 </rules>
396 </configuration>
397 </execution>
398 </executions>
399 </plugin>
400 <plugin>
401 <groupId>org.codehaus.mojo</groupId>
402 <artifactId>versions-maven-plugin</artifactId>
403 <version>2.5</version>
404 <configuration>
405 <processAllModules>true</processAllModules>
406 </configuration>
407 </plugin>
408 <plugin>
409 <groupId>org.apache.felix</groupId>
410 <artifactId>maven-bundle-plugin</artifactId>
Michael DÜrrec6bdd9a2020-12-01 13:34:56 +0100411 <version>${bundle.plugin.version}</version>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400412 <extensions>true</extensions>
413 </plugin>
Dan Timoneya265d5b2020-11-25 08:23:08 -0500414 <plugin>
415 <groupId>org.eclipse.m2e</groupId>
416 <artifactId>lifecycle-mapping</artifactId>
417 <version>1.0.0</version>
418 <configuration>
419 <lifecycleMappingMetadata>
420 <pluginExecutions>
421 <pluginExecution>
422 <pluginExecutionFilter>
423 <groupId>org.apache.felix</groupId>
424 <artifactId>maven-bundle-plugin</artifactId>
425 <versionRange>[1.0,)</versionRange>
426 <goals>
427 <goal>manifest</goal>
428 </goals>
429 </pluginExecutionFilter>
430 <action>
431 <execute />
432 <ignore />
433 </action>
434 </pluginExecution>
435 </pluginExecutions>
436 </lifecycleMappingMetadata>
437 </configuration>
438 </plugin>
Dan Timoneyd7746ae2020-03-20 15:36:38 -0400439 </plugins>
440 </build>
441
442 <profiles>
443 <profile>
444 <id>sonar-jacoco-aggregate</id>
445 <activation>
446 <property>
447 <name>onap.jacoco.aggregateFile</name>
448 </property>
449 </activation>
450 <build>
451 <plugins>
452 <plugin>
453 <groupId>org.jacoco</groupId>
454 <artifactId>jacoco-maven-plugin</artifactId>
455 <executions>
456 <execution>
457 <id>merge</id>
458 <goals>
459 <goal>merge</goal>
460 </goals>
461 <phase>generate-resources</phase>
462 <configuration>
463 <destFile>${onap.jacoco.aggregateFile}</destFile>
464 <fileSets>
465 <fileSet>
466 <directory>${project.basedir}</directory>
467 <includes>
468 <include>**/target/code-coverage/*.exec</include>
469 </includes>
470 </fileSet>
471 </fileSets>
472 </configuration>
473 </execution>
474 </executions>
475 </plugin>
476 </plugins>
477 </build>
478 </profile>
479 </profiles>
480</project>