1 <?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>
6 <groupId>org.onap.oparent</groupId>
7 <artifactId>oparent</artifactId>
8 <version>3.3.1</version>
12 <groupId>org.onap.ccsdk.parent</groupId>
13 <artifactId>oparent</artifactId>
14 <version>2.7.0-SNAPSHOT</version>
15 <packaging>pom</packaging>
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>
26 <url>https://jira.onap.org/</url>
28 <distributionManagement>
30 <id>ecomp-releases</id>
31 <url>${onap.nexus.release-url}</url>
34 <id>ecomp-snapshots</id>
35 <url>${onap.nexus.snapshot-url}</url>
37 </distributionManagement>
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>
49 <!-- Jacoco properties -->
50 <jacoco.version>0.8.8</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>
63 <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>
66 <bundle.plugin.version>5.1.1</bundle.plugin.version>
67 <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
68 <checkstyle.skip>true</checkstyle.skip>
69 <logback.version>1.2.11</logback.version>
71 <!-- CCSDK component versions -->
72 <ccsdk.cds.version>(1.4.9999, 1.5.99999-SNAPSHOT]</ccsdk.cds.version>
73 <ccsdk.features.version>(1.4.99999, 1.5.99999-SNAPSHOT]</ccsdk.features.version>
74 <ccsdk.sli.version>(1.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.sli.version>
75 <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>
79 <ccsdk.distribution.version>(1.4.9999, 1.5.99999-SNAPSHOT]</ccsdk.distribution.version>
81 <log4j.version>2.17.1</log4j.version>
82 <log4j2.version>2.17.1</log4j2.version>
83 <mariadb.connector.version>2.7.5</mariadb.connector.version>
84 <fasterxml.jackson.version>2.10.5</fasterxml.jackson.version>
85 <velocity.version>2.3</velocity.version>
86 <dmaap.listener.version>1.1.14</dmaap.listener.version>
87 <sdc.client.version>2.0.0</sdc.client.version>
88 <sdc.tosca.version>1.6.5</sdc.tosca.version>
90 <antlr.version>4.12.0</antlr.version>
91 <antlr4.version>4.12.0</antlr4.version>
94 <dependencyManagement>
97 <!-- keep groupId and version as plain and not as var,
98 otherwise ccsdk/distribution/dependencies is not resolving correctly -->
99 <groupId>org.onap.ccsdk.parent</groupId>
100 <artifactId>dependencies-bom</artifactId>
101 <version>2.7.0-SNAPSHOT</version>
103 <scope>import</scope>
106 <groupId>org.springframework.boot</groupId>
107 <artifactId>spring-boot-dependencies</artifactId>
108 <version>2.3.8.RELEASE</version>
110 <scope>import</scope>
113 <groupId>org.antlr</groupId>
114 <artifactId>antlr4-runtime</artifactId>
115 <version>${antlr.version}</version>
118 <groupId>org.mariadb.jdbc</groupId>
119 <artifactId>mariadb-java-client</artifactId>
120 <version>${mariadb.connector.version}</version>
123 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
124 <artifactId>sdc-distribution-client</artifactId>
125 <version>${sdc.client.version}</version>
126 <scope>compile</scope>
129 <groupId>org.onap.sdc.sdc-tosca</groupId>
130 <artifactId>sdc-tosca</artifactId>
131 <version>${sdc.tosca.version}</version>
132 <scope>compile</scope>
135 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
136 <artifactId>dmaapClient</artifactId>
137 <version>${dmaap.listener.version}</version>
140 </dependencyManagement>
143 <groupId>javax.annotation</groupId>
144 <artifactId>javax.annotation-api</artifactId>
145 <version>1.3.2</version>
148 <groupId>junit</groupId>
149 <artifactId>junit</artifactId>
153 <groupId>org.slf4j</groupId>
154 <artifactId>slf4j-api</artifactId>
155 <scope>provided</scope>
158 <groupId>org.slf4j</groupId>
159 <artifactId>slf4j-simple</artifactId>
163 <groupId>org.mockito</groupId>
164 <artifactId>mockito-core</artifactId>
165 <version>3.12.4</version>
169 <groupId>org.testng</groupId>
170 <artifactId>testng</artifactId>
171 <version>6.11</version>
179 <url>${onap.nexus.public-url}</url>
181 <enabled>true</enabled>
182 <updatePolicy>never</updatePolicy>
185 <enabled>true</enabled>
186 <updatePolicy>always</updatePolicy>
190 <id>onap-staging</id>
191 <url>${onap.nexus.staging-url}</url>
193 <enabled>true</enabled>
194 <updatePolicy>never</updatePolicy>
197 <enabled>true</enabled>
198 <updatePolicy>always</updatePolicy>
202 <id>ecomp-release</id>
203 <name>onap-repository-releases</name>
204 <url>${onap.nexus.release-url}</url>
206 <enabled>true</enabled>
207 <updatePolicy>never</updatePolicy>
210 <enabled>false</enabled>
214 <id>ecomp-snapshot</id>
215 <name>onap-repository-snapshots</name>
216 <url>${onap.nexus.snapshot-url}</url>
218 <enabled>false</enabled>
221 <enabled>true</enabled>
228 <url>${onap.nexus.public-url}</url>
230 <enabled>true</enabled>
233 <enabled>true</enabled>
237 <id>onap-staging</id>
238 <url>${onap.nexus.staging-url}</url>
240 <enabled>true</enabled>
243 <enabled>true</enabled>
247 <id>onap-snapshot</id>
248 <url>${onap.nexus.snapshot-url}</url>
250 <enabled>false</enabled>
253 <enabled>true</enabled>
256 <!-- Black Duck plugin dependencies -->
259 <name>JCenter Repository</name>
260 <url>http://jcenter.bintray.com</url>
264 <name>Restlet Repository</name>
265 <url>http://maven.restlet.com</url>
267 </pluginRepositories>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-deploy-plugin</artifactId>
275 <!-- This version supports the "deployAtEnd" parameter -->
276 <version>2.8</version>
279 <deployAtEnd>true</deployAtEnd>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-compiler-plugin</artifactId>
285 <version>${maven-compiler-plugin.version}</version>
287 <release>${java.version}</release>
288 <!--explicitly remove source and target-->
289 <source combine.self="override"/>
290 <target combine.self="override"/>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-resources-plugin</artifactId>
296 <version>3.2.0</version>
299 <groupId>org.antlr</groupId>
300 <artifactId>antlr4-maven-plugin</artifactId>
301 <version>${antlr.version}</version>
306 <!-- Jacoco / Sonar -->
308 <groupId>org.jacoco</groupId>
309 <artifactId>jacoco-maven-plugin</artifactId>
310 <version>${jacoco.version}</version>
313 <id>pre-unit-test</id>
315 <goal>prepare-agent</goal>
318 <!-- Sets the path to the file which contains the execution data. -->
319 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
320 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
321 <propertyName>surefireArgLine</propertyName>
324 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
326 <id>post-unit-test</id>
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>
339 <id>pre-integration-test</id>
340 <phase>pre-integration-test</phase>
342 <goal>prepare-agent</goal>
345 <!-- Sets the path to the file which contains the execution data. -->
346 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
347 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
348 <propertyName>failsafeArgLine</propertyName>
351 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
353 <id>post-integration-test</id>
354 <phase>post-integration-test</phase>
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>
366 <id>default-prepare-agent</id>
368 <goal>prepare-agent</goal>
372 <id>default-report</id>
373 <phase>prepare-package</phase>
379 <id>default-check</id>
386 <element>PACKAGE</element>
389 <counter>COMPLEXITY</counter>
390 <value>COVEREDRATIO</value>
391 <minimum>0.0</minimum>
401 <groupId>org.codehaus.mojo</groupId>
402 <artifactId>versions-maven-plugin</artifactId>
403 <version>2.5</version>
405 <processAllModules>true</processAllModules>
409 <groupId>org.apache.felix</groupId>
410 <artifactId>maven-bundle-plugin</artifactId>
411 <version>${bundle.plugin.version}</version>
412 <extensions>true</extensions>
415 <groupId>org.eclipse.m2e</groupId>
416 <artifactId>lifecycle-mapping</artifactId>
417 <version>1.0.0</version>
419 <lifecycleMappingMetadata>
422 <pluginExecutionFilter>
423 <groupId>org.apache.felix</groupId>
424 <artifactId>maven-bundle-plugin</artifactId>
425 <versionRange>[1.0,)</versionRange>
427 <goal>manifest</goal>
429 </pluginExecutionFilter>
436 </lifecycleMappingMetadata>
444 <id>sonar-jacoco-aggregate</id>
447 <name>onap.jacoco.aggregateFile</name>
453 <groupId>org.jacoco</groupId>
454 <artifactId>jacoco-maven-plugin</artifactId>
461 <phase>generate-resources</phase>
463 <destFile>${onap.jacoco.aggregateFile}</destFile>
466 <directory>${project.basedir}</directory>
468 <include>**/target/code-coverage/*.exec</include>