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>
108 <groupId>javax.annotation</groupId>
109 <artifactId>javax.annotation-api</artifactId>
110 <version>1.3.2</version>
113 <groupId>junit</groupId>
114 <artifactId>junit</artifactId>
118 <groupId>org.slf4j</groupId>
119 <artifactId>slf4j-api</artifactId>
120 <scope>provided</scope>
123 <groupId>org.slf4j</groupId>
124 <artifactId>slf4j-simple</artifactId>
129 <groupId>org.mockito</groupId>
130 <artifactId>mockito-core</artifactId>
131 <version>1.10.19</version>
135 <groupId>org.testng</groupId>
136 <artifactId>testng</artifactId>
137 <version>6.11</version>
145 <url>https://nexus.onap.org/content/groups/public</url>
147 <enabled>true</enabled>
148 <updatePolicy>never</updatePolicy>
151 <enabled>true</enabled>
152 <updatePolicy>always</updatePolicy>
156 <id>onap-staging</id>
157 <url>https://nexus.onap.org/content/groups/staging</url>
159 <enabled>true</enabled>
160 <updatePolicy>never</updatePolicy>
163 <enabled>true</enabled>
164 <updatePolicy>always</updatePolicy>
168 <id>ecomp-release</id>
169 <name>onap-repository-releases</name>
170 <url>https://nexus.onap.org/content/repositories/releases</url>
172 <enabled>true</enabled>
173 <updatePolicy>never</updatePolicy>
176 <enabled>false</enabled>
180 <id>ecomp-snapshot</id>
181 <name>onap-repository-snapshots</name>
182 <url>https://nexus.onap.org/content/repositories/snapshots</url>
184 <enabled>false</enabled>
187 <enabled>true</enabled>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-resources-plugin</artifactId>
199 <version>3.2.0</version>
202 <groupId>org.antlr</groupId>
203 <artifactId>antlr4-maven-plugin</artifactId>
204 <version>4.7.2</version>
209 <!-- Jacoco / Sonar -->
211 <groupId>org.jacoco</groupId>
212 <artifactId>jacoco-maven-plugin</artifactId>
213 <version>${jacoco.version}</version>
216 <id>pre-unit-test</id>
218 <goal>prepare-agent</goal>
221 <!-- Sets the path to the file which contains the execution data. -->
222 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
223 <!-- Sets the name of the property containing the settings for JaCoCo
225 <propertyName>surefireArgLine</propertyName>
228 <!-- Ensures that the code coverage report for unit tests is created
229 after unit tests have been run. -->
231 <id>post-unit-test</id>
237 <!-- Sets the path to the file which contains the execution data. -->
238 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
239 <!-- Sets the output directory for the code coverage report. -->
240 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
244 <id>pre-integration-test</id>
245 <phase>pre-integration-test</phase>
247 <goal>prepare-agent</goal>
250 <!-- Sets the path to the file which contains the execution data. -->
251 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
252 <!-- Sets the name of the property containing the settings for JaCoCo
254 <propertyName>failsafeArgLine</propertyName>
257 <!-- Ensures that the code coverage report for integration tests after
258 integration tests have been run. -->
260 <id>post-integration-test</id>
261 <phase>post-integration-test</phase>
266 <!-- Sets the path to the file which contains the execution data. -->
267 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
268 <!-- Sets the output directory for the code coverage report. -->
269 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
273 <id>default-prepare-agent</id>
275 <goal>prepare-agent</goal>
279 <id>default-report</id>
280 <phase>prepare-package</phase>
286 <id>default-check</id>
293 <element>PACKAGE</element>
296 <counter>COMPLEXITY</counter>
297 <value>COVEREDRATIO</value>
298 <minimum>0.0</minimum>
308 <groupId>org.codehaus.mojo</groupId>
309 <artifactId>versions-maven-plugin</artifactId>
310 <version>2.5</version>
312 <processAllModules>true</processAllModules>
316 <groupId>org.apache.felix</groupId>
317 <artifactId>maven-bundle-plugin</artifactId>
318 <version>4.2.1</version>
319 <extensions>true</extensions>
322 <groupId>org.eclipse.m2e</groupId>
323 <artifactId>lifecycle-mapping</artifactId>
324 <version>1.0.0</version>
326 <lifecycleMappingMetadata>
329 <pluginExecutionFilter>
330 <groupId>org.apache.felix</groupId>
331 <artifactId>maven-bundle-plugin</artifactId>
332 <versionRange>[1.0,)</versionRange>
334 <goal>manifest</goal>
336 </pluginExecutionFilter>
343 </lifecycleMappingMetadata>
351 <id>sonar-jacoco-aggregate</id>
354 <name>onap.jacoco.aggregateFile</name>
360 <groupId>org.jacoco</groupId>
361 <artifactId>jacoco-maven-plugin</artifactId>
368 <phase>generate-resources</phase>
370 <destFile>${onap.jacoco.aggregateFile}</destFile>
373 <directory>${project.basedir}</directory>
375 <include>**/target/code-coverage/*.exec</include>