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.apache.commons</groupId>
46 <artifactId>commons-lang3</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>org.json</groupId>
62 <artifactId>json</artifactId>
65 <groupId>com.att.eelf</groupId>
66 <artifactId>eelf-core</artifactId>
69 <groupId>ch.qos.logback</groupId>
70 <artifactId>logback-classic</artifactId>
73 <groupId>ch.qos.logback</groupId>
74 <artifactId>logback-core</artifactId>
77 <groupId>javax.servlet</groupId>
78 <artifactId>javax.servlet-api</artifactId>
81 <groupId>org.eclipse.jetty</groupId>
82 <artifactId>jetty-server</artifactId>
85 <groupId>org.eclipse.jetty</groupId>
86 <artifactId>jetty-util</artifactId>
89 <groupId>org.eclipse.jetty</groupId>
90 <artifactId>jetty-servlet</artifactId>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-http</artifactId>
97 <groupId>org.onap.aaf.authz</groupId>
98 <artifactId>aaf-cadi-core</artifactId>
101 <groupId>com.intellij</groupId>
102 <artifactId>annotations</artifactId>
105 <groupId>org.hamcrest</groupId>
106 <artifactId>hamcrest-library</artifactId>
110 <groupId>junit</groupId>
111 <artifactId>junit</artifactId>
115 <groupId>org.sonatype.http-testing-harness</groupId>
116 <artifactId>junit-runner</artifactId>
120 <groupId>org.mockito</groupId>
121 <artifactId>mockito-core</artifactId>
125 <groupId>org.powermock</groupId>
126 <artifactId>powermock-module-junit4</artifactId>
130 <groupId>org.powermock</groupId>
131 <artifactId>powermock-api-mockito</artifactId>
135 <groupId>org.powermock</groupId>
136 <artifactId>powermock-api-support</artifactId>
140 <groupId>org.powermock</groupId>
141 <artifactId>powermock-core</artifactId>
145 <groupId>org.awaitility</groupId>
146 <artifactId>awaitility</artifactId>
147 <version>3.1.6</version>
155 <skipTests>true</skipTests>
160 <groupId>org.codehaus.gmaven</groupId>
161 <artifactId>gmaven-plugin</artifactId>
164 <groupId>io.fabric8</groupId>
165 <artifactId>docker-maven-plugin</artifactId>
169 <name>${datarouter.node.image.name}</name>
171 <cleanup>try</cleanup>
172 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
173 <dockerFile>Dockerfile</dockerFile>
175 <tag>${dockertag1}</tag>
176 <tag>${dockertag2}</tag>
184 <id>generate-images</id>
185 <phase>install</phase>
192 <phase>deploy</phase>
204 <finalName>datarouter-node</finalName>
207 <directory>src/main/resources</directory>
208 <filtering>true</filtering>
210 <include>**/*.properties</include>
214 <directory>src/main/resources</directory>
215 <filtering>true</filtering>
217 <include>**/logback.xml</include>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-compiler-plugin</artifactId>
227 <artifactId>maven-assembly-plugin</artifactId>
228 <version>2.4</version>
231 <descriptorRef>jar-with-dependencies</descriptorRef>
233 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
236 <addClasspath>true</addClasspath>
237 <mainClass>org.onap.dmaap.datarouter.node.NodeRunner</mainClass>
243 <id>make-assembly</id>
244 <!-- this is used for inheritance merges -->
245 <phase>package</phase>
246 <!-- bind to the packaging phase -->
254 <groupId>org.apache.maven.plugins</groupId>
255 <artifactId>maven-resources-plugin</artifactId>
256 <version>2.7</version>
259 <id>copy-docker-file</id>
260 <phase>validate</phase>
262 <goal>copy-resources</goal>
265 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
266 <overwrite>true</overwrite>
269 <directory>${basedir}/src/main/resources/docker</directory>
270 <filtering>true</filtering>
272 <include>Dockerfile</include>
279 <id>copy-startup-script</id>
280 <phase>validate</phase>
282 <goal>copy-resources</goal>
285 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
286 <overwrite>true</overwrite>
289 <directory>${basedir}/src/main/resources/docker</directory>
290 <filtering>true</filtering>
292 <include>startup.sh</include>
299 <id>copy-resources-etc</id>
300 <phase>validate</phase>
302 <goal>copy-resources</goal>
305 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
308 <directory>${basedir}/src/main/resources</directory>
310 <include>misc/**</include>
311 <include>**/**</include>
314 <exclude>aaf/**</exclude>
315 <exclude>docker/**</exclude>
322 <id>copy-aaf-props</id>
323 <phase>validate</phase>
325 <goal>copy-resources</goal>
328 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
331 <directory>${basedir}/src/main/resources/aaf</directory>
333 <include>**/**</include>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-javadoc-plugin</artifactId>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-source-plugin</artifactId>
350 <groupId>org.codehaus.mojo</groupId>
351 <artifactId>cobertura-maven-plugin</artifactId>
354 <groupId>org.jacoco</groupId>
355 <artifactId>jacoco-maven-plugin</artifactId>
358 <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeRunner.java</exclude>
363 <groupId>org.codehaus.mojo</groupId>
364 <artifactId>properties-maven-plugin</artifactId>