blob: ccd761cc45f43a4f6c4ed1a46e253056cf371137 [file] [log] [blame]
ezcoxemda23b252018-07-31 15:54:56 +01001<!--
2 ============LICENSE_START==================================================
3 * org.onap.dmaap
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
Piotr Darosz5a410372018-10-03 14:31:25 +02006 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
ezcoxemda23b252018-07-31 15:54:56 +01007 * ===========================================================================
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
eronkeo85129f82018-08-14 17:58:28 +010011 *
ezcoxemda23b252018-07-31 15:54:56 +010012 * http://www.apache.org/licenses/LICENSE-2.0
eronkeo85129f82018-08-14 17:58:28 +010013 *
ezcoxemda23b252018-07-31 15:54:56 +010014 * 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>
efiacor1c11ab82019-04-09 13:52:17 +000029 <version>${revision}</version>
ezcoxemda23b252018-07-31 15:54:56 +010030 <packaging>pom</packaging>
efiacor1c11ab82019-04-09 13:52:17 +000031 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
ezcoxemda23b252018-07-31 15:54:56 +010032 <parent>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
egernug39526ad2019-06-27 09:49:09 +000035 <version>2.0.0</version>
ezcoxemda23b252018-07-31 15:54:56 +010036 </parent>
37 <properties>
efiacor404cf6d2019-05-30 10:50:57 +000038 <!--revision must also be set in the version.properties file at project root-->
egernugc99a3972019-06-28 12:24:46 +000039 <revision>2.1.0-SNAPSHOT</revision>
ezcoxemda23b252018-07-31 15:54:56 +010040 <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>
efiacor1c11ab82019-04-09 13:52:17 +000043
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
ezcoxemda23b252018-07-31 15:54:56 +010049 <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>
econwar6c83a6f2018-08-24 13:11:57 +000053 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
ezcoxemda23b252018-07-31 15:54:56 +010054 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
ezcoxemda23b252018-07-31 15:54:56 +010055 <sonar.projectVersion>${project.version}</sonar.projectVersion>
efiacor1c11ab82019-04-09 13:52:17 +000056
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-->
eronkeo08c00262019-01-23 11:28:54 +000064 <jetty.version>9.4.14.v20181114</jetty.version>
edepaul555b7fc2018-09-11 08:07:16 +010065 <javax.mail-api.version>1.5.5</javax.mail-api.version>
efiacor1c11ab82019-04-09 13:52:17 +000066 <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
econward6e999b2018-09-05 16:10:01 +000067 <qos.logback.version>1.2.3</qos.logback.version>
efiacor5775de72019-03-26 14:29:01 +000068 <aaf-cadi-aaf.version>2.1.10</aaf-cadi-aaf.version>
edepaul12c71a52018-09-07 16:27:01 +010069 <commons-codec.version>1.10</commons-codec.version>
efiacor1c11ab82019-04-09 13:52:17 +000070 <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>
ezcoxemda23b252018-07-31 15:54:56 +010088 </properties>
89 <modules>
90 <module>datarouter-prov</module>
91 <module>datarouter-node</module>
Fiachra Corcoran19620eb2018-08-27 17:59:42 +010092 <module>datarouter-subscriber</module>
Piotr Darosz4aac89d2018-10-11 11:12:27 +020093 <module>datarouter-docker-compose</module>
ezcoxemda23b252018-07-31 15:54:56 +010094 </modules>
efiacor1c11ab82019-04-09 13:52:17 +000095 <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 <exclusions>
202 <exclusion>
203 <groupId>org.databene</groupId>
204 <artifactId>contiperf</artifactId>
205 </exclusion>
econwar74b69ed2019-04-26 13:32:21 +0000206 <exclusion>
207 <groupId>com.thoughtworks.xstream</groupId>
208 <artifactId>xstream</artifactId>
209 </exclusion>
efiacor1c11ab82019-04-09 13:52:17 +0000210 </exclusions>
211 </dependency>
212 <dependency>
213 <groupId>junit</groupId>
214 <artifactId>junit</artifactId>
215 <version>${junit.version}</version>
216 <scope>test</scope>
217 </dependency>
218 <dependency>
219 <groupId>org.mockito</groupId>
220 <artifactId>mockito-core</artifactId>
221 <version>${mockito-core.version}</version>
222 <scope>test</scope>
223 </dependency>
224 <dependency>
225 <groupId>org.powermock</groupId>
226 <artifactId>powermock-api-mockito</artifactId>
227 <version>${powermock-api-mockito.version}</version>
228 <scope>test</scope>
229 </dependency>
230 <dependency>
231 <groupId>org.powermock</groupId>
232 <artifactId>powermock-module-junit4</artifactId>
233 <version>${powermock.version}</version>
234 <scope>test</scope>
235 </dependency>
236 <dependency>
237 <groupId>org.powermock</groupId>
238 <artifactId>powermock-api-support</artifactId>
239 <version>${powermock.version}</version>
240 <scope>test</scope>
241 </dependency>
242 <dependency>
243 <groupId>org.powermock</groupId>
244 <artifactId>powermock-core</artifactId>
245 <version>${powermock.version}</version>
246 <scope>test</scope>
247 </dependency>
248 <dependency>
249 <groupId>org.apache.commons</groupId>
250 <artifactId>commons-lang3</artifactId>
251 <version>${commons-lang3.version}</version>
252 </dependency>
253 <dependency>
254 <groupId>com.att.eelf</groupId>
255 <artifactId>eelf-core</artifactId>
256 <version>${eelf-core.version}</version>
257 </dependency>
258 <dependency>
259 <groupId>org.json</groupId>
260 <artifactId>json</artifactId>
261 <version>${json.version}</version>
262 </dependency>
263 </dependencies>
264 </dependencyManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100265 <build>
266 <plugins>
267 <plugin>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-surefire-plugin</artifactId>
270 <configuration>
271 <excludes>
272 <exclude>IntegrationSuite.java</exclude>
273 </excludes>
274 </configuration>
275 </plugin>
econwar7704d302019-04-03 10:40:26 +0000276 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000277 <groupId>org.codehaus.mojo</groupId>
278 <artifactId>flatten-maven-plugin</artifactId>
279 <version>1.0.1</version>
280 <configuration>
281 <updatePomFile>true</updatePomFile>
282 <outputDirectory>target</outputDirectory>
283 </configuration>
284 <executions>
285 <execution>
286 <id>flatten</id>
287 <phase>process-resources</phase>
288 <goals>
289 <goal>flatten</goal>
290 </goals>
291 </execution>
292 </executions>
293 </plugin>
294 <plugin>
econwar7704d302019-04-03 10:40:26 +0000295 <artifactId>maven-checkstyle-plugin</artifactId>
296 <executions>
297 <execution>
298 <id>onap-java-style</id>
299 <configuration>
300 <consoleOutput>false</consoleOutput>
301 </configuration>
302 </execution>
303 </executions>
304 </plugin>
ezcoxemda23b252018-07-31 15:54:56 +0100305 </plugins>
efiacor1c11ab82019-04-09 13:52:17 +0000306 <pluginManagement>
307 <plugins>
308 <plugin>
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-compiler-plugin</artifactId>
311 <version>3.6.0</version>
312 <configuration>
313 <source>1.8</source>
314 <target>1.8</target>
315 </configuration>
316 </plugin>
317 <plugin>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-dependency-plugin</artifactId>
320 <version>2.10</version>
321 <executions>
322 <execution>
323 <id>copy-dependencies</id>
324 <goals>
325 <goal>copy-dependencies</goal>
326 </goals>
327 <configuration>
328 <overWriteReleases>false</overWriteReleases>
329 <overWriteSnapshots>false</overWriteSnapshots>
330 <overWriteIfNewer>true</overWriteIfNewer>
331 </configuration>
332 </execution>
333 </executions>
334 </plugin>
335 <plugin>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-javadoc-plugin</artifactId>
338 <version>3.0.1</version>
339 <configuration>
340 <failOnError>false</failOnError>
341 </configuration>
342 <executions>
343 <execution>
344 <id>attach-javadocs</id>
345 <goals>
346 <goal>jar</goal>
347 </goals>
348 </execution>
349 </executions>
350 </plugin>
351 <plugin>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-source-plugin</artifactId>
354 <version>2.2.1</version>
355 <executions>
356 <execution>
357 <id>attach-sources</id>
358 <goals>
359 <goal>jar-no-fork</goal>
360 </goals>
361 </execution>
362 </executions>
363 </plugin>
364 <plugin>
365 <groupId>org.codehaus.mojo</groupId>
366 <artifactId>cobertura-maven-plugin</artifactId>
367 <version>2.7</version>
368 <configuration>
369 <formats>
370 <format>html</format>
371 <format>xml</format>
372 </formats>
373 <check/>
374 </configuration>
375 </plugin>
376 <plugin>
377 <groupId>org.codehaus.gmaven</groupId>
378 <artifactId>gmaven-plugin</artifactId>
379 <version>${gmaven-plugin.version}</version>
380 <executions>
381 <execution>
382 <phase>validate</phase>
383 <goals>
384 <goal>execute</goal>
385 </goals>
386 <configuration>
387 <properties>
388 <ver>${project.version}</ver>
389 </properties>
390 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
391 <source>
392 println 'ver: ' + project.properties['ver'];
393 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
394 project.properties['dockertag1']=project.properties['ver'] + "-latest";
395 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
396 } else {
397 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
398 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
399 }
400 println 'docker tag 1: ' + project.properties['dockertag1'];
401 println 'docker tag 2: ' + project.properties['dockertag2'];
402 </source>
403 </configuration>
404 </execution>
405 </executions>
406 </plugin>
407 <plugin>
408 <groupId>io.fabric8</groupId>
409 <artifactId>docker-maven-plugin</artifactId>
410 <version>${io.fabric8.version}</version>
411 <configuration>
412 <skipBuild>${docker.skip.build}</skipBuild>
413 <verbose>${docker.verbose}</verbose>
414 <apiVersion>${docker.apiVersion}</apiVersion>
415 <pullRegistry>${docker.pull.registry}</pullRegistry>
416 <pushRegistry>${docker.push.registry}</pushRegistry>
417 </configuration>
418 </plugin>
419 <plugin>
420 <groupId>org.codehaus.mojo</groupId>
421 <artifactId>properties-maven-plugin</artifactId>
422 <version>1.0.0</version>
423 <executions>
424 <execution>
425 <phase>validate</phase>
426 <goals>
427 <goal>read-project-properties</goal>
428 </goals>
429 <configuration>
430 <files>
431 <file>../version.properties</file>
432 </files>
433 </configuration>
434 </execution>
435 </executions>
436 </plugin>
437 </plugins>
438 </pluginManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100439 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100440 <pluginRepositories>
441 <pluginRepository>
442 <id>onap-plugin-snapshots</id>
443 <url>${onap.nexus.url}${snapshotNexusPath}</url>
444 </pluginRepository>
445 </pluginRepositories>
446</project>