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>org.onap.aaf.authz</groupId>
105 <artifactId>aaf-cadi-core</artifactId>
108 <groupId>com.intellij</groupId>
109 <artifactId>annotations</artifactId>
112 <groupId>org.hamcrest</groupId>
113 <artifactId>hamcrest-all</artifactId>
117 <groupId>junit</groupId>
118 <artifactId>junit</artifactId>
122 <groupId>org.sonatype.http-testing-harness</groupId>
123 <artifactId>junit-runner</artifactId>
127 <artifactId>powermock-api-mockito</artifactId>
128 <groupId>org.powermock</groupId>
131 <artifactId>powermock-reflect</artifactId>
132 <groupId>org.powermock</groupId>
135 <artifactId>jetty-security</artifactId>
136 <groupId>org.eclipse.jetty</groupId>
139 <artifactId>jsr305</artifactId>
140 <groupId>com.google.code.findbugs</groupId>
145 <groupId>org.mockito</groupId>
146 <artifactId>mockito-core</artifactId>
150 <groupId>org.powermock</groupId>
151 <artifactId>powermock-module-junit4</artifactId>
155 <groupId>org.powermock</groupId>
156 <artifactId>powermock-api-mockito2</artifactId>
160 <groupId>org.powermock</groupId>
161 <artifactId>powermock-api-support</artifactId>
165 <groupId>org.powermock</groupId>
166 <artifactId>powermock-core</artifactId>
170 <groupId>org.powermock</groupId>
171 <artifactId>powermock-module-junit4-rule</artifactId>
174 <groupId>net.bytebuddy</groupId>
175 <artifactId>byte-buddy</artifactId>
178 <groupId>net.bytebuddy</groupId>
179 <artifactId>byte-buddy-agent</artifactId>
182 <groupId>org.objenesis</groupId>
183 <artifactId>objenesis</artifactId>
186 <groupId>org.javassist</groupId>
187 <artifactId>javassist</artifactId>
190 <groupId>org.awaitility</groupId>
191 <artifactId>awaitility</artifactId>
192 <version>3.1.6</version>
200 <skipTests>true</skipTests>
205 <groupId>org.codehaus.gmaven</groupId>
206 <artifactId>gmaven-plugin</artifactId>
209 <groupId>io.fabric8</groupId>
210 <artifactId>docker-maven-plugin</artifactId>
214 <name>${datarouter.node.image.name}</name>
216 <cleanup>try</cleanup>
217 <noCache>true</noCache>
218 <optimise>true</optimise>
219 <contextDir>${basedir}/target/docker-stage</contextDir>
220 <dockerFile>Dockerfile</dockerFile>
222 <tag>${dockertag1}</tag>
223 <tag>${dockertag2}</tag>
231 <id>generate-images</id>
232 <phase>install</phase>
239 <phase>deploy</phase>
251 <finalName>datarouter-node</finalName>
254 <directory>src/main/resources</directory>
255 <filtering>true</filtering>
257 <include>**/*.properties</include>
261 <directory>src/main/resources</directory>
262 <filtering>true</filtering>
264 <include>**/logback.xml</include>
270 <groupId>org.apache.maven.plugins</groupId>
271 <artifactId>maven-compiler-plugin</artifactId>
274 <artifactId>maven-assembly-plugin</artifactId>
275 <version>2.4</version>
278 <descriptorRef>jar-with-dependencies</descriptorRef>
280 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
283 <addClasspath>true</addClasspath>
284 <mainClass>org.onap.dmaap.datarouter.node.NodeRunner</mainClass>
290 <id>make-assembly</id>
291 <!-- this is used for inheritance merges -->
292 <phase>package</phase>
293 <!-- bind to the packaging phase -->
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-resources-plugin</artifactId>
303 <version>2.7</version>
306 <id>copy-docker-file</id>
307 <phase>validate</phase>
309 <goal>copy-resources</goal>
312 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
313 <overwrite>true</overwrite>
316 <directory>${basedir}/src/main/resources/docker</directory>
317 <filtering>true</filtering>
319 <include>Dockerfile</include>
326 <id>copy-startup-script</id>
327 <phase>validate</phase>
329 <goal>copy-resources</goal>
332 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
333 <overwrite>true</overwrite>
336 <directory>${basedir}/src/main/resources/docker</directory>
337 <filtering>true</filtering>
339 <include>startup.sh</include>
346 <id>copy-resources-etc</id>
347 <phase>validate</phase>
349 <goal>copy-resources</goal>
352 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
355 <directory>${basedir}/src/main/resources</directory>
357 <include>misc/**</include>
358 <include>**/**</include>
361 <exclude>aaf/**</exclude>
362 <exclude>docker/**</exclude>
369 <id>copy-aaf-props</id>
370 <phase>validate</phase>
372 <goal>copy-resources</goal>
375 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
378 <directory>${basedir}/src/main/resources/aaf</directory>
380 <include>**/**</include>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-javadoc-plugin</artifactId>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-source-plugin</artifactId>
397 <groupId>org.codehaus.mojo</groupId>
398 <artifactId>cobertura-maven-plugin</artifactId>
401 <groupId>org.jacoco</groupId>
402 <artifactId>jacoco-maven-plugin</artifactId>
405 <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeRunner.java</exclude>
410 <groupId>org.codehaus.mojo</groupId>
411 <artifactId>properties-maven-plugin</artifactId>