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