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>
156 <skipTests>true</skipTests>
161 <groupId>org.codehaus.gmaven</groupId>
162 <artifactId>gmaven-plugin</artifactId>
165 <groupId>io.fabric8</groupId>
166 <artifactId>docker-maven-plugin</artifactId>
170 <name>${datarouter.sub.image.name}</name>
172 <cleanup>try</cleanup>
173 <noCache>true</noCache>
174 <optimise>true</optimise>
175 <contextDir>${basedir}/target/docker-stage</contextDir>
176 <dockerFile>Dockerfile</dockerFile>
178 <tag>${dockertag1}</tag>
179 <tag>${dockertag2}</tag>
187 <id>generate-images</id>
188 <phase>install</phase>
195 <phase>deploy</phase>
207 <finalName>datarouter-subscriber</finalName>
210 <directory>src/main/resources</directory>
211 <filtering>true</filtering>
213 <include>**/*.properties</include>
214 <include>**/logback.xml</include>
220 <artifactId>maven-assembly-plugin</artifactId>
221 <version>2.4</version>
224 <descriptorRef>jar-with-dependencies</descriptorRef>
226 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/lib</outputDirectory>
229 <addClasspath>true</addClasspath>
230 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
236 <id>make-assembly</id>
237 <!-- this is used for inheritance merges -->
238 <phase>package</phase>
239 <!-- bind to the packaging phase -->
247 <groupId>org.apache.maven.plugins</groupId>
248 <artifactId>maven-compiler-plugin</artifactId>
251 <artifactId>maven-resources-plugin</artifactId>
252 <version>2.7</version>
255 <id>copy-docker-file</id>
256 <phase>validate</phase>
258 <goal>copy-resources</goal>
261 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
262 <overwrite>true</overwrite>
265 <directory>${basedir}/src/main/resources/docker</directory>
266 <filtering>true</filtering>
268 <include>Dockerfile</include>
275 <id>copy-startup-script</id>
276 <phase>validate</phase>
278 <goal>copy-resources</goal>
281 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
282 <overwrite>true</overwrite>
285 <directory>${basedir}/src/main/resources/docker</directory>
286 <filtering>true</filtering>
288 <include>startup.sh</include>
295 <id>copy-resources-2</id>
296 <phase>validate</phase>
298 <goal>copy-resources</goal>
301 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/etc</outputDirectory>
304 <directory>${basedir}/src/main/resources</directory>
306 <include>*.properties</include>
315 <groupId>org.apache.maven.plugins</groupId>
316 <artifactId>maven-source-plugin</artifactId>
319 <groupId>org.jacoco</groupId>
320 <artifactId>jacoco-maven-plugin</artifactId>
323 <exclude>src/main/java/org/onap/dmaap/datarouter/subscriber/**</exclude>
328 <groupId>org.codehaus.mojo</groupId>
329 <artifactId>properties-maven-plugin</artifactId>