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.2.0</version>
12 <groupId>org.onap.ccsdk.parent</groupId>
13 <artifactId>oparent</artifactId>
14 <version>2.3.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>
70 <!-- CCSDK component versions -->
71 <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>
74 <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>
80 <log4j.version>2.17.1</log4j.version>
81 <log4j2.version>2.17.1</log4j2.version>
82 <mariadb.connector.version>2.7.5</mariadb.connector.version>
83 <fasterxml.jackson.version>2.10.5</fasterxml.jackson.version>
84 <velocity.version>2.3</velocity.version>
85 <dmaap.listener.version>1.1.12</dmaap.listener.version>
86 <sdc.client.version>1.4.1</sdc.client.version>
87 <sdc.tosca.version>1.6.5</sdc.tosca.version>
89 <antlr.version>4.8-1</antlr.version>
92 <dependencyManagement>
95 <!-- keep groupId and version as plain and not as var,
96 otherwise ccsdk/distribution/dependencies is not resolving correctly -->
97 <groupId>org.onap.ccsdk.parent</groupId>
98 <artifactId>dependencies-bom</artifactId>
99 <version>2.3.5-SNAPSHOT</version>
101 <scope>import</scope>
104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-dependencies</artifactId>
106 <version>2.3.8.RELEASE</version>
108 <scope>import</scope>
111 <groupId>org.antlr</groupId>
112 <artifactId>antlr4-runtime</artifactId>
113 <version>${antlr.version}</version>
116 <groupId>org.mariadb.jdbc</groupId>
117 <artifactId>mariadb-java-client</artifactId>
118 <version>${mariadb.connector.version}</version>
121 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
122 <artifactId>sdc-distribution-client</artifactId>
123 <version>${sdc.client.version}</version>
124 <scope>compile</scope>
127 <groupId>org.onap.sdc.sdc-tosca</groupId>
128 <artifactId>sdc-tosca</artifactId>
129 <version>${sdc.tosca.version}</version>
130 <scope>compile</scope>
133 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
134 <artifactId>dmaapClient</artifactId>
135 <version>${dmaap.listener.version}</version>
138 </dependencyManagement>
141 <groupId>javax.annotation</groupId>
142 <artifactId>javax.annotation-api</artifactId>
143 <version>1.3.2</version>
146 <groupId>junit</groupId>
147 <artifactId>junit</artifactId>
151 <groupId>org.slf4j</groupId>
152 <artifactId>slf4j-api</artifactId>
153 <scope>provided</scope>
156 <groupId>org.slf4j</groupId>
157 <artifactId>slf4j-simple</artifactId>
161 <groupId>org.mockito</groupId>
162 <artifactId>mockito-core</artifactId>
163 <version>1.10.19</version>
167 <groupId>org.testng</groupId>
168 <artifactId>testng</artifactId>
169 <version>6.11</version>
177 <url>${onap.nexus.public-url}</url>
179 <enabled>true</enabled>
180 <updatePolicy>never</updatePolicy>
183 <enabled>true</enabled>
184 <updatePolicy>always</updatePolicy>
188 <id>onap-staging</id>
189 <url>${onap.nexus.staging-url}</url>
191 <enabled>true</enabled>
192 <updatePolicy>never</updatePolicy>
195 <enabled>true</enabled>
196 <updatePolicy>always</updatePolicy>
200 <id>ecomp-release</id>
201 <name>onap-repository-releases</name>
202 <url>${onap.nexus.release-url}</url>
204 <enabled>true</enabled>
205 <updatePolicy>never</updatePolicy>
208 <enabled>false</enabled>
212 <id>ecomp-snapshot</id>
213 <name>onap-repository-snapshots</name>
214 <url>${onap.nexus.snapshot-url}</url>
216 <enabled>false</enabled>
219 <enabled>true</enabled>
226 <url>${onap.nexus.public-url}</url>
228 <enabled>true</enabled>
231 <enabled>true</enabled>
235 <id>onap-staging</id>
236 <url>${onap.nexus.staging-url}</url>
238 <enabled>true</enabled>
241 <enabled>true</enabled>
245 <id>onap-snapshot</id>
246 <url>${onap.nexus.snapshot-url}</url>
248 <enabled>false</enabled>
251 <enabled>true</enabled>
254 <!-- Black Duck plugin dependencies -->
257 <name>JCenter Repository</name>
258 <url>http://jcenter.bintray.com</url>
262 <name>Restlet Repository</name>
263 <url>http://maven.restlet.com</url>
265 </pluginRepositories>
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-deploy-plugin</artifactId>
273 <!-- This version supports the "deployAtEnd" parameter -->
274 <version>2.8</version>
277 <deployAtEnd>true</deployAtEnd>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-compiler-plugin</artifactId>
283 <version>${maven-compiler-plugin.version}</version>
285 <release>${java.version}</release>
286 <!--explicitly remove source and target-->
287 <source combine.self="override"/>
288 <target combine.self="override"/>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-resources-plugin</artifactId>
294 <version>3.2.0</version>
297 <groupId>org.antlr</groupId>
298 <artifactId>antlr4-maven-plugin</artifactId>
299 <version>${antlr.version}</version>
304 <!-- Jacoco / Sonar -->
306 <groupId>org.jacoco</groupId>
307 <artifactId>jacoco-maven-plugin</artifactId>
308 <version>${jacoco.version}</version>
311 <id>pre-unit-test</id>
313 <goal>prepare-agent</goal>
316 <!-- Sets the path to the file which contains the execution data. -->
317 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
318 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
319 <propertyName>surefireArgLine</propertyName>
322 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
324 <id>post-unit-test</id>
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>
337 <id>pre-integration-test</id>
338 <phase>pre-integration-test</phase>
340 <goal>prepare-agent</goal>
343 <!-- Sets the path to the file which contains the execution data. -->
344 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
345 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
346 <propertyName>failsafeArgLine</propertyName>
349 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
351 <id>post-integration-test</id>
352 <phase>post-integration-test</phase>
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>
364 <id>default-prepare-agent</id>
366 <goal>prepare-agent</goal>
370 <id>default-report</id>
371 <phase>prepare-package</phase>
377 <id>default-check</id>
384 <element>PACKAGE</element>
387 <counter>COMPLEXITY</counter>
388 <value>COVEREDRATIO</value>
389 <minimum>0.0</minimum>
399 <groupId>org.codehaus.mojo</groupId>
400 <artifactId>versions-maven-plugin</artifactId>
401 <version>2.5</version>
403 <processAllModules>true</processAllModules>
407 <groupId>org.apache.felix</groupId>
408 <artifactId>maven-bundle-plugin</artifactId>
409 <version>${bundle.plugin.version}</version>
410 <extensions>true</extensions>
413 <groupId>org.eclipse.m2e</groupId>
414 <artifactId>lifecycle-mapping</artifactId>
415 <version>1.0.0</version>
417 <lifecycleMappingMetadata>
420 <pluginExecutionFilter>
421 <groupId>org.apache.felix</groupId>
422 <artifactId>maven-bundle-plugin</artifactId>
423 <versionRange>[1.0,)</versionRange>
425 <goal>manifest</goal>
427 </pluginExecutionFilter>
434 </lifecycleMappingMetadata>
442 <id>sonar-jacoco-aggregate</id>
445 <name>onap.jacoco.aggregateFile</name>
451 <groupId>org.jacoco</groupId>
452 <artifactId>jacoco-maven-plugin</artifactId>
459 <phase>generate-resources</phase>
461 <destFile>${onap.jacoco.aggregateFile}</destFile>
464 <directory>${project.basedir}</directory>
466 <include>**/target/code-coverage/*.exec</include>