2 ============LICENSE_START==================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
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>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
35 <version>2.1.0</version>
38 <!--revision must also be set in the version.properties file at project root-->
39 <revision>2.1.4-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>
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>
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>
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>
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.28.0</io.fabric8.version>
70 <docker.apiVersion>1.23</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>
88 <module>datarouter-prov</module>
89 <module>datarouter-node</module>
90 <module>datarouter-subscriber</module>
91 <module>datarouter-docker-compose</module>
93 <dependencyManagement>
96 <groupId>org.hamcrest</groupId>
97 <artifactId>hamcrest-library</artifactId>
98 <version>${hamcrest-lib.version}</version>
102 <groupId>org.slf4j</groupId>
103 <artifactId>slf4j-api</artifactId>
104 <version>${sl4j-api.version}</version>
107 <groupId>commons-codec</groupId>
108 <artifactId>commons-codec</artifactId>
109 <version>${commons-codec.version}</version>
112 <groupId>ch.qos.logback</groupId>
113 <artifactId>logback-classic</artifactId>
114 <version>${qos.logback.version}</version>
115 <scope>compile</scope>
118 <groupId>ch.qos.logback</groupId>
119 <artifactId>logback-core</artifactId>
120 <version>${qos.logback.version}</version>
121 <scope>compile</scope>
124 <groupId>com.intellij</groupId>
125 <artifactId>annotations</artifactId>
126 <version>${annotations.version}</version>
129 <groupId>javax.servlet</groupId>
130 <artifactId>javax.servlet-api</artifactId>
131 <version>${javax.servlet-api.version}</version>
132 <scope>compile</scope>
135 <groupId>javax.mail</groupId>
136 <artifactId>javax.mail-api</artifactId>
137 <version>${javax.mail-api.version}</version>
140 <groupId>org.eclipse.jetty</groupId>
141 <artifactId>jetty-server</artifactId>
142 <version>${jetty.version}</version>
145 <groupId>org.eclipse.jetty</groupId>
146 <artifactId>jetty-continuation</artifactId>
147 <version>${jetty.version}</version>
150 <groupId>org.eclipse.jetty</groupId>
151 <artifactId>jetty-util</artifactId>
152 <version>${jetty.version}</version>
155 <groupId>org.eclipse.jetty</groupId>
156 <artifactId>jetty-servlet</artifactId>
157 <version>${jetty.version}</version>
160 <groupId>org.eclipse.jetty</groupId>
161 <artifactId>jetty-http</artifactId>
162 <version>${jetty.version}</version>
165 <groupId>org.eclipse.jetty</groupId>
166 <artifactId>jetty-io</artifactId>
167 <version>${jetty.version}</version>
170 <groupId>org.eclipse.jetty.cdi</groupId>
171 <artifactId>cdi-websocket</artifactId>
172 <version>${jetty.version}</version>
175 <groupId>org.onap.aaf.authz</groupId>
176 <artifactId>aaf-cadi-core</artifactId>
177 <version>${aaf-cadi-aaf.version}</version>
180 <groupId>commons-io</groupId>
181 <artifactId>commons-io</artifactId>
182 <version>${commons-io.version}</version>
183 <scope>compile</scope>
186 <groupId>org.apache.httpcomponents</groupId>
187 <artifactId>httpcore</artifactId>
188 <version>${httpcore.version}</version>
191 <groupId>org.apache.httpcomponents</groupId>
192 <artifactId>httpclient</artifactId>
193 <version>${httpclient.version}</version>
196 <groupId>org.sonatype.http-testing-harness</groupId>
197 <artifactId>junit-runner</artifactId>
198 <version>${junit-runner.version}</version>
202 <groupId>org.databene</groupId>
203 <artifactId>contiperf</artifactId>
206 <groupId>com.thoughtworks.xstream</groupId>
207 <artifactId>xstream</artifactId>
212 <groupId>junit</groupId>
213 <artifactId>junit</artifactId>
214 <version>${junit.version}</version>
218 <groupId>org.mockito</groupId>
219 <artifactId>mockito-core</artifactId>
220 <version>${mockito-core.version}</version>
224 <groupId>org.powermock</groupId>
225 <artifactId>powermock-api-mockito</artifactId>
226 <version>${powermock-api-mockito.version}</version>
230 <groupId>org.powermock</groupId>
231 <artifactId>powermock-module-junit4</artifactId>
232 <version>${powermock.version}</version>
236 <groupId>org.powermock</groupId>
237 <artifactId>powermock-api-support</artifactId>
238 <version>${powermock.version}</version>
242 <groupId>org.powermock</groupId>
243 <artifactId>powermock-core</artifactId>
244 <version>${powermock.version}</version>
248 <groupId>org.apache.commons</groupId>
249 <artifactId>commons-lang3</artifactId>
250 <version>${commons-lang3.version}</version>
253 <groupId>com.att.eelf</groupId>
254 <artifactId>eelf-core</artifactId>
255 <version>${eelf-core.version}</version>
258 <groupId>org.json</groupId>
259 <artifactId>json</artifactId>
260 <version>${json.version}</version>
263 </dependencyManagement>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-surefire-plugin</artifactId>
271 <exclude>IntegrationSuite.java</exclude>
276 <groupId>org.codehaus.mojo</groupId>
277 <artifactId>flatten-maven-plugin</artifactId>
278 <version>1.0.1</version>
280 <updatePomFile>true</updatePomFile>
281 <outputDirectory>target</outputDirectory>
286 <phase>process-resources</phase>
294 <artifactId>maven-checkstyle-plugin</artifactId>
297 <id>onap-java-style</id>
299 <consoleOutput>false</consoleOutput>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-compiler-plugin</artifactId>
310 <version>3.6.0</version>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-dependency-plugin</artifactId>
319 <version>2.10</version>
322 <id>copy-dependencies</id>
324 <goal>copy-dependencies</goal>
327 <overWriteReleases>false</overWriteReleases>
328 <overWriteSnapshots>false</overWriteSnapshots>
329 <overWriteIfNewer>true</overWriteIfNewer>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-javadoc-plugin</artifactId>
337 <version>3.0.1</version>
339 <failOnError>false</failOnError>
343 <id>attach-javadocs</id>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-source-plugin</artifactId>
353 <version>2.2.1</version>
356 <id>attach-sources</id>
358 <goal>jar-no-fork</goal>
364 <groupId>org.codehaus.mojo</groupId>
365 <artifactId>cobertura-maven-plugin</artifactId>
366 <version>2.7</version>
369 <format>html</format>
376 <groupId>org.codehaus.gmaven</groupId>
377 <artifactId>gmaven-plugin</artifactId>
378 <version>${gmaven-plugin.version}</version>
381 <phase>validate</phase>
387 <ver>${project.version}</ver>
389 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
391 println 'ver: ' + project.properties['ver'];
392 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
393 project.properties['dockertag1']=project.properties['ver'] + "-latest";
394 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
396 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
397 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
399 println 'docker tag 1: ' + project.properties['dockertag1'];
400 println 'docker tag 2: ' + project.properties['dockertag2'];
407 <groupId>io.fabric8</groupId>
408 <artifactId>docker-maven-plugin</artifactId>
409 <version>${io.fabric8.version}</version>
411 <skipBuild>${docker.skip.build}</skipBuild>
412 <verbose>${docker.verbose}</verbose>
413 <apiVersion>${docker.apiVersion}</apiVersion>
414 <pullRegistry>${docker.pull.registry}</pullRegistry>
415 <pushRegistry>${docker.push.registry}</pushRegistry>
419 <groupId>org.codehaus.mojo</groupId>
420 <artifactId>properties-maven-plugin</artifactId>
421 <version>1.0.0</version>
424 <phase>validate</phase>
426 <goal>read-project-properties</goal>
430 <file>../version.properties</file>
437 <groupId>org.jacoco</groupId>
438 <artifactId>jacoco-maven-plugin</artifactId>
441 <id>prepare-agent</id>
443 <goal>prepare-agent</goal>
452 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
453 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
463 <id>onap-plugin-snapshots</id>
464 <url>${onap.nexus.url}${snapshotNexusPath}</url>
466 </pluginRepositories>