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