blob: 0d793996be128aa9e464f67f0e59f38a2286088f [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>
efiacor1ccd9c32019-10-08 16:24:28 +010035 <version>2.1.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-->
efiacore8ba88b2020-04-02 17:38:16 +010039 <revision>2.1.6-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>
ezcoxemda23b252018-07-31 15:54:56 +010051 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
efiacorb1ce4e02020-03-04 20:43:51 +000052 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
ezcoxemda23b252018-07-31 15:54:56 +010053 <sonar.projectVersion>${project.version}</sonar.projectVersion>
efiacor1c11ab82019-04-09 13:52:17 +000054
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-->
efiacor68a9ca22019-10-21 13:04:29 +010062 <jetty.version>9.4.20.v20190813</jetty.version>
edepaul555b7fc2018-09-11 08:07:16 +010063 <javax.mail-api.version>1.5.5</javax.mail-api.version>
efiacor1c11ab82019-04-09 13:52:17 +000064 <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
econward6e999b2018-09-05 16:10:01 +000065 <qos.logback.version>1.2.3</qos.logback.version>
efiacor1ccd9c32019-10-08 16:24:28 +010066 <aaf-cadi-aaf.version>2.1.15</aaf-cadi-aaf.version>
efiacor88a067f2019-07-30 11:49:44 +000067 <commons-codec.version>1.13</commons-codec.version>
efiacor1c11ab82019-04-09 13:52:17 +000068 <gmaven-plugin.version>1.5</gmaven-plugin.version>
efiacord20d5f52020-02-27 16:46:20 +000069 <io.fabric8.version>0.33.0</io.fabric8.version>
70 <docker.apiVersion>2.2.54</docker.apiVersion>
efiacor1c11ab82019-04-09 13:52:17 +000071 <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>
ezcoxemda23b252018-07-31 15:54:56 +010086 </properties>
87 <modules>
88 <module>datarouter-prov</module>
89 <module>datarouter-node</module>
Fiachra Corcoran19620eb2018-08-27 17:59:42 +010090 <module>datarouter-subscriber</module>
Piotr Darosz4aac89d2018-10-11 11:12:27 +020091 <module>datarouter-docker-compose</module>
ezcoxemda23b252018-07-31 15:54:56 +010092 </modules>
efiacor1c11ab82019-04-09 13:52:17 +000093 <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>
efiacor1ccd9c32019-10-08 16:24:28 +0100199 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000200 <exclusions>
201 <exclusion>
202 <groupId>org.databene</groupId>
203 <artifactId>contiperf</artifactId>
204 </exclusion>
econwar74b69ed2019-04-26 13:32:21 +0000205 <exclusion>
206 <groupId>com.thoughtworks.xstream</groupId>
207 <artifactId>xstream</artifactId>
208 </exclusion>
efiacor1c11ab82019-04-09 13:52:17 +0000209 </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>
ezcoxemda23b252018-07-31 15:54:56 +0100264 <build>
265 <plugins>
266 <plugin>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100267 <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>
econwar7704d302019-04-03 10:40:26 +0000275 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000276 <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>
econwar7704d302019-04-03 10:40:26 +0000294 <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>
ezcoxemda23b252018-07-31 15:54:56 +0100304 </plugins>
efiacor1c11ab82019-04-09 13:52:17 +0000305 <pluginManagement>
306 <plugins>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-compiler-plugin</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +0000310 <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>
efiacorb1ce4e02020-03-04 20:43:51 +0000435 <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>
efiacor1c11ab82019-04-09 13:52:17 +0000457 </plugins>
458 </pluginManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100459 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100460 <pluginRepositories>
461 <pluginRepository>
462 <id>onap-plugin-snapshots</id>
463 <url>${onap.nexus.url}${snapshotNexusPath}</url>
464 </pluginRepository>
465 </pluginRepositories>
466</project>