Add DR provisioning client initContainer
[dmaap/datarouter.git] / pom.xml
1 <!--
2   ============LICENSE_START==================================================
3   * org.onap.dmaap
4   * ===========================================================================
5   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6   * Modifications Copyright (C) 2018 Nokia. All rights reserved.
7   * Copyright (d) 2023 J. F. Lucas.  All rights reserved.
8   * ===========================================================================
9   * Licensed under the Apache License, Version 2.0 (the "License");
10   * you may not use this file except in compliance with the License.
11   * You may obtain a copy of the License at
12   *
13    *      http://www.apache.org/licenses/LICENSE-2.0
14   *
15    * Unless required by applicable law or agreed to in writing, software
16   * distributed under the License is distributed on an "AS IS" BASIS,
17   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   * See the License for the specific language governing permissions and
19   * limitations under the License.
20   * ============LICENSE_END====================================================
21   -->
22 <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/maven-v4_0_0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <groupId>org.onap.dmaap.datarouter</groupId>
25     <artifactId>parent</artifactId>
26     <name>dmaap-datarouter</name>
27     <version>${revision}</version>
28     <packaging>pom</packaging>
29     <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
30     <parent>
31         <groupId>org.onap.oparent</groupId>
32         <artifactId>oparent</artifactId>
33         <version>3.3.3</version>
34     </parent>
35     <properties>
36         <!--revision must also be set in the version.properties file at project root-->
37         <revision>2.1.14-SNAPSHOT</revision>
38         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39         <maven.compiler.source>11</maven.compiler.source>
40         <maven.compiler.target>11</maven.compiler.target>
41
42         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
43         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
44         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
45         <sitePath>/content/sites/site/org/onap/dmaap/datarouter/${project.artifactId}/${project.version}</sitePath>
46
47         <sonar.language>java</sonar.language>
48         <sonar.skip>false</sonar.skip>
49         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
50         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
51         <sonar.projectVersion>${project.version}</sonar.projectVersion>
52
53         <docker.skip.build>false</docker.skip.build>
54         <docker.verbose>true</docker.verbose>
55         <docker.image.root>onap/dmaap/</docker.image.root>
56         <timestamp>${maven.build.timestamp}</timestamp>
57         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
58
59         <!--dependency version across all modules-->
60         <jetty.version>11.0.12</jetty.version>
61         <javax.mail-api.version>1.5.5</javax.mail-api.version>
62         <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
63         <qos.logback.version>1.2.7</qos.logback.version>
64         <qos.logback.classic.version>1.2.3</qos.logback.classic.version>
65         <commons-codec.version>1.15</commons-codec.version>
66         <gmaven-plugin.version>1.5</gmaven-plugin.version>
67         <io.fabric8.version>0.33.0</io.fabric8.version>
68         <docker.apiVersion>2.2.54</docker.apiVersion>
69         <commons-lang.version>2.4</commons-lang.version>
70         <commons-io.version>2.7</commons-io.version>
71         <httpcore.version>4.4</httpcore.version>
72         <httpclient.version>4.5.13</httpclient.version>
73         <junit-runner.version>0.11</junit-runner.version>
74         <junit.version>4.12</junit.version>
75         <mockito-core.version>3.3.3</mockito-core.version>
76         <byte-buddy-version>1.10.9</byte-buddy-version>
77         <powermock.version>2.0.7</powermock.version>
78         <commons-lang3.version>3.0</commons-lang3.version>
79         <eelf-core.version>1.0.0</eelf-core.version>
80         <json.version>20210307</json.version>
81         <sl4j-api.version>1.7.25</sl4j-api.version>
82         <hamcrest-lib.version>1.3</hamcrest-lib.version>
83         <annotations.version>12.0</annotations.version>
84     </properties>
85     <modules>
86         <module>datarouter-prov</module>
87         <module>datarouter-prov-client</module>
88         <module>datarouter-node</module>
89         <module>datarouter-subscriber</module>
90         <module>datarouter-docker-compose</module>
91     </modules>
92     <dependencyManagement>
93         <dependencies>
94             <dependency>
95                 <groupId>org.apache.commons</groupId>
96                 <artifactId>commons-lang3</artifactId>
97                 <version>${commons-lang3.version}</version>
98             </dependency>
99             <dependency>
100                 <groupId>com.att.eelf</groupId>
101                 <artifactId>eelf-core</artifactId>
102                 <version>${eelf-core.version}</version>
103             </dependency>
104             <dependency>
105                 <groupId>org.json</groupId>
106                 <artifactId>json</artifactId>
107                 <version>${json.version}</version>
108             </dependency>
109             <dependency>
110                 <groupId>org.slf4j</groupId>
111                 <artifactId>slf4j-api</artifactId>
112                 <version>${sl4j-api.version}</version>
113             </dependency>
114             <dependency>
115                 <groupId>commons-codec</groupId>
116                 <artifactId>commons-codec</artifactId>
117                 <version>${commons-codec.version}</version>
118             </dependency>
119             <dependency>
120                 <groupId>ch.qos.logback</groupId>
121                 <artifactId>logback-classic</artifactId>
122                 <version>${qos.logback.classic.version}</version>
123                 <scope>compile</scope>
124             </dependency>
125             <dependency>
126                 <groupId>ch.qos.logback</groupId>
127                 <artifactId>logback-core</artifactId>
128                 <version>${qos.logback.version}</version>
129                 <scope>compile</scope>
130             </dependency>
131             <dependency>
132                 <groupId>com.intellij</groupId>
133                 <artifactId>annotations</artifactId>
134                 <version>${annotations.version}</version>
135             </dependency>
136             <dependency>
137                 <groupId>javax.servlet</groupId>
138                 <artifactId>javax.servlet-api</artifactId>
139                 <version>${javax.servlet-api.version}</version>
140                 <scope>compile</scope>
141             </dependency>
142             <dependency>
143                 <groupId>javax.mail</groupId>
144                 <artifactId>javax.mail-api</artifactId>
145                 <version>${javax.mail-api.version}</version>
146             </dependency>
147             <dependency>
148                 <groupId>org.eclipse.jetty</groupId>
149                 <artifactId>jetty-server</artifactId>
150                 <version>${jetty.version}</version>
151             </dependency>
152             <dependency>
153                 <groupId>org.eclipse.jetty</groupId>
154                 <artifactId>jetty-continuation</artifactId>
155                 <version>9.4.49.v20220914</version>
156             </dependency>
157             <dependency>
158                 <groupId>org.eclipse.jetty</groupId>
159                 <artifactId>jetty-util</artifactId>
160                 <version>${jetty.version}</version>
161             </dependency>
162             <dependency>
163                 <groupId>org.eclipse.jetty</groupId>
164                 <artifactId>jetty-servlet</artifactId>
165                 <version>${jetty.version}</version>
166             </dependency>
167             <dependency>
168                 <groupId>org.eclipse.jetty</groupId>
169                 <artifactId>jetty-http</artifactId>
170                 <version>${jetty.version}</version>
171             </dependency>
172             <dependency>
173                 <groupId>org.eclipse.jetty</groupId>
174                 <artifactId>jetty-io</artifactId>
175                 <version>${jetty.version}</version>
176             </dependency>
177             <dependency>
178                 <groupId>org.eclipse.jetty.cdi</groupId>
179                 <artifactId>cdi-websocket</artifactId>
180                 <version>${jetty.version}</version>
181             </dependency>
182             <dependency>
183                 <groupId>commons-io</groupId>
184                 <artifactId>commons-io</artifactId>
185                 <version>${commons-io.version}</version>
186                 <scope>compile</scope>
187             </dependency>
188             <dependency>
189                 <groupId>org.apache.httpcomponents</groupId>
190                 <artifactId>httpcore</artifactId>
191                 <version>${httpcore.version}</version>
192             </dependency>
193             <dependency>
194                 <groupId>org.apache.httpcomponents</groupId>
195                 <artifactId>httpclient</artifactId>
196                 <version>${httpclient.version}</version>
197             </dependency>
198             <dependency>
199                 <groupId>org.sonatype.http-testing-harness</groupId>
200                 <artifactId>junit-runner</artifactId>
201                 <version>${junit-runner.version}</version>
202                 <scope>test</scope>
203                 <exclusions>
204                     <exclusion>
205                         <groupId>org.databene</groupId>
206                         <artifactId>contiperf</artifactId>
207                     </exclusion>
208                     <exclusion>
209                         <groupId>com.thoughtworks.xstream</groupId>
210                         <artifactId>xstream</artifactId>
211                     </exclusion>
212                 </exclusions>
213             </dependency>
214             <dependency>
215                 <groupId>junit</groupId>
216                 <artifactId>junit</artifactId>
217                 <version>${junit.version}</version>
218                 <scope>test</scope>
219             </dependency>
220             <dependency>
221                 <groupId>org.hamcrest</groupId>
222                 <artifactId>hamcrest-all</artifactId>
223                 <version>${hamcrest-lib.version}</version>
224                 <scope>test</scope>
225             </dependency>
226             <dependency>
227                 <groupId>org.mockito</groupId>
228                 <artifactId>mockito-core</artifactId>
229                 <version>${mockito-core.version}</version>
230                 <scope>test</scope>
231             </dependency>
232             <dependency>
233                 <groupId>net.bytebuddy</groupId>
234                 <artifactId>byte-buddy</artifactId>
235                 <version>${byte-buddy-version}</version>
236                 <scope>test</scope>
237             </dependency>
238             <dependency>
239                 <groupId>net.bytebuddy</groupId>
240                 <artifactId>byte-buddy-agent</artifactId>
241                 <version>${byte-buddy-version}</version>
242                 <scope>test</scope>
243             </dependency>
244             <dependency>
245                 <groupId>org.objenesis</groupId>
246                 <artifactId>objenesis</artifactId>
247                 <version>3.1</version>
248                 <scope>test</scope>
249             </dependency>
250             <dependency>
251                 <groupId>org.javassist</groupId>
252                 <artifactId>javassist</artifactId>
253                 <version>3.27.0-GA</version>
254                 <scope>test</scope>
255             </dependency>
256             <dependency>
257                 <groupId>org.powermock</groupId>
258                 <artifactId>powermock-api-mockito2</artifactId>
259                 <version>${powermock.version}</version>
260             </dependency>
261             <dependency>
262                 <groupId>org.powermock</groupId>
263                 <artifactId>powermock-module-junit4</artifactId>
264                 <version>${powermock.version}</version>
265                 <scope>test</scope>
266             </dependency>
267             <dependency>
268                 <groupId>org.powermock</groupId>
269                 <artifactId>powermock-api-support</artifactId>
270                 <version>${powermock.version}</version>
271                 <scope>test</scope>
272             </dependency>
273             <dependency>
274                 <groupId>org.powermock</groupId>
275                 <artifactId>powermock-core</artifactId>
276                 <version>${powermock.version}</version>
277                 <scope>test</scope>
278             </dependency>
279             <dependency>
280                 <groupId>org.powermock</groupId>
281                 <artifactId>powermock-module-junit4-rule</artifactId>
282                 <version>${powermock.version}</version>
283                 <scope>test</scope>
284             </dependency>
285         </dependencies>
286     </dependencyManagement>
287     <build>
288         <plugins>
289             <plugin>
290                 <groupId>org.apache.maven.plugins</groupId>
291                 <artifactId>maven-surefire-plugin</artifactId>
292                 <configuration>
293                     <excludes>
294                         <exclude>IntegrationSuite.java</exclude>
295                     </excludes>
296                     <argLine>
297                         ${surefireArgLine} --illegal-access=permit
298                     </argLine>
299                 </configuration>
300             </plugin>
301             <plugin>
302                 <groupId>org.apache.maven.plugins</groupId>
303                 <artifactId>maven-failsafe-plugin</artifactId>
304                 <configuration>
305                     <argLine>
306                         --illegal-access=permit
307                     </argLine>
308                 </configuration>
309             </plugin>
310             <plugin>
311                 <groupId>org.codehaus.mojo</groupId>
312                 <artifactId>flatten-maven-plugin</artifactId>
313                 <version>1.0.1</version>
314                 <configuration>
315                     <updatePomFile>true</updatePomFile>
316                     <outputDirectory>target</outputDirectory>
317                 </configuration>
318                 <executions>
319                     <execution>
320                         <id>flatten</id>
321                         <phase>process-resources</phase>
322                         <goals>
323                             <goal>flatten</goal>
324                         </goals>
325                     </execution>
326                 </executions>
327             </plugin>
328             <plugin>
329                 <artifactId>maven-checkstyle-plugin</artifactId>
330                 <executions>
331                     <execution>
332                         <id>onap-java-style</id>
333                         <configuration>
334                             <consoleOutput>false</consoleOutput>
335                         </configuration>
336                     </execution>
337                 </executions>
338             </plugin>
339         </plugins>
340         <pluginManagement>
341             <plugins>
342                 <plugin>
343                     <groupId>org.apache.maven.plugins</groupId>
344                     <artifactId>maven-compiler-plugin</artifactId>
345                     <configuration>
346                         <source>${maven.compiler.source}</source>
347                         <target>${maven.compiler.target}</target>
348                     </configuration>
349                 </plugin>
350                 <plugin>
351                     <groupId>org.apache.maven.plugins</groupId>
352                     <artifactId>maven-dependency-plugin</artifactId>
353                     <version>2.10</version>
354                     <executions>
355                         <execution>
356                             <id>copy-dependencies</id>
357                             <goals>
358                                 <goal>copy-dependencies</goal>
359                             </goals>
360                             <configuration>
361                                 <overWriteReleases>false</overWriteReleases>
362                                 <overWriteSnapshots>false</overWriteSnapshots>
363                                 <overWriteIfNewer>true</overWriteIfNewer>
364                             </configuration>
365                         </execution>
366                     </executions>
367                 </plugin>
368                 <plugin>
369                     <groupId>org.apache.maven.plugins</groupId>
370                     <artifactId>maven-javadoc-plugin</artifactId>
371                     <version>3.3.1</version>
372                     <configuration>
373                         <failOnError>false</failOnError>
374                     </configuration>
375                     <executions>
376                         <execution>
377                             <id>attach-javadocs</id>
378                             <goals>
379                                 <goal>jar</goal>
380                             </goals>
381                         </execution>
382                     </executions>
383                 </plugin>
384                 <plugin>
385                     <groupId>org.apache.maven.plugins</groupId>
386                     <artifactId>maven-source-plugin</artifactId>
387                     <version>2.2.1</version>
388                     <executions>
389                         <execution>
390                             <id>attach-sources</id>
391                             <goals>
392                                 <goal>jar-no-fork</goal>
393                             </goals>
394                         </execution>
395                     </executions>
396                 </plugin>
397                 <plugin>
398                     <groupId>org.codehaus.mojo</groupId>
399                     <artifactId>cobertura-maven-plugin</artifactId>
400                     <version>2.7</version>
401                     <configuration>
402                         <formats>
403                             <format>html</format>
404                             <format>xml</format>
405                         </formats>
406                         <check/>
407                     </configuration>
408                 </plugin>
409                 <plugin>
410                     <groupId>org.codehaus.gmaven</groupId>
411                     <artifactId>gmaven-plugin</artifactId>
412                     <version>${gmaven-plugin.version}</version>
413                     <executions>
414                         <execution>
415                             <phase>validate</phase>
416                             <goals>
417                                 <goal>execute</goal>
418                             </goals>
419                             <configuration>
420                                 <properties>
421                                     <ver>${project.version}</ver>
422                                 </properties>
423                                 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
424                                 <source>
425                                     println 'ver: ' + project.properties['ver'];
426                                     if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
427                                         project.properties['dockertag1']=project.properties['ver'] + "-latest";
428                                         project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
429                                     } else {
430                                         project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
431                                         project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
432                                     }
433                                     println 'docker tag 1: ' + project.properties['dockertag1'];
434                                     println 'docker tag 2: ' + project.properties['dockertag2'];
435                                 </source>
436                             </configuration>
437                         </execution>
438                     </executions>
439                 </plugin>
440                 <plugin>
441                     <groupId>io.fabric8</groupId>
442                     <artifactId>docker-maven-plugin</artifactId>
443                     <version>${io.fabric8.version}</version>
444                     <extensions>true</extensions>
445                     <configuration>
446                         <skipBuild>${docker.skip.build}</skipBuild>
447                         <verbose>${docker.verbose}</verbose>
448                         <apiVersion>${docker.apiVersion}</apiVersion>
449                         <pullRegistry>${docker.pull.registry}</pullRegistry>
450                         <pushRegistry>${docker.push.registry}</pushRegistry>
451                     </configuration>
452                 </plugin>
453                 <plugin>
454                     <groupId>org.codehaus.mojo</groupId>
455                     <artifactId>properties-maven-plugin</artifactId>
456                     <version>1.0.0</version>
457                     <executions>
458                         <execution>
459                             <phase>validate</phase>
460                             <goals>
461                                 <goal>read-project-properties</goal>
462                             </goals>
463                             <configuration>
464                                 <files>
465                                     <file>../version.properties</file>
466                                 </files>
467                             </configuration>
468                         </execution>
469                     </executions>
470                 </plugin>
471             </plugins>
472         </pluginManagement>
473     </build>
474     <pluginRepositories>
475         <pluginRepository>
476             <id>onap-plugin-snapshots</id>
477             <url>${onap.nexus.url}${snapshotNexusPath}</url>
478         </pluginRepository>
479     </pluginRepositories>
480 </project>