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.1.0</version>
12 <groupId>org.onap.ccsdk.parent</groupId>
13 <artifactId>oparent</artifactId>
14 <version>2.1.1-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.source>1.8</java.version.source>
54 <java.version.target>1.8</java.version.target>
55 <bundle.plugin.version>2.5.0</bundle.plugin.version>
56 <checkstyle.skip>true</checkstyle.skip>
58 <mariadb.connector.version>2.1.1</mariadb.connector.version>
59 <fasterxml.jackson.version>2.10.0</fasterxml.jackson.version>
60 <velocity.version>2.0</velocity.version>
62 <dmaap.listener.version>1.1.5</dmaap.listener.version>
63 <sdc.client.version>1.4.1</sdc.client.version>
64 <sdc.tosca.version>1.6.5</sdc.tosca.version>
68 <dependencyManagement>
71 <groupId>org.onap.ccsdk.parent</groupId>
72 <artifactId>dependencies-bom</artifactId>
73 <version>2.1.1-SNAPSHOT</version>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-dependencies</artifactId>
80 <version>2.3.5.RELEASE</version>
86 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
87 <artifactId>sdc-distribution-client</artifactId>
88 <version>${sdc.client.version}</version>
89 <scope>compile</scope>
92 <groupId>org.onap.sdc.sdc-tosca</groupId>
93 <artifactId>sdc-tosca</artifactId>
94 <version>${sdc.tosca.version}</version>
95 <scope>compile</scope>
98 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
99 <artifactId>dmaapClient</artifactId>
100 <version>${dmaap.listener.version}</version>
103 </dependencyManagement>
106 <groupId>javax.annotation</groupId>
107 <artifactId>javax.annotation-api</artifactId>
108 <version>1.3.2</version>
111 <groupId>junit</groupId>
112 <artifactId>junit</artifactId>
116 <groupId>org.slf4j</groupId>
117 <artifactId>slf4j-api</artifactId>
118 <scope>provided</scope>
121 <groupId>org.slf4j</groupId>
122 <artifactId>slf4j-simple</artifactId>
127 <groupId>org.mockito</groupId>
128 <artifactId>mockito-core</artifactId>
129 <version>1.10.19</version>
133 <groupId>org.testng</groupId>
134 <artifactId>testng</artifactId>
135 <version>6.11</version>
143 <url>https://nexus.onap.org/content/groups/public</url>
145 <enabled>true</enabled>
146 <updatePolicy>never</updatePolicy>
149 <enabled>true</enabled>
150 <updatePolicy>always</updatePolicy>
154 <id>onap-staging</id>
155 <url>https://nexus.onap.org/content/groups/staging</url>
157 <enabled>true</enabled>
158 <updatePolicy>never</updatePolicy>
161 <enabled>true</enabled>
162 <updatePolicy>always</updatePolicy>
166 <id>ecomp-release</id>
167 <name>onap-repository-releases</name>
168 <url>https://nexus.onap.org/content/repositories/releases</url>
170 <enabled>true</enabled>
171 <updatePolicy>never</updatePolicy>
174 <enabled>false</enabled>
178 <id>ecomp-snapshot</id>
179 <name>onap-repository-snapshots</name>
180 <url>https://nexus.onap.org/content/repositories/snapshots</url>
182 <enabled>false</enabled>
185 <enabled>true</enabled>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-deploy-plugin</artifactId>
196 <!-- This version supports the "deployAtEnd" parameter -->
197 <version>2.8</version>
200 <deployAtEnd>true</deployAtEnd>
204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-resources-plugin</artifactId>
206 <version>3.2.0</version>
209 <groupId>org.antlr</groupId>
210 <artifactId>antlr4-maven-plugin</artifactId>
211 <version>4.7.2</version>
216 <!-- Jacoco / Sonar -->
218 <groupId>org.jacoco</groupId>
219 <artifactId>jacoco-maven-plugin</artifactId>
220 <version>${jacoco.version}</version>
223 <id>pre-unit-test</id>
225 <goal>prepare-agent</goal>
228 <!-- Sets the path to the file which contains the execution data. -->
229 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
230 <!-- Sets the name of the property containing the settings for JaCoCo
232 <propertyName>surefireArgLine</propertyName>
235 <!-- Ensures that the code coverage report for unit tests is created
236 after unit tests have been run. -->
238 <id>post-unit-test</id>
244 <!-- Sets the path to the file which contains the execution data. -->
245 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
246 <!-- Sets the output directory for the code coverage report. -->
247 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
251 <id>pre-integration-test</id>
252 <phase>pre-integration-test</phase>
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-it.exec</destFile>
259 <!-- Sets the name of the property containing the settings for JaCoCo
261 <propertyName>failsafeArgLine</propertyName>
264 <!-- Ensures that the code coverage report for integration tests after
265 integration tests have been run. -->
267 <id>post-integration-test</id>
268 <phase>post-integration-test</phase>
273 <!-- Sets the path to the file which contains the execution data. -->
274 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
275 <!-- Sets the output directory for the code coverage report. -->
276 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
280 <id>default-prepare-agent</id>
282 <goal>prepare-agent</goal>
286 <id>default-report</id>
287 <phase>prepare-package</phase>
293 <id>default-check</id>
300 <element>PACKAGE</element>
303 <counter>COMPLEXITY</counter>
304 <value>COVEREDRATIO</value>
305 <minimum>0.0</minimum>
315 <groupId>org.codehaus.mojo</groupId>
316 <artifactId>versions-maven-plugin</artifactId>
317 <version>2.5</version>
319 <processAllModules>true</processAllModules>
323 <groupId>org.apache.felix</groupId>
324 <artifactId>maven-bundle-plugin</artifactId>
325 <version>4.2.1</version>
326 <extensions>true</extensions>
329 <groupId>org.eclipse.m2e</groupId>
330 <artifactId>lifecycle-mapping</artifactId>
331 <version>1.0.0</version>
333 <lifecycleMappingMetadata>
336 <pluginExecutionFilter>
337 <groupId>org.apache.felix</groupId>
338 <artifactId>maven-bundle-plugin</artifactId>
339 <versionRange>[1.0,)</versionRange>
341 <goal>manifest</goal>
343 </pluginExecutionFilter>
350 </lifecycleMappingMetadata>
358 <id>sonar-jacoco-aggregate</id>
361 <name>onap.jacoco.aggregateFile</name>
367 <groupId>org.jacoco</groupId>
368 <artifactId>jacoco-maven-plugin</artifactId>
375 <phase>generate-resources</phase>
377 <destFile>${onap.jacoco.aggregateFile}</destFile>
380 <directory>${project.basedir}</directory>
382 <include>**/target/code-coverage/*.exec</include>