update link to upper-constraints.txt
[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>3.0.0</version>
36     </parent>
37     <properties>
38         <!--revision must also be set in the version.properties file at project root-->
39         <revision>2.1.7-SNAPSHOT</revision>
40         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41         <maven.compiler.source>11</maven.compiler.source>
42         <maven.compiler.target>11</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.7</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>3.3.3</mockito-core.version>
78         <byte-buddy-version>1.10.9</byte-buddy-version>
79         <powermock.version>2.0.7</powermock.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.apache.commons</groupId>
97                 <artifactId>commons-lang3</artifactId>
98                 <version>${commons-lang3.version}</version>
99             </dependency>
100             <dependency>
101                 <groupId>com.att.eelf</groupId>
102                 <artifactId>eelf-core</artifactId>
103                 <version>${eelf-core.version}</version>
104             </dependency>
105             <dependency>
106                 <groupId>org.json</groupId>
107                 <artifactId>json</artifactId>
108                 <version>${json.version}</version>
109             </dependency>
110             <dependency>
111                 <groupId>org.slf4j</groupId>
112                 <artifactId>slf4j-api</artifactId>
113                 <version>${sl4j-api.version}</version>
114             </dependency>
115             <dependency>
116                 <groupId>commons-codec</groupId>
117                 <artifactId>commons-codec</artifactId>
118                 <version>${commons-codec.version}</version>
119             </dependency>
120             <dependency>
121                 <groupId>ch.qos.logback</groupId>
122                 <artifactId>logback-classic</artifactId>
123                 <version>${qos.logback.version}</version>
124                 <scope>compile</scope>
125             </dependency>
126             <dependency>
127                 <groupId>ch.qos.logback</groupId>
128                 <artifactId>logback-core</artifactId>
129                 <version>${qos.logback.version}</version>
130                 <scope>compile</scope>
131             </dependency>
132             <dependency>
133                 <groupId>com.intellij</groupId>
134                 <artifactId>annotations</artifactId>
135                 <version>${annotations.version}</version>
136             </dependency>
137             <dependency>
138                 <groupId>javax.servlet</groupId>
139                 <artifactId>javax.servlet-api</artifactId>
140                 <version>${javax.servlet-api.version}</version>
141                 <scope>compile</scope>
142             </dependency>
143             <dependency>
144                 <groupId>javax.mail</groupId>
145                 <artifactId>javax.mail-api</artifactId>
146                 <version>${javax.mail-api.version}</version>
147             </dependency>
148             <dependency>
149                 <groupId>org.eclipse.jetty</groupId>
150                 <artifactId>jetty-server</artifactId>
151                 <version>${jetty.version}</version>
152             </dependency>
153             <dependency>
154                 <groupId>org.eclipse.jetty</groupId>
155                 <artifactId>jetty-continuation</artifactId>
156                 <version>${jetty.version}</version>
157             </dependency>
158             <dependency>
159                 <groupId>org.eclipse.jetty</groupId>
160                 <artifactId>jetty-util</artifactId>
161                 <version>${jetty.version}</version>
162             </dependency>
163             <dependency>
164                 <groupId>org.eclipse.jetty</groupId>
165                 <artifactId>jetty-servlet</artifactId>
166                 <version>${jetty.version}</version>
167             </dependency>
168             <dependency>
169                 <groupId>org.eclipse.jetty</groupId>
170                 <artifactId>jetty-http</artifactId>
171                 <version>${jetty.version}</version>
172             </dependency>
173             <dependency>
174                 <groupId>org.eclipse.jetty</groupId>
175                 <artifactId>jetty-io</artifactId>
176                 <version>${jetty.version}</version>
177             </dependency>
178             <dependency>
179                 <groupId>org.eclipse.jetty.cdi</groupId>
180                 <artifactId>cdi-websocket</artifactId>
181                 <version>${jetty.version}</version>
182             </dependency>
183             <dependency>
184                 <groupId>org.onap.aaf.authz</groupId>
185                 <artifactId>aaf-cadi-core</artifactId>
186                 <version>${aaf-cadi-aaf.version}</version>
187             </dependency>
188             <dependency>
189                 <groupId>commons-io</groupId>
190                 <artifactId>commons-io</artifactId>
191                 <version>${commons-io.version}</version>
192                 <scope>compile</scope>
193             </dependency>
194             <dependency>
195                 <groupId>org.apache.httpcomponents</groupId>
196                 <artifactId>httpcore</artifactId>
197                 <version>${httpcore.version}</version>
198             </dependency>
199             <dependency>
200                 <groupId>org.apache.httpcomponents</groupId>
201                 <artifactId>httpclient</artifactId>
202                 <version>${httpclient.version}</version>
203             </dependency>
204             <dependency>
205                 <groupId>org.sonatype.http-testing-harness</groupId>
206                 <artifactId>junit-runner</artifactId>
207                 <version>${junit-runner.version}</version>
208                 <scope>test</scope>
209                 <exclusions>
210                     <exclusion>
211                         <groupId>org.databene</groupId>
212                         <artifactId>contiperf</artifactId>
213                     </exclusion>
214                     <exclusion>
215                         <groupId>com.thoughtworks.xstream</groupId>
216                         <artifactId>xstream</artifactId>
217                     </exclusion>
218                 </exclusions>
219             </dependency>
220             <dependency>
221                 <groupId>junit</groupId>
222                 <artifactId>junit</artifactId>
223                 <version>${junit.version}</version>
224                 <scope>test</scope>
225             </dependency>
226             <dependency>
227                 <groupId>org.hamcrest</groupId>
228                 <artifactId>hamcrest-all</artifactId>
229                 <version>${hamcrest-lib.version}</version>
230                 <scope>test</scope>
231             </dependency>
232             <dependency>
233                 <groupId>org.mockito</groupId>
234                 <artifactId>mockito-core</artifactId>
235                 <version>${mockito-core.version}</version>
236                 <scope>test</scope>
237             </dependency>
238             <dependency>
239                 <groupId>net.bytebuddy</groupId>
240                 <artifactId>byte-buddy</artifactId>
241                 <version>${byte-buddy-version}</version>
242                 <scope>test</scope>
243             </dependency>
244             <dependency>
245                 <groupId>net.bytebuddy</groupId>
246                 <artifactId>byte-buddy-agent</artifactId>
247                 <version>${byte-buddy-version}</version>
248                 <scope>test</scope>
249             </dependency>
250             <dependency>
251                 <groupId>org.objenesis</groupId>
252                 <artifactId>objenesis</artifactId>
253                 <version>3.1</version>
254                 <scope>test</scope>
255             </dependency>
256             <dependency>
257                 <groupId>org.javassist</groupId>
258                 <artifactId>javassist</artifactId>
259                 <version>3.27.0-GA</version>
260                 <scope>test</scope>
261             </dependency>
262             <dependency>
263                 <groupId>org.powermock</groupId>
264                 <artifactId>powermock-api-mockito2</artifactId>
265                 <version>${powermock.version}</version>
266             </dependency>
267             <dependency>
268                 <groupId>org.powermock</groupId>
269                 <artifactId>powermock-module-junit4</artifactId>
270                 <version>${powermock.version}</version>
271                 <scope>test</scope>
272             </dependency>
273             <dependency>
274                 <groupId>org.powermock</groupId>
275                 <artifactId>powermock-api-support</artifactId>
276                 <version>${powermock.version}</version>
277                 <scope>test</scope>
278             </dependency>
279             <dependency>
280                 <groupId>org.powermock</groupId>
281                 <artifactId>powermock-core</artifactId>
282                 <version>${powermock.version}</version>
283                 <scope>test</scope>
284             </dependency>
285             <dependency>
286                 <groupId>org.powermock</groupId>
287                 <artifactId>powermock-module-junit4-rule</artifactId>
288                 <version>${powermock.version}</version>
289                 <scope>test</scope>
290             </dependency>
291         </dependencies>
292     </dependencyManagement>
293     <build>
294         <plugins>
295             <plugin>
296                 <groupId>org.apache.maven.plugins</groupId>
297                 <artifactId>maven-surefire-plugin</artifactId>
298                 <configuration>
299                     <excludes>
300                         <exclude>IntegrationSuite.java</exclude>
301                     </excludes>
302                     <argLine>
303                         ${surefireArgLine} --illegal-access=permit
304                     </argLine>
305                 </configuration>
306             </plugin>
307             <plugin>
308                 <groupId>org.apache.maven.plugins</groupId>
309                 <artifactId>maven-failsafe-plugin</artifactId>
310                 <configuration>
311                     <argLine>
312                         --illegal-access=permit
313                     </argLine>
314                 </configuration>
315             </plugin>
316             <plugin>
317                 <groupId>org.codehaus.mojo</groupId>
318                 <artifactId>flatten-maven-plugin</artifactId>
319                 <version>1.0.1</version>
320                 <configuration>
321                     <updatePomFile>true</updatePomFile>
322                     <outputDirectory>target</outputDirectory>
323                 </configuration>
324                 <executions>
325                     <execution>
326                         <id>flatten</id>
327                         <phase>process-resources</phase>
328                         <goals>
329                             <goal>flatten</goal>
330                         </goals>
331                     </execution>
332                 </executions>
333             </plugin>
334             <plugin>
335                 <artifactId>maven-checkstyle-plugin</artifactId>
336                 <executions>
337                     <execution>
338                         <id>onap-java-style</id>
339                         <configuration>
340                             <consoleOutput>false</consoleOutput>
341                         </configuration>
342                     </execution>
343                 </executions>
344             </plugin>
345         </plugins>
346         <pluginManagement>
347             <plugins>
348                 <plugin>
349                     <groupId>org.apache.maven.plugins</groupId>
350                     <artifactId>maven-compiler-plugin</artifactId>
351                     <configuration>
352                         <source>${maven.compiler.source}</source>
353                         <target>${maven.compiler.target}</target>
354                     </configuration>
355                 </plugin>
356                 <plugin>
357                     <groupId>org.apache.maven.plugins</groupId>
358                     <artifactId>maven-dependency-plugin</artifactId>
359                     <version>2.10</version>
360                     <executions>
361                         <execution>
362                             <id>copy-dependencies</id>
363                             <goals>
364                                 <goal>copy-dependencies</goal>
365                             </goals>
366                             <configuration>
367                                 <overWriteReleases>false</overWriteReleases>
368                                 <overWriteSnapshots>false</overWriteSnapshots>
369                                 <overWriteIfNewer>true</overWriteIfNewer>
370                             </configuration>
371                         </execution>
372                     </executions>
373                 </plugin>
374                 <plugin>
375                     <groupId>org.apache.maven.plugins</groupId>
376                     <artifactId>maven-javadoc-plugin</artifactId>
377                     <version>3.2.0</version>
378                     <configuration>
379                         <failOnError>false</failOnError>
380                     </configuration>
381                     <executions>
382                         <execution>
383                             <id>attach-javadocs</id>
384                             <goals>
385                                 <goal>jar</goal>
386                             </goals>
387                         </execution>
388                     </executions>
389                 </plugin>
390                 <plugin>
391                     <groupId>org.apache.maven.plugins</groupId>
392                     <artifactId>maven-source-plugin</artifactId>
393                     <version>2.2.1</version>
394                     <executions>
395                         <execution>
396                             <id>attach-sources</id>
397                             <goals>
398                                 <goal>jar-no-fork</goal>
399                             </goals>
400                         </execution>
401                     </executions>
402                 </plugin>
403                 <plugin>
404                     <groupId>org.codehaus.mojo</groupId>
405                     <artifactId>cobertura-maven-plugin</artifactId>
406                     <version>2.7</version>
407                     <configuration>
408                         <formats>
409                             <format>html</format>
410                             <format>xml</format>
411                         </formats>
412                         <check/>
413                     </configuration>
414                 </plugin>
415                 <plugin>
416                     <groupId>org.codehaus.gmaven</groupId>
417                     <artifactId>gmaven-plugin</artifactId>
418                     <version>${gmaven-plugin.version}</version>
419                     <executions>
420                         <execution>
421                             <phase>validate</phase>
422                             <goals>
423                                 <goal>execute</goal>
424                             </goals>
425                             <configuration>
426                                 <properties>
427                                     <ver>${project.version}</ver>
428                                 </properties>
429                                 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
430                                 <source>
431                                     println 'ver: ' + project.properties['ver'];
432                                     if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
433                                         project.properties['dockertag1']=project.properties['ver'] + "-latest";
434                                         project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
435                                     } else {
436                                         project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
437                                         project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
438                                     }
439                                     println 'docker tag 1: ' + project.properties['dockertag1'];
440                                     println 'docker tag 2: ' + project.properties['dockertag2'];
441                                 </source>
442                             </configuration>
443                         </execution>
444                     </executions>
445                 </plugin>
446                 <plugin>
447                     <groupId>io.fabric8</groupId>
448                     <artifactId>docker-maven-plugin</artifactId>
449                     <version>${io.fabric8.version}</version>
450                     <configuration>
451                         <skipBuild>${docker.skip.build}</skipBuild>
452                         <verbose>${docker.verbose}</verbose>
453                         <apiVersion>${docker.apiVersion}</apiVersion>
454                         <pullRegistry>${docker.pull.registry}</pullRegistry>
455                         <pushRegistry>${docker.push.registry}</pushRegistry>
456                     </configuration>
457                 </plugin>
458                 <plugin>
459                     <groupId>org.codehaus.mojo</groupId>
460                     <artifactId>properties-maven-plugin</artifactId>
461                     <version>1.0.0</version>
462                     <executions>
463                         <execution>
464                             <phase>validate</phase>
465                             <goals>
466                                 <goal>read-project-properties</goal>
467                             </goals>
468                             <configuration>
469                                 <files>
470                                     <file>../version.properties</file>
471                                 </files>
472                             </configuration>
473                         </execution>
474                     </executions>
475                 </plugin>
476             </plugins>
477         </pluginManagement>
478     </build>
479     <pluginRepositories>
480         <pluginRepository>
481             <id>onap-plugin-snapshots</id>
482             <url>${onap.nexus.url}${snapshotNexusPath}</url>
483         </pluginRepository>
484     </pluginRepositories>
485 </project>