Updating logging-analytics version from 1.6.6 to 1.6.9
[ccsdk/parent.git] / oparent / pom.xml
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>
4
5     <parent>
6         <groupId>org.onap.oparent</groupId>
7         <artifactId>oparent</artifactId>
8         <version>3.2.0</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.parent</groupId>
13     <artifactId>oparent</artifactId>
14     <version>2.2.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
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>
20     <organization>
21         <name>ONAP</name>
22     </organization>
23
24     <issueManagement>
25         <system>JIRA</system>
26         <url>https://jira.onap.org/</url>
27     </issueManagement>
28
29     <properties>
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>
38
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>
52
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>
59
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>
69
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>
73
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>
77
78         <antlr.version>4.8-1</antlr.version>
79     </properties>
80
81     <dependencyManagement>
82         <dependencies>
83             <dependency>
84                 <!-- keep groupId and version as plain and not as var,
85                 otherwise ccsdk/distribution/dependencies is not resolving correctly -->
86                 <groupId>org.onap.ccsdk.parent</groupId>
87                 <artifactId>dependencies-bom</artifactId>
88                 <version>2.2.0-SNAPSHOT</version>
89                 <type>pom</type>
90                 <scope>import</scope>
91             </dependency>
92             <dependency>
93                 <groupId>org.springframework.boot</groupId>
94                 <artifactId>spring-boot-dependencies</artifactId>
95                 <version>2.3.8.RELEASE</version>
96                 <type>pom</type>
97                 <scope>import</scope>
98             </dependency>
99             <dependency>
100                  <groupId>org.antlr</groupId>
101                  <artifactId>antlr4-runtime</artifactId>
102                  <version>${antlr.version}</version>
103             </dependency>
104             <dependency>
105                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
106                 <artifactId>sdc-distribution-client</artifactId>
107                 <version>${sdc.client.version}</version>
108                 <scope>compile</scope>
109             </dependency>
110             <dependency>
111                 <groupId>org.onap.sdc.sdc-tosca</groupId>
112                 <artifactId>sdc-tosca</artifactId>
113                 <version>${sdc.tosca.version}</version>
114                 <scope>compile</scope>
115             </dependency>
116             <dependency>
117                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
118                 <artifactId>dmaapClient</artifactId>
119                 <version>${dmaap.listener.version}</version>
120             </dependency>
121         </dependencies>
122     </dependencyManagement>
123     <dependencies>
124         <dependency>
125             <groupId>javax.annotation</groupId>
126             <artifactId>javax.annotation-api</artifactId>
127             <version>1.3.2</version>
128         </dependency>
129         <dependency>
130             <groupId>junit</groupId>
131             <artifactId>junit</artifactId>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.slf4j</groupId>
136             <artifactId>slf4j-api</artifactId>
137             <scope>provided</scope>
138         </dependency>
139         <dependency>
140             <groupId>org.slf4j</groupId>
141             <artifactId>slf4j-simple</artifactId>
142             <scope>test</scope>
143         </dependency>
144         <dependency>
145             <groupId>org.mockito</groupId>
146             <artifactId>mockito-core</artifactId>
147             <version>1.10.19</version>
148             <scope>test</scope>
149         </dependency>
150         <dependency>
151             <groupId>org.testng</groupId>
152             <artifactId>testng</artifactId>
153             <version>6.11</version>
154             <scope>test</scope>
155         </dependency>
156     </dependencies>
157
158     <repositories>
159         <repository>
160             <id>onap-public</id>
161             <url>${onap.nexus.public-url}</url>
162             <releases>
163                 <enabled>true</enabled>
164                 <updatePolicy>never</updatePolicy>
165             </releases>
166             <snapshots>
167                 <enabled>true</enabled>
168                 <updatePolicy>always</updatePolicy>
169             </snapshots>
170         </repository>
171         <repository>
172             <id>onap-staging</id>
173             <url>${onap.nexus.staging-url}</url>
174             <releases>
175                 <enabled>true</enabled>
176                 <updatePolicy>never</updatePolicy>
177             </releases>
178             <snapshots>
179                 <enabled>true</enabled>
180                 <updatePolicy>always</updatePolicy>
181             </snapshots>
182         </repository>
183         <repository>
184             <id>ecomp-release</id>
185             <name>onap-repository-releases</name>
186             <url>${onap.nexus.release-url}</url>
187             <releases>
188                 <enabled>true</enabled>
189                 <updatePolicy>never</updatePolicy>
190             </releases>
191             <snapshots>
192                 <enabled>false</enabled>
193             </snapshots>
194         </repository>
195         <repository>
196             <id>ecomp-snapshot</id>
197             <name>onap-repository-snapshots</name>
198             <url>${onap.nexus.snapshot-url}</url>
199             <releases>
200                 <enabled>false</enabled>
201             </releases>
202             <snapshots>
203                 <enabled>true</enabled>
204             </snapshots>
205         </repository>
206     </repositories>
207     <pluginRepositories>
208         <pluginRepository>
209             <id>onap-public</id>
210             <url>${onap.nexus.public-url}</url>
211             <releases>
212                 <enabled>true</enabled>
213             </releases>
214             <snapshots>
215                 <enabled>true</enabled>
216             </snapshots>
217         </pluginRepository>
218         <pluginRepository>
219             <id>onap-staging</id>
220             <url>${onap.nexus.staging-url}</url>
221             <releases>
222                 <enabled>true</enabled>
223             </releases>
224             <snapshots>
225                 <enabled>true</enabled>
226             </snapshots>
227         </pluginRepository>
228         <pluginRepository>
229             <id>onap-snapshot</id>
230             <url>${onap.nexus.snapshot-url}</url>
231             <releases>
232                 <enabled>false</enabled>
233             </releases>
234             <snapshots>
235                 <enabled>true</enabled>
236             </snapshots>
237         </pluginRepository>
238         <!-- Black Duck plugin dependencies -->
239         <pluginRepository>
240             <id>JCenter</id>
241             <name>JCenter Repository</name>
242             <url>http://jcenter.bintray.com</url>
243         </pluginRepository>
244         <pluginRepository>
245             <id>Restlet</id>
246             <name>Restlet Repository</name>
247             <url>http://maven.restlet.com</url>
248         </pluginRepository>
249     </pluginRepositories>
250
251     <build>
252         <pluginManagement>
253             <plugins>
254                 <plugin>
255                     <groupId>org.apache.maven.plugins</groupId>
256                     <artifactId>maven-deploy-plugin</artifactId>
257                     <!-- This version supports the "deployAtEnd" parameter -->
258                     <version>2.8</version>
259                     <configuration>
260                         <skip/>
261                         <deployAtEnd>true</deployAtEnd>
262                     </configuration>
263                  </plugin>
264                  <plugin>
265                     <groupId>org.apache.maven.plugins</groupId>
266                     <artifactId>maven-compiler-plugin</artifactId>
267                     <version>${maven-compiler-plugin.version}</version>
268                     <configuration>
269                         <release>${java.version}</release>
270                         <!--explicitly remove source and target-->
271                         <source combine.self="override"/>
272                         <target combine.self="override"/>
273                     </configuration>
274                 </plugin>
275                 <plugin>
276                     <groupId>org.apache.maven.plugins</groupId>
277                     <artifactId>maven-resources-plugin</artifactId>
278                     <version>3.2.0</version>
279                 </plugin>
280                 <plugin>
281                     <groupId>org.antlr</groupId>
282                     <artifactId>antlr4-maven-plugin</artifactId>
283                     <version>${antlr.version}</version>
284                 </plugin>
285             </plugins>
286         </pluginManagement>
287         <plugins>
288             <!-- Jacoco / Sonar -->
289             <plugin>
290                 <groupId>org.jacoco</groupId>
291                 <artifactId>jacoco-maven-plugin</artifactId>
292                 <version>${jacoco.version}</version>
293                 <executions>
294                     <execution>
295                         <id>pre-unit-test</id>
296                         <goals>
297                             <goal>prepare-agent</goal>
298                         </goals>
299                         <configuration>
300                             <!-- Sets the path to the file which contains the execution data. -->
301                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
302                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
303                             <propertyName>surefireArgLine</propertyName>
304                         </configuration>
305                     </execution>
306                     <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
307                     <execution>
308                         <id>post-unit-test</id>
309                         <phase>test</phase>
310                         <goals>
311                             <goal>report</goal>
312                         </goals>
313                         <configuration>
314                             <!-- Sets the path to the file which contains the execution data. -->
315                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
316                             <!-- Sets the output directory for the code coverage report. -->
317                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
318                         </configuration>
319                     </execution>
320                     <execution>
321                         <id>pre-integration-test</id>
322                         <phase>pre-integration-test</phase>
323                         <goals>
324                             <goal>prepare-agent</goal>
325                         </goals>
326                         <configuration>
327                             <!-- Sets the path to the file which contains the execution data. -->
328                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
329                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
330                             <propertyName>failsafeArgLine</propertyName>
331                         </configuration>
332                     </execution>
333                     <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
334                     <execution>
335                         <id>post-integration-test</id>
336                         <phase>post-integration-test</phase>
337                         <goals>
338                             <goal>report</goal>
339                         </goals>
340                         <configuration>
341                             <!-- Sets the path to the file which contains the execution data. -->
342                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
343                             <!-- Sets the output directory for the code coverage report. -->
344                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
345                         </configuration>
346                     </execution>
347                     <execution>
348                         <id>default-prepare-agent</id>
349                         <goals>
350                             <goal>prepare-agent</goal>
351                         </goals>
352                     </execution>
353                     <execution>
354                         <id>default-report</id>
355                         <phase>prepare-package</phase>
356                         <goals>
357                             <goal>report</goal>
358                         </goals>
359                     </execution>
360                     <execution>
361                         <id>default-check</id>
362                         <goals>
363                             <goal>check</goal>
364                         </goals>
365                         <configuration>
366                             <rules>
367                                 <rule>
368                                     <element>PACKAGE</element>
369                                     <limits>
370                                         <limit>
371                                             <counter>COMPLEXITY</counter>
372                                             <value>COVEREDRATIO</value>
373                                             <minimum>0.0</minimum>
374                                         </limit>
375                                     </limits>
376                                 </rule>
377                             </rules>
378                         </configuration>
379                     </execution>
380                 </executions>
381             </plugin>
382             <plugin>
383                 <groupId>org.codehaus.mojo</groupId>
384                 <artifactId>versions-maven-plugin</artifactId>
385                 <version>2.5</version>
386                 <configuration>
387                     <processAllModules>true</processAllModules>
388                 </configuration>
389             </plugin>
390             <plugin>
391                 <groupId>org.apache.felix</groupId>
392                 <artifactId>maven-bundle-plugin</artifactId>
393                 <version>${bundle.plugin.version}</version>
394                 <extensions>true</extensions>
395             </plugin>
396             <plugin>
397                 <groupId>org.eclipse.m2e</groupId>
398                 <artifactId>lifecycle-mapping</artifactId>
399                 <version>1.0.0</version>
400                 <configuration>
401                     <lifecycleMappingMetadata>
402                         <pluginExecutions>
403                             <pluginExecution>
404                                 <pluginExecutionFilter>
405                                     <groupId>org.apache.felix</groupId>
406                                     <artifactId>maven-bundle-plugin</artifactId>
407                                     <versionRange>[1.0,)</versionRange>
408                                     <goals>
409                                         <goal>manifest</goal>
410                                     </goals>
411                                 </pluginExecutionFilter>
412                                 <action>
413                                     <execute />
414                                     <ignore />
415                                 </action>
416                             </pluginExecution>
417                         </pluginExecutions>
418                     </lifecycleMappingMetadata>
419                 </configuration>
420             </plugin>
421         </plugins>
422     </build>
423
424     <profiles>
425         <profile>
426             <id>sonar-jacoco-aggregate</id>
427             <activation>
428                 <property>
429                     <name>onap.jacoco.aggregateFile</name>
430                 </property>
431             </activation>
432             <build>
433                 <plugins>
434                     <plugin>
435                         <groupId>org.jacoco</groupId>
436                         <artifactId>jacoco-maven-plugin</artifactId>
437                         <executions>
438                             <execution>
439                                 <id>merge</id>
440                                 <goals>
441                                     <goal>merge</goal>
442                                 </goals>
443                                 <phase>generate-resources</phase>
444                                 <configuration>
445                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
446                                     <fileSets>
447                                         <fileSet>
448                                             <directory>${project.basedir}</directory>
449                                             <includes>
450                                                 <include>**/target/code-coverage/*.exec</include>
451                                             </includes>
452                                         </fileSet>
453                                     </fileSets>
454                                 </configuration>
455                             </execution>
456                         </executions>
457                     </plugin>
458                 </plugins>
459             </build>
460         </profile>
461     </profiles>
462 </project>