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.2.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>
30 <!-- Sonar properties -->
31 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
32 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
33 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
34 <!-- Default Sonar configuration -->
35 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
36 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
37 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
39 <!-- Jacoco properties -->
40 <jacoco.version>0.8.5</jacoco.version>
41 <!-- ONAP repositories -->
42 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
43 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
44 <onap.nexus.port>443</onap.nexus.port>
45 <onap.nexus.protocol>https</onap.nexus.protocol>
46 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
47 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
48 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
49 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
50 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
51 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
53 <java.version>11</java.version>
54 <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
55 <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
56 <bundle.plugin.version>4.2.1</bundle.plugin.version>
57 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
58 <checkstyle.skip>true</checkstyle.skip>
60 <!-- CCSDK component versions -->
61 <ccsdk.cds.version>1.2.0-SNAPSHOT</ccsdk.cds.version>
62 <ccsdk.features.version>1.2.0-SNAPSHOT</ccsdk.features.version>
63 <ccsdk.sli.version>1.3.0-SNAPSHOT</ccsdk.sli.version>
64 <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
65 <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
66 <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
67 <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
68 <ccsdk.distribution.version>1.1.1-SNAPSHOT</ccsdk.distribution.version>
70 <mariadb.connector.version>2.1.1</mariadb.connector.version>
71 <fasterxml.jackson.version>2.10.0</fasterxml.jackson.version>
72 <velocity.version>2.0</velocity.version>
74 <dmaap.listener.version>1.1.5</dmaap.listener.version>
75 <sdc.client.version>1.4.1</sdc.client.version>
76 <sdc.tosca.version>1.6.5</sdc.tosca.version>
78 <antlr.version>4.8-1</antlr.version>
82 <dependencyManagement>
85 <groupId>org.onap.ccsdk.parent</groupId>
86 <artifactId>dependencies-bom</artifactId>
87 <version>2.2.0-SNAPSHOT</version>
92 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-dependencies</artifactId>
94 <version>2.3.8.RELEASE</version>
99 <groupId>org.antlr</groupId>
100 <artifactId>antlr4-runtime</artifactId>
101 <version>${antlr.version}</version>
104 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
105 <artifactId>sdc-distribution-client</artifactId>
106 <version>${sdc.client.version}</version>
107 <scope>compile</scope>
110 <groupId>org.onap.sdc.sdc-tosca</groupId>
111 <artifactId>sdc-tosca</artifactId>
112 <version>${sdc.tosca.version}</version>
113 <scope>compile</scope>
116 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
117 <artifactId>dmaapClient</artifactId>
118 <version>${dmaap.listener.version}</version>
121 </dependencyManagement>
124 <groupId>javax.annotation</groupId>
125 <artifactId>javax.annotation-api</artifactId>
126 <version>1.3.2</version>
129 <groupId>junit</groupId>
130 <artifactId>junit</artifactId>
134 <groupId>org.slf4j</groupId>
135 <artifactId>slf4j-api</artifactId>
136 <scope>provided</scope>
139 <groupId>org.slf4j</groupId>
140 <artifactId>slf4j-simple</artifactId>
145 <groupId>org.mockito</groupId>
146 <artifactId>mockito-core</artifactId>
147 <version>1.10.19</version>
151 <groupId>org.testng</groupId>
152 <artifactId>testng</artifactId>
153 <version>6.11</version>
161 <url>https://nexus.onap.org/content/groups/public</url>
163 <enabled>true</enabled>
164 <updatePolicy>never</updatePolicy>
167 <enabled>true</enabled>
168 <updatePolicy>always</updatePolicy>
172 <id>onap-staging</id>
173 <url>https://nexus.onap.org/content/groups/staging</url>
175 <enabled>true</enabled>
176 <updatePolicy>never</updatePolicy>
179 <enabled>true</enabled>
180 <updatePolicy>always</updatePolicy>
184 <id>ecomp-release</id>
185 <name>onap-repository-releases</name>
186 <url>https://nexus.onap.org/content/repositories/releases</url>
188 <enabled>true</enabled>
189 <updatePolicy>never</updatePolicy>
192 <enabled>false</enabled>
196 <id>ecomp-snapshot</id>
197 <name>onap-repository-snapshots</name>
198 <url>https://nexus.onap.org/content/repositories/snapshots</url>
200 <enabled>false</enabled>
203 <enabled>true</enabled>
212 <groupId>org.apache.maven.plugins</groupId>
213 <artifactId>maven-deploy-plugin</artifactId>
214 <!-- This version supports the "deployAtEnd" parameter -->
215 <version>2.8</version>
218 <deployAtEnd>true</deployAtEnd>
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-compiler-plugin</artifactId>
224 <version>${maven-compiler-plugin.version}</version>
226 <release>${java.version}</release>
227 <!--explicitly remove source and target-->
228 <source combine.self="override"/>
229 <target combine.self="override"/>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-resources-plugin</artifactId>
235 <version>3.2.0</version>
238 <groupId>org.antlr</groupId>
239 <artifactId>antlr4-maven-plugin</artifactId>
240 <version>${antlr.version}</version>
245 <!-- Jacoco / Sonar -->
247 <groupId>org.jacoco</groupId>
248 <artifactId>jacoco-maven-plugin</artifactId>
249 <version>${jacoco.version}</version>
252 <id>pre-unit-test</id>
254 <goal>prepare-agent</goal>
257 <!-- Sets the path to the file which contains the execution data. -->
258 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
259 <!-- Sets the name of the property containing the settings for JaCoCo
261 <propertyName>surefireArgLine</propertyName>
264 <!-- Ensures that the code coverage report for unit tests is created
265 after unit tests have been run. -->
267 <id>post-unit-test</id>
273 <!-- Sets the path to the file which contains the execution data. -->
274 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
275 <!-- Sets the output directory for the code coverage report. -->
276 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
280 <id>pre-integration-test</id>
281 <phase>pre-integration-test</phase>
283 <goal>prepare-agent</goal>
286 <!-- Sets the path to the file which contains the execution data. -->
287 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
288 <!-- Sets the name of the property containing the settings for JaCoCo
290 <propertyName>failsafeArgLine</propertyName>
293 <!-- Ensures that the code coverage report for integration tests after
294 integration tests have been run. -->
296 <id>post-integration-test</id>
297 <phase>post-integration-test</phase>
302 <!-- Sets the path to the file which contains the execution data. -->
303 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
304 <!-- Sets the output directory for the code coverage report. -->
305 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
309 <id>default-prepare-agent</id>
311 <goal>prepare-agent</goal>
315 <id>default-report</id>
316 <phase>prepare-package</phase>
322 <id>default-check</id>
329 <element>PACKAGE</element>
332 <counter>COMPLEXITY</counter>
333 <value>COVEREDRATIO</value>
334 <minimum>0.0</minimum>
344 <groupId>org.codehaus.mojo</groupId>
345 <artifactId>versions-maven-plugin</artifactId>
346 <version>2.5</version>
348 <processAllModules>true</processAllModules>
352 <groupId>org.apache.felix</groupId>
353 <artifactId>maven-bundle-plugin</artifactId>
354 <version>${bundle.plugin.version}</version>
355 <extensions>true</extensions>
358 <groupId>org.eclipse.m2e</groupId>
359 <artifactId>lifecycle-mapping</artifactId>
360 <version>1.0.0</version>
362 <lifecycleMappingMetadata>
365 <pluginExecutionFilter>
366 <groupId>org.apache.felix</groupId>
367 <artifactId>maven-bundle-plugin</artifactId>
368 <versionRange>[1.0,)</versionRange>
370 <goal>manifest</goal>
372 </pluginExecutionFilter>
379 </lifecycleMappingMetadata>
387 <id>sonar-jacoco-aggregate</id>
390 <name>onap.jacoco.aggregateFile</name>
396 <groupId>org.jacoco</groupId>
397 <artifactId>jacoco-maven-plugin</artifactId>
404 <phase>generate-resources</phase>
406 <destFile>${onap.jacoco.aggregateFile}</destFile>
409 <directory>${project.basedir}</directory>
411 <include>**/target/code-coverage/*.exec</include>