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>
27 <groupId>org.onap.dmaap.datarouter</groupId>
28 <artifactId>parent</artifactId>
29 <version>${revision}</version>
30 <relativePath>../pom.xml</relativePath>
32 <artifactId>datarouter-node</artifactId>
33 <packaging>jar</packaging>
34 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
36 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
37 <docker.location>${basedir}/target/${project.artifactId}</docker.location>
38 <datarouter.node.image.name>${docker.image.root}${project.artifactId}</datarouter.node.image.name>
39 <sonar.exclusions>src/main/java/org/onap/dmaap/datarouter/node/NodeMain.java</sonar.exclusions>
40 <sonar.language>java</sonar.language>
41 <sonar.skip>false</sonar.skip>
45 <groupId>org.hamcrest</groupId>
46 <artifactId>hamcrest-library</artifactId>
49 <groupId>org.slf4j</groupId>
50 <artifactId>slf4j-api</artifactId>
53 <groupId>commons-codec</groupId>
54 <artifactId>commons-codec</artifactId>
57 <groupId>commons-io</groupId>
58 <artifactId>commons-io</artifactId>
61 <groupId>junit</groupId>
62 <artifactId>junit</artifactId>
65 <groupId>org.json</groupId>
66 <artifactId>json</artifactId>
69 <groupId>com.att.eelf</groupId>
70 <artifactId>eelf-core</artifactId>
73 <groupId>ch.qos.logback</groupId>
74 <artifactId>logback-classic</artifactId>
77 <groupId>ch.qos.logback</groupId>
78 <artifactId>logback-core</artifactId>
81 <groupId>com.intellij</groupId>
82 <artifactId>annotations</artifactId>
85 <groupId>javax.servlet</groupId>
86 <artifactId>javax.servlet-api</artifactId>
89 <groupId>org.eclipse.jetty</groupId>
90 <artifactId>jetty-server</artifactId>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-util</artifactId>
97 <groupId>org.eclipse.jetty</groupId>
98 <artifactId>jetty-servlet</artifactId>
101 <groupId>org.eclipse.jetty</groupId>
102 <artifactId>jetty-http</artifactId>
105 <groupId>org.onap.aaf.authz</groupId>
106 <artifactId>aaf-cadi-core</artifactId>
109 <groupId>org.sonatype.http-testing-harness</groupId>
110 <artifactId>junit-runner</artifactId>
113 <groupId>org.mockito</groupId>
114 <artifactId>mockito-core</artifactId>
117 <groupId>org.powermock</groupId>
118 <artifactId>powermock-module-junit4</artifactId>
121 <groupId>org.powermock</groupId>
122 <artifactId>powermock-api-mockito</artifactId>
125 <groupId>org.powermock</groupId>
126 <artifactId>powermock-api-support</artifactId>
129 <groupId>org.powermock</groupId>
130 <artifactId>powermock-core</artifactId>
133 <groupId>org.apache.commons</groupId>
134 <artifactId>commons-lang3</artifactId>
137 <groupId>org.awaitility</groupId>
138 <artifactId>awaitility</artifactId>
139 <version>3.1.6</version>
146 <skipTests>true</skipTests>
151 <groupId>org.codehaus.gmaven</groupId>
152 <artifactId>gmaven-plugin</artifactId>
155 <groupId>io.fabric8</groupId>
156 <artifactId>docker-maven-plugin</artifactId>
160 <name>${datarouter.node.image.name}</name>
162 <cleanup>try</cleanup>
163 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
164 <dockerFile>Dockerfile</dockerFile>
166 <tag>${dockertag1}</tag>
167 <tag>${dockertag2}</tag>
175 <id>generate-images</id>
176 <phase>install</phase>
183 <phase>deploy</phase>
195 <finalName>datarouter-node</finalName>
198 <directory>src/main/resources</directory>
199 <filtering>true</filtering>
201 <include>**/*.properties</include>
205 <directory>src/main/resources</directory>
206 <filtering>true</filtering>
208 <include>**/EelfMessages.properties</include>
214 <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-compiler-plugin</artifactId>
218 <artifactId>maven-assembly-plugin</artifactId>
219 <version>2.4</version>
222 <descriptorRef>jar-with-dependencies</descriptorRef>
224 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
227 <addClasspath>true</addClasspath>
228 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
234 <id>make-assembly</id>
235 <!-- this is used for inheritance merges -->
236 <phase>package</phase>
237 <!-- bind to the packaging phase -->
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-resources-plugin</artifactId>
247 <version>2.7</version>
250 <id>copy-docker-file</id>
251 <phase>validate</phase>
253 <goal>copy-resources</goal>
256 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
257 <overwrite>true</overwrite>
260 <directory>${basedir}/src/main/resources/docker</directory>
261 <filtering>true</filtering>
263 <include>**/*</include>
270 <id>copy-startup-script</id>
271 <phase>validate</phase>
273 <goal>copy-resources</goal>
276 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
277 <overwrite>true</overwrite>
280 <directory>${basedir}/src/main/resources/docker</directory>
281 <filtering>true</filtering>
283 <include>startup.sh</include>
290 <id>copy-resources-2</id>
291 <phase>validate</phase>
293 <goal>copy-resources</goal>
296 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
299 <directory>${basedir}/src/main/resources</directory>
301 <include>misc/**</include>
302 <include>**/**</include>
309 <id>copy-resources-3</id>
310 <phase>validate</phase>
312 <goal>copy-resources</goal>
315 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
318 <directory>${basedir}/data</directory>
320 <include>misc/**</include>
321 <include>**/**</include>
328 <id>copy-resources-4</id>
329 <phase>validate</phase>
331 <goal>copy-resources</goal>
334 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
337 <directory>${basedir}/aaf_certs</directory>
339 <include>misc/**</include>
340 <include>**/**</include>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-dependency-plugin</artifactId>
353 <id>copy-dependencies</id>
354 <phase>package</phase>
356 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
362 <groupId>org.apache.maven.plugins</groupId>
363 <artifactId>maven-javadoc-plugin</artifactId>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-source-plugin</artifactId>
370 <groupId>org.codehaus.mojo</groupId>
371 <artifactId>cobertura-maven-plugin</artifactId>
374 <groupId>org.jacoco</groupId>
375 <artifactId>jacoco-maven-plugin</artifactId>
378 <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeMain.java</exclude>
383 <groupId>org.codehaus.mojo</groupId>
384 <artifactId>properties-maven-plugin</artifactId>