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.language>java</sonar.language>
40 <sonar.skip>false</sonar.skip>
44 <groupId>org.hamcrest</groupId>
45 <artifactId>hamcrest-library</artifactId>
48 <groupId>org.slf4j</groupId>
49 <artifactId>slf4j-api</artifactId>
52 <groupId>commons-codec</groupId>
53 <artifactId>commons-codec</artifactId>
56 <groupId>commons-io</groupId>
57 <artifactId>commons-io</artifactId>
60 <groupId>junit</groupId>
61 <artifactId>junit</artifactId>
64 <groupId>org.json</groupId>
65 <artifactId>json</artifactId>
68 <groupId>com.att.eelf</groupId>
69 <artifactId>eelf-core</artifactId>
72 <groupId>ch.qos.logback</groupId>
73 <artifactId>logback-classic</artifactId>
76 <groupId>ch.qos.logback</groupId>
77 <artifactId>logback-core</artifactId>
80 <groupId>com.intellij</groupId>
81 <artifactId>annotations</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>org.sonatype.http-testing-harness</groupId>
109 <artifactId>junit-runner</artifactId>
112 <groupId>org.mockito</groupId>
113 <artifactId>mockito-core</artifactId>
116 <groupId>org.powermock</groupId>
117 <artifactId>powermock-module-junit4</artifactId>
120 <groupId>org.powermock</groupId>
121 <artifactId>powermock-api-mockito</artifactId>
124 <groupId>org.powermock</groupId>
125 <artifactId>powermock-api-support</artifactId>
128 <groupId>org.powermock</groupId>
129 <artifactId>powermock-core</artifactId>
132 <groupId>org.apache.commons</groupId>
133 <artifactId>commons-lang3</artifactId>
136 <groupId>org.awaitility</groupId>
137 <artifactId>awaitility</artifactId>
138 <version>3.1.6</version>
145 <skipTests>true</skipTests>
150 <groupId>org.codehaus.gmaven</groupId>
151 <artifactId>gmaven-plugin</artifactId>
154 <groupId>io.fabric8</groupId>
155 <artifactId>docker-maven-plugin</artifactId>
159 <name>${datarouter.node.image.name}</name>
161 <cleanup>try</cleanup>
162 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
163 <dockerFile>Dockerfile</dockerFile>
165 <tag>${dockertag1}</tag>
166 <tag>${dockertag2}</tag>
174 <id>generate-images</id>
175 <phase>install</phase>
182 <phase>deploy</phase>
194 <finalName>datarouter-node</finalName>
197 <directory>src/main/resources</directory>
198 <filtering>true</filtering>
200 <include>**/*.properties</include>
204 <directory>src/main/resources</directory>
205 <filtering>true</filtering>
207 <include>**/EelfMessages.properties</include>
213 <groupId>org.apache.maven.plugins</groupId>
214 <artifactId>maven-compiler-plugin</artifactId>
217 <artifactId>maven-assembly-plugin</artifactId>
218 <version>2.4</version>
221 <descriptorRef>jar-with-dependencies</descriptorRef>
223 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
226 <addClasspath>true</addClasspath>
227 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
233 <id>make-assembly</id>
234 <!-- this is used for inheritance merges -->
235 <phase>package</phase>
236 <!-- bind to the packaging phase -->
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-resources-plugin</artifactId>
246 <version>2.7</version>
249 <id>copy-docker-file</id>
250 <phase>validate</phase>
252 <goal>copy-resources</goal>
255 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
256 <overwrite>true</overwrite>
259 <directory>${basedir}/src/main/resources/docker</directory>
260 <filtering>true</filtering>
262 <include>**/*</include>
269 <id>copy-startup-script</id>
270 <phase>validate</phase>
272 <goal>copy-resources</goal>
275 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
276 <overwrite>true</overwrite>
279 <directory>${basedir}/src/main/resources/docker</directory>
280 <filtering>true</filtering>
282 <include>startup.sh</include>
289 <id>copy-resources-2</id>
290 <phase>validate</phase>
292 <goal>copy-resources</goal>
295 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
298 <directory>${basedir}/src/main/resources</directory>
300 <include>misc/**</include>
301 <include>**/**</include>
308 <id>copy-resources-3</id>
309 <phase>validate</phase>
311 <goal>copy-resources</goal>
314 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
317 <directory>${basedir}/data</directory>
319 <include>misc/**</include>
320 <include>**/**</include>
327 <id>copy-resources-4</id>
328 <phase>validate</phase>
330 <goal>copy-resources</goal>
333 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
336 <directory>${basedir}/aaf_certs</directory>
338 <include>misc/**</include>
339 <include>**/**</include>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-dependency-plugin</artifactId>
352 <id>copy-dependencies</id>
353 <phase>package</phase>
355 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-javadoc-plugin</artifactId>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-source-plugin</artifactId>
369 <groupId>org.codehaus.mojo</groupId>
370 <artifactId>cobertura-maven-plugin</artifactId>
373 <groupId>org.jacoco</groupId>
374 <artifactId>jacoco-maven-plugin</artifactId>
377 <groupId>org.codehaus.mojo</groupId>
378 <artifactId>properties-maven-plugin</artifactId>