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>standalone-parent</artifactId>
14 <version>2.3.2-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.source>1.8</java.version.source>
64 <java.version.target>1.8</java.version.target>
65 <bundle.plugin.version>2.5.0</bundle.plugin.version>
66 <checkstyle.skip>true</checkstyle.skip>
68 <log4j.version>2.15.0</log4j.version>
69 <log4j2.version>2.15.0</log4j2.version>
70 <mariadb.connector.version>2.7.2</mariadb.connector.version>
71 <fasterxml.jackson.version>2.12.4</fasterxml.jackson.version>
72 <velocity.version>2.3</velocity.version>
73 <dmaap.listener.version>1.1.12</dmaap.listener.version>
74 <sdc.client.version>1.4.1</sdc.client.version>
75 <sdc.tosca.version>1.6.5</sdc.tosca.version>
77 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
80 <dependencyManagement>
83 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
84 <artifactId>sdc-distribution-client</artifactId>
85 <version>${sdc.client.version}</version>
86 <scope>compile</scope>
89 <groupId>org.onap.sdc.sdc-tosca</groupId>
90 <artifactId>sdc-tosca</artifactId>
91 <version>${sdc.tosca.version}</version>
92 <scope>compile</scope>
95 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
96 <artifactId>dmaapClient</artifactId>
97 <version>${dmaap.listener.version}</version>
100 <groupId>org.slf4j</groupId>
101 <artifactId>slf4j-api</artifactId>
102 <version>1.7.29</version>
105 <groupId>org.apache.logging.log4j</groupId>
106 <artifactId>log4j-slf4j-impl</artifactId>
107 <version>2.15.0</version>
110 <groupId>com.fasterxml.jackson.core</groupId>
111 <artifactId>jackson-core</artifactId>
112 <version>${fasterxml.jackson.version}</version>
115 <groupId>com.fasterxml.jackson.core</groupId>
116 <artifactId>jackson-databind</artifactId>
117 <version>${fasterxml.jackson.version}</version>
120 <groupId>com.fasterxml.jackson.core</groupId>
121 <artifactId>jackson-annotations</artifactId>
122 <version>${fasterxml.jackson.version}</version>
125 <groupId>org.apache.velocity</groupId>
126 <artifactId>velocity-engine-core</artifactId>
127 <version>${velocity.version}</version>
130 <groupId>junit</groupId>
131 <artifactId>junit</artifactId>
132 <version>4.13.2</version>
136 <groupId>org.mockito</groupId>
137 <artifactId>mockito-core</artifactId>
138 <version>1.10.19</version>
142 <groupId>org.testng</groupId>
143 <artifactId>testng</artifactId>
144 <version>6.11</version>
148 <groupId>ch.vorburger.mariaDB4j</groupId>
149 <artifactId>mariaDB4j</artifactId>
150 <version>2.2.3</version>
154 </dependencyManagement>
159 <url>${onap.nexus.public-url}</url>
161 <enabled>true</enabled>
162 <updatePolicy>never</updatePolicy>
165 <enabled>true</enabled>
166 <updatePolicy>always</updatePolicy>
170 <id>onap-staging</id>
171 <url>${onap.nexus.staging-url}</url>
173 <enabled>true</enabled>
174 <updatePolicy>never</updatePolicy>
177 <enabled>true</enabled>
178 <updatePolicy>always</updatePolicy>
182 <id>ecomp-release</id>
183 <name>onap-repository-releases</name>
184 <url>${onap.nexus.release-url}</url>
186 <enabled>true</enabled>
187 <updatePolicy>never</updatePolicy>
190 <enabled>false</enabled>
194 <id>ecomp-snapshot</id>
195 <name>onap-repository-snapshots</name>
196 <url>${onap.nexus.snapshot-url}</url>
198 <enabled>false</enabled>
201 <enabled>true</enabled>
208 <url>${onap.nexus.public-url}</url>
210 <enabled>true</enabled>
213 <enabled>true</enabled>
217 <id>onap-staging</id>
218 <url>${onap.nexus.staging-url}</url>
220 <enabled>true</enabled>
223 <enabled>true</enabled>
227 <id>onap-snapshot</id>
228 <url>${onap.nexus.snapshot-url}</url>
230 <enabled>false</enabled>
233 <enabled>true</enabled>
236 <!-- Black Duck plugin dependencies -->
239 <name>JCenter Repository</name>
240 <url>http://jcenter.bintray.com</url>
244 <name>Restlet Repository</name>
245 <url>http://maven.restlet.com</url>
247 </pluginRepositories>
253 <groupId>org.apache.maven.plugins</groupId>
254 <artifactId>maven-deploy-plugin</artifactId>
255 <!-- This version supports the "deployAtEnd" parameter -->
256 <version>2.8</version>
259 <deployAtEnd>true</deployAtEnd>
263 <groupId>com.github.ferstl</groupId>
264 <artifactId>depgraph-maven-plugin</artifactId>
265 <version>3.3.0</version>
267 <graphFormat>text</graphFormat>
268 <outputFileName>${dependency-list.file}</outputFileName>
269 <outputDirectory>${project.basedir}</outputDirectory>
270 <transitiveExcludes>*</transitiveExcludes>
271 <showVersions>true</showVersions>
272 <showGroupIds>true</showGroupIds>
278 <!-- Jacoco / Sonar -->
280 <groupId>org.jacoco</groupId>
281 <artifactId>jacoco-maven-plugin</artifactId>
282 <version>${jacoco.version}</version>
285 <id>pre-unit-test</id>
287 <goal>prepare-agent</goal>
290 <!-- Sets the path to the file which contains the execution data. -->
291 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
292 <!-- Sets the name of the property containing the settings for JaCoCo
294 <propertyName>surefireArgLine</propertyName>
297 <!-- Ensures that the code coverage report for unit tests is created
298 after unit tests have been run. -->
300 <id>post-unit-test</id>
306 <!-- Sets the path to the file which contains the execution data. -->
307 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
308 <!-- Sets the output directory for the code coverage report. -->
309 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
313 <id>pre-integration-test</id>
314 <phase>pre-integration-test</phase>
316 <goal>prepare-agent</goal>
319 <!-- Sets the path to the file which contains the execution data. -->
320 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
321 <!-- Sets the name of the property containing the settings for JaCoCo
323 <propertyName>failsafeArgLine</propertyName>
326 <!-- Ensures that the code coverage report for integration tests after
327 integration tests have been run. -->
329 <id>post-integration-test</id>
330 <phase>post-integration-test</phase>
335 <!-- Sets the path to the file which contains the execution data. -->
336 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
337 <!-- Sets the output directory for the code coverage report. -->
338 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
342 <id>default-prepare-agent</id>
344 <goal>prepare-agent</goal>
348 <id>default-report</id>
349 <phase>prepare-package</phase>
355 <id>default-check</id>
362 <element>PACKAGE</element>
365 <counter>COMPLEXITY</counter>
366 <value>COVEREDRATIO</value>
367 <minimum>0.0</minimum>
377 <groupId>org.codehaus.mojo</groupId>
378 <artifactId>versions-maven-plugin</artifactId>
379 <version>2.5</version>
381 <processAllModules>true</processAllModules>
389 <id>sonar-jacoco-aggregate</id>
392 <name>onap.jacoco.aggregateFile</name>
398 <groupId>org.jacoco</groupId>
399 <artifactId>jacoco-maven-plugin</artifactId>
406 <phase>generate-resources</phase>
408 <destFile>${onap.jacoco.aggregateFile}</destFile>
411 <directory>${project.basedir}</directory>
413 <include>**/target/code-coverage/*.exec</include>