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