Bump dmaap client version
[ccsdk/parent.git] / standalone / 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>standalone-parent</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.source>1.8</java.version.source>
54         <java.version.target>1.8</java.version.target>
55         <bundle.plugin.version>2.5.0</bundle.plugin.version>
56         <checkstyle.skip>true</checkstyle.skip>
57
58         <mariadb.connector.version>2.4.4</mariadb.connector.version>
59         <fasterxml.jackson.version>2.10.5</fasterxml.jackson.version>
60         <velocity.version>2.0</velocity.version>
61         <dmaap.listener.version>1.1.12</dmaap.listener.version>
62         <sdc.client.version>1.4.1</sdc.client.version>
63         <sdc.tosca.version>1.6.5</sdc.tosca.version>
64
65         <dependency-list.file>direct-dependencies.txt</dependency-list.file>
66     </properties>
67
68     <dependencyManagement>
69         <dependencies>
70             <dependency>
71                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
72                 <artifactId>sdc-distribution-client</artifactId>
73                 <version>${sdc.client.version}</version>
74                 <scope>compile</scope>
75             </dependency>
76             <dependency>
77                 <groupId>org.onap.sdc.sdc-tosca</groupId>
78                 <artifactId>sdc-tosca</artifactId>
79                 <version>${sdc.tosca.version}</version>
80                 <scope>compile</scope>
81             </dependency>
82             <dependency>
83                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
84                 <artifactId>dmaapClient</artifactId>
85                 <version>${dmaap.listener.version}</version>
86             </dependency>
87             <dependency>
88                 <groupId>org.slf4j</groupId>
89                 <artifactId>slf4j-api</artifactId>
90                 <version>1.7.28</version>
91             </dependency>
92             <dependency>
93                 <groupId>org.apache.logging.log4j</groupId>
94                 <artifactId>log4j-slf4j-impl</artifactId>
95                 <version>2.11.2</version>
96             </dependency>
97             <dependency>
98                 <groupId>com.fasterxml.jackson.core</groupId>
99                 <artifactId>jackson-core</artifactId>
100                 <version>${fasterxml.jackson.version}</version>
101             </dependency>
102             <dependency>
103                 <groupId>com.fasterxml.jackson.core</groupId>
104                 <artifactId>jackson-databind</artifactId>
105                 <version>${fasterxml.jackson.version}</version>
106             </dependency>
107             <dependency>
108                 <groupId>com.fasterxml.jackson.core</groupId>
109                 <artifactId>jackson-annotations</artifactId>
110                 <version>${fasterxml.jackson.version}</version>
111             </dependency>
112             <dependency>
113                 <groupId>org.apache.velocity</groupId>
114                 <artifactId>velocity-engine-core</artifactId>
115                 <version>${velocity.version}</version>
116             </dependency>
117             <dependency>
118                 <groupId>junit</groupId>
119                 <artifactId>junit</artifactId>
120                 <version>4.12</version>
121                 <scope>test</scope>
122             </dependency>
123             <dependency>
124                 <groupId>org.mockito</groupId>
125                 <artifactId>mockito-core</artifactId>
126                 <version>1.10.19</version>
127                 <scope>test</scope>
128             </dependency>
129             <dependency>
130                 <groupId>org.testng</groupId>
131                 <artifactId>testng</artifactId>
132                 <version>6.11</version>
133                 <scope>test</scope>
134             </dependency>
135             <dependency>
136                 <groupId>ch.vorburger.mariaDB4j</groupId>
137                 <artifactId>mariaDB4j</artifactId>
138                 <version>2.2.3</version>
139                 <scope>test</scope>
140             </dependency>
141         </dependencies>
142     </dependencyManagement>
143
144     <repositories>
145         <repository>
146             <id>onap-public</id>
147             <url>https://nexus.onap.org/content/groups/public</url>
148             <releases>
149                 <enabled>true</enabled>
150                 <updatePolicy>never</updatePolicy>
151             </releases>
152             <snapshots>
153                 <enabled>true</enabled>
154                 <updatePolicy>always</updatePolicy>
155             </snapshots>
156         </repository>
157         <repository>
158             <id>onap-staging</id>
159             <url>https://nexus.onap.org/content/groups/staging</url>
160             <releases>
161                 <enabled>true</enabled>
162                 <updatePolicy>never</updatePolicy>
163             </releases>
164             <snapshots>
165                 <enabled>true</enabled>
166                 <updatePolicy>always</updatePolicy>
167             </snapshots>
168         </repository>
169         <repository>
170             <id>ecomp-release</id>
171             <name>onap-repository-releases</name>
172             <url>https://nexus.onap.org/content/repositories/releases</url>
173             <releases>
174                 <enabled>true</enabled>
175                 <updatePolicy>never</updatePolicy>
176             </releases>
177             <snapshots>
178                 <enabled>false</enabled>
179             </snapshots>
180         </repository>
181         <repository>
182             <id>ecomp-snapshot</id>
183             <name>onap-repository-snapshots</name>
184             <url>https://nexus.onap.org/content/repositories/snapshots</url>
185             <releases>
186                 <enabled>false</enabled>
187             </releases>
188             <snapshots>
189                 <enabled>true</enabled>
190             </snapshots>
191         </repository>
192     </repositories>
193
194     <build>
195         <pluginManagement>
196             <plugins>
197                 <plugin>
198                     <groupId>org.apache.maven.plugins</groupId>
199                     <artifactId>maven-deploy-plugin</artifactId>
200                     <!-- This version supports the "deployAtEnd" parameter -->
201                     <version>2.8</version>
202                     <configuration>
203                         <skip/>
204                         <deployAtEnd>true</deployAtEnd>
205                     </configuration>
206                 </plugin>
207                 <plugin>
208                     <groupId>com.github.ferstl</groupId>
209                     <artifactId>depgraph-maven-plugin</artifactId>
210                     <version>3.3.0</version>
211                     <configuration>
212                         <graphFormat>text</graphFormat>
213                         <outputFileName>${dependency-list.file}</outputFileName>
214                         <outputDirectory>${project.basedir}</outputDirectory>
215                         <transitiveExcludes>*</transitiveExcludes>
216                         <showVersions>true</showVersions>
217                         <showGroupIds>true</showGroupIds>
218                     </configuration>
219                 </plugin>
220             </plugins>
221         </pluginManagement>
222         <plugins>
223             <!-- Jacoco / Sonar -->
224             <plugin>
225                 <groupId>org.jacoco</groupId>
226                 <artifactId>jacoco-maven-plugin</artifactId>
227                 <version>${jacoco.version}</version>
228                 <executions>
229                     <execution>
230                         <id>pre-unit-test</id>
231                         <goals>
232                             <goal>prepare-agent</goal>
233                         </goals>
234                         <configuration>
235                             <!-- Sets the path to the file which contains the execution data. -->
236                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
237                             <!-- Sets the name of the property containing the settings for JaCoCo
238                                                                  runtime agent. -->
239                             <propertyName>surefireArgLine</propertyName>
240                         </configuration>
241                     </execution>
242                     <!-- Ensures that the code coverage report for unit tests is created
243                                                  after unit tests have been run. -->
244                     <execution>
245                         <id>post-unit-test</id>
246                         <phase>test</phase>
247                         <goals>
248                             <goal>report</goal>
249                         </goals>
250                         <configuration>
251                             <!-- Sets the path to the file which contains the execution data. -->
252                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
253                             <!-- Sets the output directory for the code coverage report. -->
254                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
255                         </configuration>
256                     </execution>
257                     <execution>
258                         <id>pre-integration-test</id>
259                         <phase>pre-integration-test</phase>
260                         <goals>
261                             <goal>prepare-agent</goal>
262                         </goals>
263                         <configuration>
264                             <!-- Sets the path to the file which contains the execution data. -->
265                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
266                             <!-- Sets the name of the property containing the settings for JaCoCo
267                                                                  runtime agent. -->
268                             <propertyName>failsafeArgLine</propertyName>
269                         </configuration>
270                     </execution>
271                     <!-- Ensures that the code coverage report for integration tests after
272                                                  integration tests have been run. -->
273                     <execution>
274                         <id>post-integration-test</id>
275                         <phase>post-integration-test</phase>
276                         <goals>
277                             <goal>report</goal>
278                         </goals>
279                         <configuration>
280                             <!-- Sets the path to the file which contains the execution data. -->
281                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
282                             <!-- Sets the output directory for the code coverage report. -->
283                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
284                         </configuration>
285                     </execution>
286                     <execution>
287                         <id>default-prepare-agent</id>
288                         <goals>
289                             <goal>prepare-agent</goal>
290                         </goals>
291                     </execution>
292                     <execution>
293                         <id>default-report</id>
294                         <phase>prepare-package</phase>
295                         <goals>
296                             <goal>report</goal>
297                         </goals>
298                     </execution>
299                     <execution>
300                         <id>default-check</id>
301                         <goals>
302                             <goal>check</goal>
303                         </goals>
304                         <configuration>
305                             <rules>
306                                 <rule>
307                                     <element>PACKAGE</element>
308                                     <limits>
309                                         <limit>
310                                             <counter>COMPLEXITY</counter>
311                                             <value>COVEREDRATIO</value>
312                                             <minimum>0.0</minimum>
313                                         </limit>
314                                     </limits>
315                                 </rule>
316                             </rules>
317                         </configuration>
318                     </execution>
319                 </executions>
320             </plugin>
321             <plugin>
322                 <groupId>org.codehaus.mojo</groupId>
323                 <artifactId>versions-maven-plugin</artifactId>
324                 <version>2.5</version>
325                 <configuration>
326                     <processAllModules>true</processAllModules>
327                 </configuration>
328             </plugin>
329         </plugins>
330     </build>
331
332     <profiles>
333         <profile>
334             <id>sonar-jacoco-aggregate</id>
335             <activation>
336                 <property>
337                     <name>onap.jacoco.aggregateFile</name>
338                 </property>
339             </activation>
340             <build>
341                 <plugins>
342                     <plugin>
343                         <groupId>org.jacoco</groupId>
344                         <artifactId>jacoco-maven-plugin</artifactId>
345                         <executions>
346                             <execution>
347                                 <id>merge</id>
348                                 <goals>
349                                     <goal>merge</goal>
350                                 </goals>
351                                 <phase>generate-resources</phase>
352                                 <configuration>
353                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
354                                     <fileSets>
355                                         <fileSet>
356                                             <directory>${project.basedir}</directory>
357                                             <includes>
358                                                 <include>**/target/code-coverage/*.exec</include>
359                                             </includes>
360                                         </fileSet>
361                                     </fileSets>
362                                 </configuration>
363                             </execution>
364                         </executions>
365                     </plugin>
366                 </plugins>
367             </build>
368         </profile>
369     </profiles>
370 </project>