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.4.5-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.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>
63 <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>
68 <checkstyle.skip>true</checkstyle.skip>
69 <logback.version>1.2.11</logback.version>
71 <!-- CCSDK component versions -->
72 <ccsdk.cds.version>(1.3.9999, 1.4.99999-SNAPSHOT]</ccsdk.cds.version>
73 <ccsdk.features.version>(1.3.99999, 1.4.99999-SNAPSHOT]</ccsdk.features.version>
74 <ccsdk.sli.version>(1.4.99999, 1.5.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.1.1-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.12</dmaap.listener.version>
87 <sdc.client.version>1.4.1</sdc.client.version>
88 <sdc.tosca.version>1.6.5</sdc.tosca.version>
90 <antlr.version>4.8-1</antlr.version>
93 <dependencyManagement>
96 <!-- keep groupId and version as plain and not as var,
97 otherwise ccsdk/distribution/dependencies is not resolving correctly -->
98 <groupId>org.onap.ccsdk.parent</groupId>
99 <artifactId>dependencies-bom</artifactId>
100 <version>2.4.5-SNAPSHOT</version>
102 <scope>import</scope>
105 <groupId>org.springframework.boot</groupId>
106 <artifactId>spring-boot-dependencies</artifactId>
107 <version>2.3.8.RELEASE</version>
109 <scope>import</scope>
112 <groupId>org.antlr</groupId>
113 <artifactId>antlr4-runtime</artifactId>
114 <version>${antlr.version}</version>
117 <groupId>org.mariadb.jdbc</groupId>
118 <artifactId>mariadb-java-client</artifactId>
119 <version>${mariadb.connector.version}</version>
122 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
123 <artifactId>sdc-distribution-client</artifactId>
124 <version>${sdc.client.version}</version>
125 <scope>compile</scope>
128 <groupId>org.onap.sdc.sdc-tosca</groupId>
129 <artifactId>sdc-tosca</artifactId>
130 <version>${sdc.tosca.version}</version>
131 <scope>compile</scope>
134 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
135 <artifactId>dmaapClient</artifactId>
136 <version>${dmaap.listener.version}</version>
139 </dependencyManagement>
142 <groupId>javax.annotation</groupId>
143 <artifactId>javax.annotation-api</artifactId>
144 <version>1.3.2</version>
147 <groupId>junit</groupId>
148 <artifactId>junit</artifactId>
152 <groupId>org.slf4j</groupId>
153 <artifactId>slf4j-api</artifactId>
154 <scope>provided</scope>
157 <groupId>org.slf4j</groupId>
158 <artifactId>slf4j-simple</artifactId>
162 <groupId>org.mockito</groupId>
163 <artifactId>mockito-core</artifactId>
164 <version>3.12.4</version>
168 <groupId>org.testng</groupId>
169 <artifactId>testng</artifactId>
170 <version>6.11</version>
178 <url>${onap.nexus.public-url}</url>
180 <enabled>true</enabled>
181 <updatePolicy>never</updatePolicy>
184 <enabled>true</enabled>
185 <updatePolicy>always</updatePolicy>
189 <id>onap-staging</id>
190 <url>${onap.nexus.staging-url}</url>
192 <enabled>true</enabled>
193 <updatePolicy>never</updatePolicy>
196 <enabled>true</enabled>
197 <updatePolicy>always</updatePolicy>
201 <id>ecomp-release</id>
202 <name>onap-repository-releases</name>
203 <url>${onap.nexus.release-url}</url>
205 <enabled>true</enabled>
206 <updatePolicy>never</updatePolicy>
209 <enabled>false</enabled>
213 <id>ecomp-snapshot</id>
214 <name>onap-repository-snapshots</name>
215 <url>${onap.nexus.snapshot-url}</url>
217 <enabled>false</enabled>
220 <enabled>true</enabled>
227 <url>${onap.nexus.public-url}</url>
229 <enabled>true</enabled>
232 <enabled>true</enabled>
236 <id>onap-staging</id>
237 <url>${onap.nexus.staging-url}</url>
239 <enabled>true</enabled>
242 <enabled>true</enabled>
246 <id>onap-snapshot</id>
247 <url>${onap.nexus.snapshot-url}</url>
249 <enabled>false</enabled>
252 <enabled>true</enabled>
255 <!-- Black Duck plugin dependencies -->
258 <name>JCenter Repository</name>
259 <url>http://jcenter.bintray.com</url>
263 <name>Restlet Repository</name>
264 <url>http://maven.restlet.com</url>
266 </pluginRepositories>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-deploy-plugin</artifactId>
274 <!-- This version supports the "deployAtEnd" parameter -->
275 <version>2.8</version>
278 <deployAtEnd>true</deployAtEnd>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-compiler-plugin</artifactId>
284 <version>${maven-compiler-plugin.version}</version>
286 <release>${java.version}</release>
287 <!--explicitly remove source and target-->
288 <source combine.self="override"/>
289 <target combine.self="override"/>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-resources-plugin</artifactId>
295 <version>3.2.0</version>
298 <groupId>org.antlr</groupId>
299 <artifactId>antlr4-maven-plugin</artifactId>
300 <version>${antlr.version}</version>
305 <!-- Jacoco / Sonar -->
307 <groupId>org.jacoco</groupId>
308 <artifactId>jacoco-maven-plugin</artifactId>
309 <version>${jacoco.version}</version>
312 <id>pre-unit-test</id>
314 <goal>prepare-agent</goal>
317 <!-- Sets the path to the file which contains the execution data. -->
318 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
319 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
320 <propertyName>surefireArgLine</propertyName>
323 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
325 <id>post-unit-test</id>
331 <!-- Sets the path to the file which contains the execution data. -->
332 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
333 <!-- Sets the output directory for the code coverage report. -->
334 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
338 <id>pre-integration-test</id>
339 <phase>pre-integration-test</phase>
341 <goal>prepare-agent</goal>
344 <!-- Sets the path to the file which contains the execution data. -->
345 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
346 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
347 <propertyName>failsafeArgLine</propertyName>
350 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
352 <id>post-integration-test</id>
353 <phase>post-integration-test</phase>
358 <!-- Sets the path to the file which contains the execution data. -->
359 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
360 <!-- Sets the output directory for the code coverage report. -->
361 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
365 <id>default-prepare-agent</id>
367 <goal>prepare-agent</goal>
371 <id>default-report</id>
372 <phase>prepare-package</phase>
378 <id>default-check</id>
385 <element>PACKAGE</element>
388 <counter>COMPLEXITY</counter>
389 <value>COVEREDRATIO</value>
390 <minimum>0.0</minimum>
400 <groupId>org.codehaus.mojo</groupId>
401 <artifactId>versions-maven-plugin</artifactId>
402 <version>2.5</version>
404 <processAllModules>true</processAllModules>
408 <groupId>org.apache.felix</groupId>
409 <artifactId>maven-bundle-plugin</artifactId>
410 <version>${bundle.plugin.version}</version>
411 <extensions>true</extensions>
414 <groupId>org.eclipse.m2e</groupId>
415 <artifactId>lifecycle-mapping</artifactId>
416 <version>1.0.0</version>
418 <lifecycleMappingMetadata>
421 <pluginExecutionFilter>
422 <groupId>org.apache.felix</groupId>
423 <artifactId>maven-bundle-plugin</artifactId>
424 <versionRange>[1.0,)</versionRange>
426 <goal>manifest</goal>
428 </pluginExecutionFilter>
435 </lifecycleMappingMetadata>
443 <id>sonar-jacoco-aggregate</id>
446 <name>onap.jacoco.aggregateFile</name>
452 <groupId>org.jacoco</groupId>
453 <artifactId>jacoco-maven-plugin</artifactId>
460 <phase>generate-resources</phase>
462 <destFile>${onap.jacoco.aggregateFile}</destFile>
465 <directory>${project.basedir}</directory>
467 <include>**/target/code-coverage/*.exec</include>