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 <artifactId>powermock-api-mockito</artifactId>
70 <groupId>org.powermock</groupId>
75 <groupId>ch.qos.logback</groupId>
76 <artifactId>logback-classic</artifactId>
79 <groupId>ch.qos.logback</groupId>
80 <artifactId>logback-core</artifactId>
83 <groupId>javax.servlet</groupId>
84 <artifactId>javax.servlet-api</artifactId>
87 <groupId>org.eclipse.jetty</groupId>
88 <artifactId>jetty-server</artifactId>
91 <groupId>org.eclipse.jetty</groupId>
92 <artifactId>jetty-util</artifactId>
95 <groupId>org.eclipse.jetty</groupId>
96 <artifactId>jetty-servlet</artifactId>
99 <groupId>org.eclipse.jetty</groupId>
100 <artifactId>jetty-http</artifactId>
103 <groupId>org.onap.aaf.authz</groupId>
104 <artifactId>aaf-cadi-core</artifactId>
107 <groupId>com.intellij</groupId>
108 <artifactId>annotations</artifactId>
111 <groupId>org.hamcrest</groupId>
112 <artifactId>hamcrest-all</artifactId>
116 <groupId>junit</groupId>
117 <artifactId>junit</artifactId>
121 <groupId>org.sonatype.http-testing-harness</groupId>
122 <artifactId>junit-runner</artifactId>
126 <artifactId>powermock-api-mockito</artifactId>
127 <groupId>org.powermock</groupId>
130 <artifactId>powermock-reflect</artifactId>
131 <groupId>org.powermock</groupId>
134 <artifactId>jetty-security</artifactId>
135 <groupId>org.eclipse.jetty</groupId>
138 <artifactId>jsr305</artifactId>
139 <groupId>com.google.code.findbugs</groupId>
144 <groupId>org.mockito</groupId>
145 <artifactId>mockito-core</artifactId>
149 <groupId>org.powermock</groupId>
150 <artifactId>powermock-module-junit4</artifactId>
154 <groupId>org.powermock</groupId>
155 <artifactId>powermock-api-mockito2</artifactId>
159 <groupId>org.powermock</groupId>
160 <artifactId>powermock-api-support</artifactId>
164 <groupId>org.powermock</groupId>
165 <artifactId>powermock-core</artifactId>
169 <groupId>org.powermock</groupId>
170 <artifactId>powermock-module-junit4-rule</artifactId>
173 <groupId>net.bytebuddy</groupId>
174 <artifactId>byte-buddy</artifactId>
177 <groupId>net.bytebuddy</groupId>
178 <artifactId>byte-buddy-agent</artifactId>
181 <groupId>org.objenesis</groupId>
182 <artifactId>objenesis</artifactId>
185 <groupId>org.javassist</groupId>
186 <artifactId>javassist</artifactId>
189 <groupId>org.awaitility</groupId>
190 <artifactId>awaitility</artifactId>
191 <version>3.1.6</version>
199 <skipTests>true</skipTests>
204 <groupId>org.codehaus.gmaven</groupId>
205 <artifactId>gmaven-plugin</artifactId>
208 <groupId>io.fabric8</groupId>
209 <artifactId>docker-maven-plugin</artifactId>
213 <name>${datarouter.node.image.name}</name>
215 <cleanup>try</cleanup>
216 <noCache>true</noCache>
217 <optimise>true</optimise>
218 <contextDir>${basedir}/target/docker-stage</contextDir>
219 <dockerFile>Dockerfile</dockerFile>
221 <tag>${dockertag1}</tag>
222 <tag>${dockertag2}</tag>
230 <id>generate-images</id>
231 <phase>install</phase>
238 <phase>deploy</phase>
250 <finalName>datarouter-node</finalName>
253 <directory>src/main/resources</directory>
254 <filtering>true</filtering>
256 <include>**/*.properties</include>
260 <directory>src/main/resources</directory>
261 <filtering>true</filtering>
263 <include>**/logback.xml</include>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-compiler-plugin</artifactId>
273 <artifactId>maven-assembly-plugin</artifactId>
274 <version>2.4</version>
277 <descriptorRef>jar-with-dependencies</descriptorRef>
279 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
282 <addClasspath>true</addClasspath>
283 <mainClass>org.onap.dmaap.datarouter.node.NodeRunner</mainClass>
289 <id>make-assembly</id>
290 <!-- this is used for inheritance merges -->
291 <phase>package</phase>
292 <!-- bind to the packaging phase -->
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-resources-plugin</artifactId>
302 <version>2.7</version>
305 <id>copy-docker-file</id>
306 <phase>validate</phase>
308 <goal>copy-resources</goal>
311 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
312 <overwrite>true</overwrite>
315 <directory>${basedir}/src/main/resources/docker</directory>
316 <filtering>true</filtering>
318 <include>Dockerfile</include>
325 <id>copy-startup-script</id>
326 <phase>validate</phase>
328 <goal>copy-resources</goal>
331 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
332 <overwrite>true</overwrite>
335 <directory>${basedir}/src/main/resources/docker</directory>
336 <filtering>true</filtering>
338 <include>startup.sh</include>
345 <id>copy-resources-etc</id>
346 <phase>validate</phase>
348 <goal>copy-resources</goal>
351 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
354 <directory>${basedir}/src/main/resources</directory>
356 <include>misc/**</include>
357 <include>**/**</include>
360 <exclude>aaf/**</exclude>
361 <exclude>docker/**</exclude>
368 <id>copy-aaf-props</id>
369 <phase>validate</phase>
371 <goal>copy-resources</goal>
374 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
377 <directory>${basedir}/src/main/resources/aaf</directory>
379 <include>**/**</include>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-javadoc-plugin</artifactId>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-source-plugin</artifactId>
396 <groupId>org.codehaus.mojo</groupId>
397 <artifactId>cobertura-maven-plugin</artifactId>
400 <groupId>org.jacoco</groupId>
401 <artifactId>jacoco-maven-plugin</artifactId>
404 <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeRunner.java</exclude>
409 <groupId>org.codehaus.mojo</groupId>
410 <artifactId>properties-maven-plugin</artifactId>