ccsdk parents for alu-sr0
[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.1-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.1-SNAPSHOT</ccsdk.cds.version>
62         <ccsdk.features.version>1.1.1-SNAPSHOT</ccsdk.features.version>
63         <ccsdk.sli.version>1.2.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     </properties>
79
80     <dependencyManagement>
81         <dependencies>
82             <dependency>
83                 <groupId>org.onap.ccsdk.parent</groupId>
84                 <artifactId>dependencies-bom</artifactId>
85                 <version>2.1.1-SNAPSHOT</version>
86                 <type>pom</type>
87                 <scope>import</scope>
88             </dependency>
89             <dependency>
90                 <groupId>org.springframework.boot</groupId>
91                 <artifactId>spring-boot-dependencies</artifactId>
92                 <version>2.3.8.RELEASE</version>
93                 <scope>import</scope>
94                 <type>pom</type>
95             </dependency>
96
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
117
118     <dependencies>
119         <dependency>
120             <groupId>javax.annotation</groupId>
121             <artifactId>javax.annotation-api</artifactId>
122             <version>1.3.2</version>
123         </dependency>
124         <dependency>
125             <groupId>junit</groupId>
126             <artifactId>junit</artifactId>
127             <scope>test</scope>
128         </dependency>
129         <dependency>
130             <groupId>org.slf4j</groupId>
131             <artifactId>slf4j-api</artifactId>
132             <scope>provided</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.slf4j</groupId>
136             <artifactId>slf4j-simple</artifactId>
137             <scope>test</scope>
138         </dependency>
139
140         <dependency>
141             <groupId>org.mockito</groupId>
142             <artifactId>mockito-core</artifactId>
143             <version>1.10.19</version>
144             <scope>test</scope>
145         </dependency>
146         <dependency>
147             <groupId>org.testng</groupId>
148             <artifactId>testng</artifactId>
149             <version>6.11</version>
150             <scope>test</scope>
151         </dependency>
152     </dependencies>
153
154     <repositories>
155         <repository>
156             <id>onap-public</id>
157             <url>https://nexus.onap.org/content/groups/public</url>
158             <releases>
159                 <enabled>true</enabled>
160                 <updatePolicy>never</updatePolicy>
161             </releases>
162             <snapshots>
163                 <enabled>true</enabled>
164                 <updatePolicy>always</updatePolicy>
165             </snapshots>
166         </repository>
167         <repository>
168             <id>onap-staging</id>
169             <url>https://nexus.onap.org/content/groups/staging</url>
170             <releases>
171                 <enabled>true</enabled>
172                 <updatePolicy>never</updatePolicy>
173             </releases>
174             <snapshots>
175                 <enabled>true</enabled>
176                 <updatePolicy>always</updatePolicy>
177             </snapshots>
178         </repository>
179         <repository>
180             <id>ecomp-release</id>
181             <name>onap-repository-releases</name>
182             <url>https://nexus.onap.org/content/repositories/releases</url>
183             <releases>
184                 <enabled>true</enabled>
185                 <updatePolicy>never</updatePolicy>
186             </releases>
187             <snapshots>
188                 <enabled>false</enabled>
189             </snapshots>
190         </repository>
191         <repository>
192             <id>ecomp-snapshot</id>
193             <name>onap-repository-snapshots</name>
194             <url>https://nexus.onap.org/content/repositories/snapshots</url>
195             <releases>
196                 <enabled>false</enabled>
197             </releases>
198             <snapshots>
199                 <enabled>true</enabled>
200             </snapshots>
201         </repository>
202     </repositories>
203
204     <build>
205         <pluginManagement>
206             <plugins>
207                 <plugin>
208                     <groupId>org.apache.maven.plugins</groupId>
209                     <artifactId>maven-compiler-plugin</artifactId>
210                     <version>${maven-compiler-plugin.version}</version>
211                     <configuration>
212                         <release>${java.version}</release>
213                         <!--explicitly remove source and target-->
214                         <source combine.self="override"/>
215                         <target combine.self="override"/>
216                     </configuration>
217                 </plugin>
218                 <plugin>
219                     <groupId>org.apache.maven.plugins</groupId>
220                     <artifactId>maven-resources-plugin</artifactId>
221                     <version>3.2.0</version>
222                 </plugin>
223                 <plugin>
224                     <groupId>org.antlr</groupId>
225                     <artifactId>antlr4-maven-plugin</artifactId>
226                     <version>4.7.2</version>
227                 </plugin>
228             </plugins>
229         </pluginManagement>
230         <plugins>
231             <!-- Jacoco / Sonar -->
232             <plugin>
233                 <groupId>org.jacoco</groupId>
234                 <artifactId>jacoco-maven-plugin</artifactId>
235                 <version>${jacoco.version}</version>
236                 <executions>
237                     <execution>
238                         <id>pre-unit-test</id>
239                         <goals>
240                             <goal>prepare-agent</goal>
241                         </goals>
242                         <configuration>
243                             <!-- Sets the path to the file which contains the execution data. -->
244                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
245                             <!-- Sets the name of the property containing the settings for JaCoCo
246                                                                  runtime agent. -->
247                             <propertyName>surefireArgLine</propertyName>
248                         </configuration>
249                     </execution>
250                     <!-- Ensures that the code coverage report for unit tests is created
251                                                  after unit tests have been run. -->
252                     <execution>
253                         <id>post-unit-test</id>
254                         <phase>test</phase>
255                         <goals>
256                             <goal>report</goal>
257                         </goals>
258                         <configuration>
259                             <!-- Sets the path to the file which contains the execution data. -->
260                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
261                             <!-- Sets the output directory for the code coverage report. -->
262                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
263                         </configuration>
264                     </execution>
265                     <execution>
266                         <id>pre-integration-test</id>
267                         <phase>pre-integration-test</phase>
268                         <goals>
269                             <goal>prepare-agent</goal>
270                         </goals>
271                         <configuration>
272                             <!-- Sets the path to the file which contains the execution data. -->
273                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
274                             <!-- Sets the name of the property containing the settings for JaCoCo
275                                                                  runtime agent. -->
276                             <propertyName>failsafeArgLine</propertyName>
277                         </configuration>
278                     </execution>
279                     <!-- Ensures that the code coverage report for integration tests after
280                                                  integration tests have been run. -->
281                     <execution>
282                         <id>post-integration-test</id>
283                         <phase>post-integration-test</phase>
284                         <goals>
285                             <goal>report</goal>
286                         </goals>
287                         <configuration>
288                             <!-- Sets the path to the file which contains the execution data. -->
289                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
290                             <!-- Sets the output directory for the code coverage report. -->
291                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
292                         </configuration>
293                     </execution>
294                     <execution>
295                         <id>default-prepare-agent</id>
296                         <goals>
297                             <goal>prepare-agent</goal>
298                         </goals>
299                     </execution>
300                     <execution>
301                         <id>default-report</id>
302                         <phase>prepare-package</phase>
303                         <goals>
304                             <goal>report</goal>
305                         </goals>
306                     </execution>
307                     <execution>
308                         <id>default-check</id>
309                         <goals>
310                             <goal>check</goal>
311                         </goals>
312                         <configuration>
313                             <rules>
314                                 <rule>
315                                     <element>PACKAGE</element>
316                                     <limits>
317                                         <limit>
318                                             <counter>COMPLEXITY</counter>
319                                             <value>COVEREDRATIO</value>
320                                             <minimum>0.0</minimum>
321                                         </limit>
322                                     </limits>
323                                 </rule>
324                             </rules>
325                         </configuration>
326                     </execution>
327                 </executions>
328             </plugin>
329             <plugin>
330                 <groupId>org.codehaus.mojo</groupId>
331                 <artifactId>versions-maven-plugin</artifactId>
332                 <version>2.5</version>
333                 <configuration>
334                     <processAllModules>true</processAllModules>
335                 </configuration>
336             </plugin>
337             <plugin>
338                 <groupId>org.apache.felix</groupId>
339                 <artifactId>maven-bundle-plugin</artifactId>
340                 <version>${bundle.plugin.version}</version>
341                 <extensions>true</extensions>
342             </plugin>
343             <plugin>
344                 <groupId>org.eclipse.m2e</groupId>
345                 <artifactId>lifecycle-mapping</artifactId>
346                 <version>1.0.0</version>
347                 <configuration>
348                     <lifecycleMappingMetadata>
349                         <pluginExecutions>
350                             <pluginExecution>
351                                 <pluginExecutionFilter>
352                                     <groupId>org.apache.felix</groupId>
353                                     <artifactId>maven-bundle-plugin</artifactId>
354                                     <versionRange>[1.0,)</versionRange>
355                                     <goals>
356                                         <goal>manifest</goal>
357                                     </goals>
358                                 </pluginExecutionFilter>
359                                 <action>
360                                     <execute />
361                                     <ignore />
362                                 </action>
363                             </pluginExecution>
364                         </pluginExecutions>
365                     </lifecycleMappingMetadata>
366                 </configuration>
367             </plugin>
368         </plugins>
369     </build>
370
371     <profiles>
372         <profile>
373             <id>sonar-jacoco-aggregate</id>
374             <activation>
375                 <property>
376                     <name>onap.jacoco.aggregateFile</name>
377                 </property>
378             </activation>
379             <build>
380                 <plugins>
381                     <plugin>
382                         <groupId>org.jacoco</groupId>
383                         <artifactId>jacoco-maven-plugin</artifactId>
384                         <executions>
385                             <execution>
386                                 <id>merge</id>
387                                 <goals>
388                                     <goal>merge</goal>
389                                 </goals>
390                                 <phase>generate-resources</phase>
391                                 <configuration>
392                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
393                                     <fileSets>
394                                         <fileSet>
395                                             <directory>${project.basedir}</directory>
396                                             <includes>
397                                                 <include>**/target/code-coverage/*.exec</include>
398                                             </includes>
399                                         </fileSet>
400                                     </fileSets>
401                                 </configuration>
402                             </execution>
403                         </executions>
404                     </plugin>
405                 </plugins>
406             </build>
407         </profile>
408     </profiles>
409 </project>