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