Bump latest image version
[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.6-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.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
52         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
53         <sonar.projectVersion>${project.version}</sonar.projectVersion>
54
55         <docker.skip.build>false</docker.skip.build>
56         <docker.verbose>true</docker.verbose>
57         <docker.image.root>onap/dmaap/</docker.image.root>
58         <timestamp>${maven.build.timestamp}</timestamp>
59         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
60
61         <!--dependency version across all modules-->
62         <jetty.version>9.4.20.v20190813</jetty.version>
63         <javax.mail-api.version>1.5.5</javax.mail-api.version>
64         <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
65         <qos.logback.version>1.2.3</qos.logback.version>
66         <aaf-cadi-aaf.version>2.1.15</aaf-cadi-aaf.version>
67         <commons-codec.version>1.13</commons-codec.version>
68         <gmaven-plugin.version>1.5</gmaven-plugin.version>
69         <io.fabric8.version>0.33.0</io.fabric8.version>
70         <docker.apiVersion>2.2.54</docker.apiVersion>
71         <commons-lang.version>2.4</commons-lang.version>
72         <commons-io.version>2.6</commons-io.version>
73         <httpcore.version>4.4</httpcore.version>
74         <httpclient.version>4.5.3</httpclient.version>
75         <junit-runner.version>0.11</junit-runner.version>
76         <junit.version>4.12</junit.version>
77         <mockito-core.version>1.10.19</mockito-core.version>
78         <powermock.version>1.7.4</powermock.version>
79         <powermock-api-mockito.version>1.7.4</powermock-api-mockito.version>
80         <commons-lang3.version>3.0</commons-lang3.version>
81         <eelf-core.version>1.0.0</eelf-core.version>
82         <json.version>20160810</json.version>
83         <sl4j-api.version>1.7.25</sl4j-api.version>
84         <hamcrest-lib.version>1.3</hamcrest-lib.version>
85         <annotations.version>12.0</annotations.version>
86     </properties>
87     <modules>
88         <module>datarouter-prov</module>
89         <module>datarouter-node</module>
90         <module>datarouter-subscriber</module>
91         <module>datarouter-docker-compose</module>
92     </modules>
93     <dependencyManagement>
94         <dependencies>
95             <dependency>
96                 <groupId>org.hamcrest</groupId>
97                 <artifactId>hamcrest-library</artifactId>
98                 <version>${hamcrest-lib.version}</version>
99                 <scope>test</scope>
100             </dependency>
101             <dependency>
102                 <groupId>org.slf4j</groupId>
103                 <artifactId>slf4j-api</artifactId>
104                 <version>${sl4j-api.version}</version>
105             </dependency>
106             <dependency>
107                 <groupId>commons-codec</groupId>
108                 <artifactId>commons-codec</artifactId>
109                 <version>${commons-codec.version}</version>
110             </dependency>
111             <dependency>
112                 <groupId>ch.qos.logback</groupId>
113                 <artifactId>logback-classic</artifactId>
114                 <version>${qos.logback.version}</version>
115                 <scope>compile</scope>
116             </dependency>
117             <dependency>
118                 <groupId>ch.qos.logback</groupId>
119                 <artifactId>logback-core</artifactId>
120                 <version>${qos.logback.version}</version>
121                 <scope>compile</scope>
122             </dependency>
123             <dependency>
124                 <groupId>com.intellij</groupId>
125                 <artifactId>annotations</artifactId>
126                 <version>${annotations.version}</version>
127             </dependency>
128             <dependency>
129                 <groupId>javax.servlet</groupId>
130                 <artifactId>javax.servlet-api</artifactId>
131                 <version>${javax.servlet-api.version}</version>
132                 <scope>compile</scope>
133             </dependency>
134             <dependency>
135                 <groupId>javax.mail</groupId>
136                 <artifactId>javax.mail-api</artifactId>
137                 <version>${javax.mail-api.version}</version>
138             </dependency>
139             <dependency>
140                 <groupId>org.eclipse.jetty</groupId>
141                 <artifactId>jetty-server</artifactId>
142                 <version>${jetty.version}</version>
143             </dependency>
144             <dependency>
145                 <groupId>org.eclipse.jetty</groupId>
146                 <artifactId>jetty-continuation</artifactId>
147                 <version>${jetty.version}</version>
148             </dependency>
149             <dependency>
150                 <groupId>org.eclipse.jetty</groupId>
151                 <artifactId>jetty-util</artifactId>
152                 <version>${jetty.version}</version>
153             </dependency>
154             <dependency>
155                 <groupId>org.eclipse.jetty</groupId>
156                 <artifactId>jetty-servlet</artifactId>
157                 <version>${jetty.version}</version>
158             </dependency>
159             <dependency>
160                 <groupId>org.eclipse.jetty</groupId>
161                 <artifactId>jetty-http</artifactId>
162                 <version>${jetty.version}</version>
163             </dependency>
164             <dependency>
165                 <groupId>org.eclipse.jetty</groupId>
166                 <artifactId>jetty-io</artifactId>
167                 <version>${jetty.version}</version>
168             </dependency>
169             <dependency>
170                 <groupId>org.eclipse.jetty.cdi</groupId>
171                 <artifactId>cdi-websocket</artifactId>
172                 <version>${jetty.version}</version>
173             </dependency>
174             <dependency>
175                 <groupId>org.onap.aaf.authz</groupId>
176                 <artifactId>aaf-cadi-core</artifactId>
177                 <version>${aaf-cadi-aaf.version}</version>
178             </dependency>
179             <dependency>
180                 <groupId>commons-io</groupId>
181                 <artifactId>commons-io</artifactId>
182                 <version>${commons-io.version}</version>
183                 <scope>compile</scope>
184             </dependency>
185             <dependency>
186                 <groupId>org.apache.httpcomponents</groupId>
187                 <artifactId>httpcore</artifactId>
188                 <version>${httpcore.version}</version>
189             </dependency>
190             <dependency>
191                 <groupId>org.apache.httpcomponents</groupId>
192                 <artifactId>httpclient</artifactId>
193                 <version>${httpclient.version}</version>
194             </dependency>
195             <dependency>
196                 <groupId>org.sonatype.http-testing-harness</groupId>
197                 <artifactId>junit-runner</artifactId>
198                 <version>${junit-runner.version}</version>
199                 <scope>test</scope>
200                 <exclusions>
201                     <exclusion>
202                         <groupId>org.databene</groupId>
203                         <artifactId>contiperf</artifactId>
204                     </exclusion>
205                     <exclusion>
206                         <groupId>com.thoughtworks.xstream</groupId>
207                         <artifactId>xstream</artifactId>
208                     </exclusion>
209                 </exclusions>
210             </dependency>
211             <dependency>
212                 <groupId>junit</groupId>
213                 <artifactId>junit</artifactId>
214                 <version>${junit.version}</version>
215                 <scope>test</scope>
216             </dependency>
217             <dependency>
218                 <groupId>org.mockito</groupId>
219                 <artifactId>mockito-core</artifactId>
220                 <version>${mockito-core.version}</version>
221                 <scope>test</scope>
222             </dependency>
223             <dependency>
224                 <groupId>org.powermock</groupId>
225                 <artifactId>powermock-api-mockito</artifactId>
226                 <version>${powermock-api-mockito.version}</version>
227                 <scope>test</scope>
228             </dependency>
229             <dependency>
230                 <groupId>org.powermock</groupId>
231                 <artifactId>powermock-module-junit4</artifactId>
232                 <version>${powermock.version}</version>
233                 <scope>test</scope>
234             </dependency>
235             <dependency>
236                 <groupId>org.powermock</groupId>
237                 <artifactId>powermock-api-support</artifactId>
238                 <version>${powermock.version}</version>
239                 <scope>test</scope>
240             </dependency>
241             <dependency>
242                 <groupId>org.powermock</groupId>
243                 <artifactId>powermock-core</artifactId>
244                 <version>${powermock.version}</version>
245                 <scope>test</scope>
246             </dependency>
247             <dependency>
248                 <groupId>org.apache.commons</groupId>
249                 <artifactId>commons-lang3</artifactId>
250                 <version>${commons-lang3.version}</version>
251             </dependency>
252             <dependency>
253                 <groupId>com.att.eelf</groupId>
254                 <artifactId>eelf-core</artifactId>
255                 <version>${eelf-core.version}</version>
256             </dependency>
257             <dependency>
258                 <groupId>org.json</groupId>
259                 <artifactId>json</artifactId>
260                 <version>${json.version}</version>
261             </dependency>
262         </dependencies>
263     </dependencyManagement>
264     <build>
265         <plugins>
266             <plugin>
267                 <groupId>org.apache.maven.plugins</groupId>
268                 <artifactId>maven-surefire-plugin</artifactId>
269                 <configuration>
270                     <excludes>
271                         <exclude>IntegrationSuite.java</exclude>
272                     </excludes>
273                 </configuration>
274             </plugin>
275             <plugin>
276                 <groupId>org.codehaus.mojo</groupId>
277                 <artifactId>flatten-maven-plugin</artifactId>
278                 <version>1.0.1</version>
279                 <configuration>
280                     <updatePomFile>true</updatePomFile>
281                     <outputDirectory>target</outputDirectory>
282                 </configuration>
283                 <executions>
284                     <execution>
285                         <id>flatten</id>
286                         <phase>process-resources</phase>
287                         <goals>
288                             <goal>flatten</goal>
289                         </goals>
290                     </execution>
291                 </executions>
292             </plugin>
293             <plugin>
294                 <artifactId>maven-checkstyle-plugin</artifactId>
295                 <executions>
296                     <execution>
297                         <id>onap-java-style</id>
298                         <configuration>
299                             <consoleOutput>false</consoleOutput>
300                         </configuration>
301                     </execution>
302                 </executions>
303             </plugin>
304         </plugins>
305         <pluginManagement>
306             <plugins>
307                 <plugin>
308                     <groupId>org.apache.maven.plugins</groupId>
309                     <artifactId>maven-compiler-plugin</artifactId>
310                     <configuration>
311                         <source>1.8</source>
312                         <target>1.8</target>
313                     </configuration>
314                 </plugin>
315                 <plugin>
316                     <groupId>org.apache.maven.plugins</groupId>
317                     <artifactId>maven-dependency-plugin</artifactId>
318                     <version>2.10</version>
319                     <executions>
320                         <execution>
321                             <id>copy-dependencies</id>
322                             <goals>
323                                 <goal>copy-dependencies</goal>
324                             </goals>
325                             <configuration>
326                                 <overWriteReleases>false</overWriteReleases>
327                                 <overWriteSnapshots>false</overWriteSnapshots>
328                                 <overWriteIfNewer>true</overWriteIfNewer>
329                             </configuration>
330                         </execution>
331                     </executions>
332                 </plugin>
333                 <plugin>
334                     <groupId>org.apache.maven.plugins</groupId>
335                     <artifactId>maven-javadoc-plugin</artifactId>
336                     <version>3.0.1</version>
337                     <configuration>
338                         <failOnError>false</failOnError>
339                     </configuration>
340                     <executions>
341                         <execution>
342                             <id>attach-javadocs</id>
343                             <goals>
344                                 <goal>jar</goal>
345                             </goals>
346                         </execution>
347                     </executions>
348                 </plugin>
349                 <plugin>
350                     <groupId>org.apache.maven.plugins</groupId>
351                     <artifactId>maven-source-plugin</artifactId>
352                     <version>2.2.1</version>
353                     <executions>
354                         <execution>
355                             <id>attach-sources</id>
356                             <goals>
357                                 <goal>jar-no-fork</goal>
358                             </goals>
359                         </execution>
360                     </executions>
361                 </plugin>
362                 <plugin>
363                     <groupId>org.codehaus.mojo</groupId>
364                     <artifactId>cobertura-maven-plugin</artifactId>
365                     <version>2.7</version>
366                     <configuration>
367                         <formats>
368                             <format>html</format>
369                             <format>xml</format>
370                         </formats>
371                         <check/>
372                     </configuration>
373                 </plugin>
374                 <plugin>
375                     <groupId>org.codehaus.gmaven</groupId>
376                     <artifactId>gmaven-plugin</artifactId>
377                     <version>${gmaven-plugin.version}</version>
378                     <executions>
379                         <execution>
380                             <phase>validate</phase>
381                             <goals>
382                                 <goal>execute</goal>
383                             </goals>
384                             <configuration>
385                                 <properties>
386                                     <ver>${project.version}</ver>
387                                 </properties>
388                                 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
389                                 <source>
390                                     println 'ver: ' + project.properties['ver'];
391                                     if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
392                                         project.properties['dockertag1']=project.properties['ver'] + "-latest";
393                                         project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
394                                     } else {
395                                         project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
396                                         project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
397                                     }
398                                     println 'docker tag 1: ' + project.properties['dockertag1'];
399                                     println 'docker tag 2: ' + project.properties['dockertag2'];
400                                 </source>
401                             </configuration>
402                         </execution>
403                     </executions>
404                 </plugin>
405                 <plugin>
406                     <groupId>io.fabric8</groupId>
407                     <artifactId>docker-maven-plugin</artifactId>
408                     <version>${io.fabric8.version}</version>
409                     <configuration>
410                         <skipBuild>${docker.skip.build}</skipBuild>
411                         <verbose>${docker.verbose}</verbose>
412                         <apiVersion>${docker.apiVersion}</apiVersion>
413                         <pullRegistry>${docker.pull.registry}</pullRegistry>
414                         <pushRegistry>${docker.push.registry}</pushRegistry>
415                     </configuration>
416                 </plugin>
417                 <plugin>
418                     <groupId>org.codehaus.mojo</groupId>
419                     <artifactId>properties-maven-plugin</artifactId>
420                     <version>1.0.0</version>
421                     <executions>
422                         <execution>
423                             <phase>validate</phase>
424                             <goals>
425                                 <goal>read-project-properties</goal>
426                             </goals>
427                             <configuration>
428                                 <files>
429                                     <file>../version.properties</file>
430                                 </files>
431                             </configuration>
432                         </execution>
433                     </executions>
434                 </plugin>
435                 <plugin>
436                     <groupId>org.jacoco</groupId>
437                     <artifactId>jacoco-maven-plugin</artifactId>
438                     <executions>
439                         <execution>
440                             <id>prepare-agent</id>
441                             <goals>
442                                 <goal>prepare-agent</goal>
443                             </goals>
444                         </execution>
445                         <execution>
446                             <id>report</id>
447                             <goals>
448                                 <goal>report</goal>
449                             </goals>
450                             <configuration>
451                                 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
452                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
453                             </configuration>
454                         </execution>
455                     </executions>
456                 </plugin>
457             </plugins>
458         </pluginManagement>
459     </build>
460     <pluginRepositories>
461         <pluginRepository>
462             <id>onap-plugin-snapshots</id>
463             <url>${onap.nexus.url}${snapshotNexusPath}</url>
464         </pluginRepository>
465     </pluginRepositories>
466 </project>