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>junit</groupId>
57 <artifactId>junit</artifactId>
60 <groupId>org.json</groupId>
61 <artifactId>json</artifactId>
64 <groupId>com.att.eelf</groupId>
65 <artifactId>eelf-core</artifactId>
68 <groupId>ch.qos.logback</groupId>
69 <artifactId>logback-classic</artifactId>
72 <groupId>ch.qos.logback</groupId>
73 <artifactId>logback-core</artifactId>
76 <groupId>com.intellij</groupId>
77 <artifactId>annotations</artifactId>
80 <groupId>javax.servlet</groupId>
81 <artifactId>javax.servlet-api</artifactId>
84 <groupId>org.eclipse.jetty</groupId>
85 <artifactId>jetty-server</artifactId>
88 <groupId>org.eclipse.jetty</groupId>
89 <artifactId>jetty-util</artifactId>
92 <groupId>org.eclipse.jetty</groupId>
93 <artifactId>jetty-servlet</artifactId>
96 <groupId>org.eclipse.jetty</groupId>
97 <artifactId>jetty-http</artifactId>
100 <groupId>org.onap.aaf.authz</groupId>
101 <artifactId>aaf-cadi-core</artifactId>
104 <groupId>org.sonatype.http-testing-harness</groupId>
105 <artifactId>junit-runner</artifactId>
108 <groupId>org.mockito</groupId>
109 <artifactId>mockito-core</artifactId>
112 <groupId>org.powermock</groupId>
113 <artifactId>powermock-module-junit4</artifactId>
116 <groupId>org.powermock</groupId>
117 <artifactId>powermock-api-mockito</artifactId>
120 <groupId>org.powermock</groupId>
121 <artifactId>powermock-api-support</artifactId>
124 <groupId>org.powermock</groupId>
125 <artifactId>powermock-core</artifactId>
128 <groupId>org.apache.commons</groupId>
129 <artifactId>commons-lang3</artifactId>
136 <skipTests>true</skipTests>
141 <groupId>org.codehaus.gmaven</groupId>
142 <artifactId>gmaven-plugin</artifactId>
145 <groupId>io.fabric8</groupId>
146 <artifactId>docker-maven-plugin</artifactId>
150 <name>${datarouter.node.image.name}</name>
152 <cleanup>try</cleanup>
153 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
154 <dockerFile>Dockerfile</dockerFile>
156 <tag>${dockertag1}</tag>
157 <tag>${dockertag2}</tag>
165 <id>generate-images</id>
166 <phase>install</phase>
173 <phase>deploy</phase>
185 <finalName>datarouter-node</finalName>
188 <directory>src/main/resources</directory>
189 <filtering>true</filtering>
191 <include>**/*.properties</include>
195 <directory>src/main/resources</directory>
196 <filtering>true</filtering>
198 <include>**/EelfMessages.properties</include>
204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-compiler-plugin</artifactId>
208 <artifactId>maven-assembly-plugin</artifactId>
209 <version>2.4</version>
212 <descriptorRef>jar-with-dependencies</descriptorRef>
214 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
217 <addClasspath>true</addClasspath>
218 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
224 <id>make-assembly</id>
225 <!-- this is used for inheritance merges -->
226 <phase>package</phase>
227 <!-- bind to the packaging phase -->
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-resources-plugin</artifactId>
237 <version>2.7</version>
240 <id>copy-docker-file</id>
241 <phase>validate</phase>
243 <goal>copy-resources</goal>
246 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
247 <overwrite>true</overwrite>
250 <directory>${basedir}/src/main/resources/docker</directory>
251 <filtering>true</filtering>
253 <include>**/*</include>
260 <id>copy-startup-script</id>
261 <phase>validate</phase>
263 <goal>copy-resources</goal>
266 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
267 <overwrite>true</overwrite>
270 <directory>${basedir}/src/main/resources/docker</directory>
271 <filtering>true</filtering>
273 <include>startup.sh</include>
280 <id>copy-resources-2</id>
281 <phase>validate</phase>
283 <goal>copy-resources</goal>
286 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
289 <directory>${basedir}/src/main/resources</directory>
291 <include>misc/**</include>
292 <include>**/**</include>
299 <id>copy-resources-3</id>
300 <phase>validate</phase>
302 <goal>copy-resources</goal>
305 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
308 <directory>${basedir}/data</directory>
310 <include>misc/**</include>
311 <include>**/**</include>
318 <id>copy-resources-4</id>
319 <phase>validate</phase>
321 <goal>copy-resources</goal>
324 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
327 <directory>${basedir}/aaf_certs</directory>
329 <include>misc/**</include>
330 <include>**/**</include>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-dependency-plugin</artifactId>
343 <id>copy-dependencies</id>
344 <phase>package</phase>
346 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-javadoc-plugin</artifactId>
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-source-plugin</artifactId>
360 <groupId>org.codehaus.mojo</groupId>
361 <artifactId>cobertura-maven-plugin</artifactId>
364 <groupId>org.sonatype.plugins</groupId>
365 <artifactId>nexus-staging-maven-plugin</artifactId>
368 <groupId>org.jacoco</groupId>
369 <artifactId>jacoco-maven-plugin</artifactId>
372 <groupId>org.codehaus.mojo</groupId>
373 <artifactId>properties-maven-plugin</artifactId>