2 ============LICENSE_START==================================================
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
7 * Modifications Copyright (C) 2021 Samsung Electronics. All rights reserved.
8 * ===========================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END====================================================
22 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
25 <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">
26 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.dmaap.datarouter</groupId>
29 <artifactId>parent</artifactId>
30 <version>${revision}</version>
31 <relativePath>../pom.xml</relativePath>
33 <artifactId>datarouter-node</artifactId>
34 <packaging>jar</packaging>
35 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
37 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
38 <docker.location>${basedir}/target/${project.artifactId}</docker.location>
39 <datarouter.node.image.name>${docker.image.root}${project.artifactId}</datarouter.node.image.name>
40 <sonar.exclusions>src/main/java/org/onap/dmaap/datarouter/node/NodeMain.java</sonar.exclusions>
41 <sonar.language>java</sonar.language>
42 <sonar.skip>false</sonar.skip>
46 <groupId>org.apache.commons</groupId>
47 <artifactId>commons-lang3</artifactId>
50 <groupId>org.slf4j</groupId>
51 <artifactId>slf4j-api</artifactId>
54 <groupId>commons-codec</groupId>
55 <artifactId>commons-codec</artifactId>
58 <groupId>commons-io</groupId>
59 <artifactId>commons-io</artifactId>
62 <groupId>org.json</groupId>
63 <artifactId>json</artifactId>
66 <groupId>com.att.eelf</groupId>
67 <artifactId>eelf-core</artifactId>
70 <artifactId>powermock-api-mockito</artifactId>
71 <groupId>org.powermock</groupId>
76 <groupId>ch.qos.logback</groupId>
77 <artifactId>logback-classic</artifactId>
80 <groupId>ch.qos.logback</groupId>
81 <artifactId>logback-core</artifactId>
84 <groupId>javax.servlet</groupId>
85 <artifactId>javax.servlet-api</artifactId>
88 <groupId>org.eclipse.jetty</groupId>
89 <artifactId>jetty-server</artifactId>
92 <groupId>org.eclipse.jetty</groupId>
93 <artifactId>jetty-util</artifactId>
96 <groupId>org.eclipse.jetty</groupId>
97 <artifactId>jetty-servlet</artifactId>
100 <groupId>org.eclipse.jetty</groupId>
101 <artifactId>jetty-http</artifactId>
104 <groupId>com.intellij</groupId>
105 <artifactId>annotations</artifactId>
108 <groupId>org.hamcrest</groupId>
109 <artifactId>hamcrest-all</artifactId>
113 <groupId>junit</groupId>
114 <artifactId>junit</artifactId>
118 <groupId>org.sonatype.http-testing-harness</groupId>
119 <artifactId>junit-runner</artifactId>
123 <artifactId>powermock-api-mockito</artifactId>
124 <groupId>org.powermock</groupId>
127 <artifactId>powermock-reflect</artifactId>
128 <groupId>org.powermock</groupId>
131 <artifactId>jetty-security</artifactId>
132 <groupId>org.eclipse.jetty</groupId>
135 <artifactId>jsr305</artifactId>
136 <groupId>com.google.code.findbugs</groupId>
141 <groupId>org.mockito</groupId>
142 <artifactId>mockito-core</artifactId>
146 <groupId>org.powermock</groupId>
147 <artifactId>powermock-module-junit4</artifactId>
151 <groupId>org.powermock</groupId>
152 <artifactId>powermock-api-mockito2</artifactId>
156 <groupId>org.powermock</groupId>
157 <artifactId>powermock-api-support</artifactId>
161 <groupId>org.powermock</groupId>
162 <artifactId>powermock-core</artifactId>
166 <groupId>org.powermock</groupId>
167 <artifactId>powermock-module-junit4-rule</artifactId>
170 <groupId>net.bytebuddy</groupId>
171 <artifactId>byte-buddy</artifactId>
174 <groupId>net.bytebuddy</groupId>
175 <artifactId>byte-buddy-agent</artifactId>
178 <groupId>org.objenesis</groupId>
179 <artifactId>objenesis</artifactId>
182 <groupId>org.javassist</groupId>
183 <artifactId>javassist</artifactId>
186 <groupId>org.awaitility</groupId>
187 <artifactId>awaitility</artifactId>
188 <version>3.1.6</version>
196 <skipTests>true</skipTests>
201 <groupId>org.codehaus.gmaven</groupId>
202 <artifactId>gmaven-plugin</artifactId>
205 <groupId>io.fabric8</groupId>
206 <artifactId>docker-maven-plugin</artifactId>
210 <name>${datarouter.node.image.name}</name>
212 <cleanup>try</cleanup>
213 <noCache>true</noCache>
214 <optimise>true</optimise>
215 <contextDir>${basedir}/target/docker-stage</contextDir>
216 <dockerFile>Dockerfile</dockerFile>
218 <tag>${dockertag1}</tag>
219 <tag>${dockertag2}</tag>
227 <id>generate-images</id>
228 <phase>install</phase>
235 <phase>deploy</phase>
247 <finalName>datarouter-node</finalName>
250 <directory>src/main/resources</directory>
251 <filtering>true</filtering>
253 <include>**/*.properties</include>
257 <directory>src/main/resources</directory>
258 <filtering>true</filtering>
260 <include>**/logback.xml</include>
266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-compiler-plugin</artifactId>
270 <artifactId>maven-assembly-plugin</artifactId>
271 <version>2.4</version>
274 <descriptorRef>jar-with-dependencies</descriptorRef>
276 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
279 <addClasspath>true</addClasspath>
280 <mainClass>org.onap.dmaap.datarouter.node.NodeRunner</mainClass>
286 <id>make-assembly</id>
287 <!-- this is used for inheritance merges -->
288 <phase>package</phase>
289 <!-- bind to the packaging phase -->
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-resources-plugin</artifactId>
299 <version>2.7</version>
302 <id>copy-docker-file</id>
303 <phase>validate</phase>
305 <goal>copy-resources</goal>
308 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
309 <overwrite>true</overwrite>
312 <directory>${basedir}/src/main/resources/docker</directory>
313 <filtering>true</filtering>
315 <include>Dockerfile</include>
322 <id>copy-startup-script</id>
323 <phase>validate</phase>
325 <goal>copy-resources</goal>
328 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
329 <overwrite>true</overwrite>
332 <directory>${basedir}/src/main/resources/docker</directory>
333 <filtering>true</filtering>
335 <include>startup.sh</include>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-javadoc-plugin</artifactId>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-source-plugin</artifactId>
352 <groupId>org.codehaus.mojo</groupId>
353 <artifactId>cobertura-maven-plugin</artifactId>
356 <groupId>org.jacoco</groupId>
357 <artifactId>jacoco-maven-plugin</artifactId>
360 <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeRunner.java</exclude>
365 <groupId>org.codehaus.mojo</groupId>
366 <artifactId>properties-maven-plugin</artifactId>