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-subscriber</artifactId>
33 <packaging>jar</packaging>
35 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
36 <docker.location>${basedir}/target/${project.artifactId}</docker.location>
37 <datarouter.sub.image.name>${docker.image.root}${project.artifactId}</datarouter.sub.image.name>
38 <sonar.exclusions>src/main/java/org/onap/dmaap/datarouter/subscriber/**</sonar.exclusions>
39 <sonar.language>java</sonar.language>
40 <sonar.skip>false</sonar.skip>
44 <groupId>commons-codec</groupId>
45 <artifactId>commons-codec</artifactId>
48 <groupId>ch.qos.logback</groupId>
49 <artifactId>logback-classic</artifactId>
52 <groupId>ch.qos.logback</groupId>
53 <artifactId>logback-core</artifactId>
56 <groupId>javax.servlet</groupId>
57 <artifactId>javax.servlet-api</artifactId>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-server</artifactId>
64 <groupId>org.eclipse.jetty</groupId>
65 <artifactId>jetty-util</artifactId>
68 <groupId>org.eclipse.jetty</groupId>
69 <artifactId>jetty-servlet</artifactId>
72 <groupId>org.eclipse.jetty</groupId>
73 <artifactId>jetty-http</artifactId>
76 <groupId>org.sonatype.http-testing-harness</groupId>
77 <artifactId>junit-runner</artifactId>
80 <artifactId>powermock-reflect</artifactId>
81 <groupId>org.powermock</groupId>
84 <artifactId>powermock-api-mockito</artifactId>
85 <groupId>org.powermock</groupId>
88 <artifactId>jetty-security</artifactId>
89 <groupId>org.eclipse.jetty</groupId>
92 <artifactId>jsr305</artifactId>
93 <groupId>com.google.code.findbugs</groupId>
98 <groupId>junit</groupId>
99 <artifactId>junit</artifactId>
103 <groupId>org.mockito</groupId>
104 <artifactId>mockito-core</artifactId>
108 <groupId>org.powermock</groupId>
109 <artifactId>powermock-module-junit4</artifactId>
113 <groupId>org.powermock</groupId>
114 <artifactId>powermock-api-mockito2</artifactId>
118 <groupId>org.powermock</groupId>
119 <artifactId>powermock-api-support</artifactId>
123 <groupId>org.powermock</groupId>
124 <artifactId>powermock-core</artifactId>
128 <groupId>org.powermock</groupId>
129 <artifactId>powermock-module-junit4-rule</artifactId>
132 <groupId>net.bytebuddy</groupId>
133 <artifactId>byte-buddy</artifactId>
136 <groupId>net.bytebuddy</groupId>
137 <artifactId>byte-buddy-agent</artifactId>
140 <groupId>org.objenesis</groupId>
141 <artifactId>objenesis</artifactId>
144 <groupId>org.javassist</groupId>
145 <artifactId>javassist</artifactId>
148 <groupId>commons-io</groupId>
149 <artifactId>commons-io</artifactId>
152 <groupId>com.att.eelf</groupId>
153 <artifactId>eelf-core</artifactId>
156 <artifactId>powermock-api-mockito</artifactId>
157 <groupId>org.powermock</groupId>
166 <skipTests>true</skipTests>
171 <groupId>org.codehaus.gmaven</groupId>
172 <artifactId>gmaven-plugin</artifactId>
175 <groupId>io.fabric8</groupId>
176 <artifactId>docker-maven-plugin</artifactId>
180 <name>${datarouter.sub.image.name}</name>
182 <cleanup>try</cleanup>
183 <noCache>true</noCache>
184 <optimise>true</optimise>
185 <contextDir>${basedir}/target/docker-stage</contextDir>
186 <dockerFile>Dockerfile</dockerFile>
188 <tag>${dockertag1}</tag>
189 <tag>${dockertag2}</tag>
197 <id>generate-images</id>
198 <phase>install</phase>
205 <phase>deploy</phase>
217 <finalName>datarouter-subscriber</finalName>
220 <directory>src/main/resources</directory>
221 <filtering>true</filtering>
223 <include>**/*.properties</include>
224 <include>**/logback.xml</include>
230 <artifactId>maven-assembly-plugin</artifactId>
231 <version>2.4</version>
234 <descriptorRef>jar-with-dependencies</descriptorRef>
236 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/lib</outputDirectory>
239 <addClasspath>true</addClasspath>
240 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
246 <id>make-assembly</id>
247 <!-- this is used for inheritance merges -->
248 <phase>package</phase>
249 <!-- bind to the packaging phase -->
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-compiler-plugin</artifactId>
261 <artifactId>maven-resources-plugin</artifactId>
262 <version>2.7</version>
265 <id>copy-docker-file</id>
266 <phase>validate</phase>
268 <goal>copy-resources</goal>
271 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
272 <overwrite>true</overwrite>
275 <directory>${basedir}/src/main/resources/docker</directory>
276 <filtering>true</filtering>
278 <include>Dockerfile</include>
285 <id>copy-startup-script</id>
286 <phase>validate</phase>
288 <goal>copy-resources</goal>
291 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
292 <overwrite>true</overwrite>
295 <directory>${basedir}/src/main/resources/docker</directory>
296 <filtering>true</filtering>
298 <include>startup.sh</include>
305 <id>copy-resources-2</id>
306 <phase>validate</phase>
308 <goal>copy-resources</goal>
311 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/etc</outputDirectory>
314 <directory>${basedir}/src/main/resources</directory>
316 <include>*.properties</include>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-source-plugin</artifactId>
329 <groupId>org.jacoco</groupId>
330 <artifactId>jacoco-maven-plugin</artifactId>
333 <exclude>src/main/java/org/onap/dmaap/datarouter/subscriber/**</exclude>
338 <groupId>org.codehaus.mojo</groupId>
339 <artifactId>properties-maven-plugin</artifactId>