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>javax.servlet</groupId>
49 <artifactId>javax.servlet-api</artifactId>
52 <groupId>org.eclipse.jetty</groupId>
53 <artifactId>jetty-server</artifactId>
56 <groupId>org.eclipse.jetty</groupId>
57 <artifactId>jetty-util</artifactId>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-servlet</artifactId>
64 <groupId>org.eclipse.jetty</groupId>
65 <artifactId>jetty-http</artifactId>
68 <groupId>org.sonatype.http-testing-harness</groupId>
69 <artifactId>junit-runner</artifactId>
72 <artifactId>powermock-reflect</artifactId>
73 <groupId>org.powermock</groupId>
76 <artifactId>powermock-api-mockito</artifactId>
77 <groupId>org.powermock</groupId>
80 <artifactId>jetty-security</artifactId>
81 <groupId>org.eclipse.jetty</groupId>
84 <artifactId>jsr305</artifactId>
85 <groupId>com.google.code.findbugs</groupId>
90 <groupId>junit</groupId>
91 <artifactId>junit</artifactId>
95 <groupId>org.mockito</groupId>
96 <artifactId>mockito-core</artifactId>
100 <groupId>org.powermock</groupId>
101 <artifactId>powermock-module-junit4</artifactId>
105 <groupId>org.powermock</groupId>
106 <artifactId>powermock-api-mockito2</artifactId>
110 <groupId>org.powermock</groupId>
111 <artifactId>powermock-api-support</artifactId>
115 <groupId>org.powermock</groupId>
116 <artifactId>powermock-core</artifactId>
120 <groupId>org.powermock</groupId>
121 <artifactId>powermock-module-junit4-rule</artifactId>
124 <groupId>net.bytebuddy</groupId>
125 <artifactId>byte-buddy</artifactId>
128 <groupId>net.bytebuddy</groupId>
129 <artifactId>byte-buddy-agent</artifactId>
132 <groupId>org.objenesis</groupId>
133 <artifactId>objenesis</artifactId>
136 <groupId>org.javassist</groupId>
137 <artifactId>javassist</artifactId>
140 <groupId>commons-io</groupId>
141 <artifactId>commons-io</artifactId>
144 <groupId>log4j</groupId>
145 <artifactId>log4j</artifactId>
146 <version>1.2.17</version>
147 <scope>compile</scope>
154 <skipTests>true</skipTests>
159 <groupId>org.codehaus.gmaven</groupId>
160 <artifactId>gmaven-plugin</artifactId>
163 <groupId>io.fabric8</groupId>
164 <artifactId>docker-maven-plugin</artifactId>
168 <name>${datarouter.sub.image.name}</name>
170 <cleanup>try</cleanup>
171 <noCache>true</noCache>
172 <optimise>true</optimise>
173 <contextDir>${basedir}/target/docker-stage</contextDir>
174 <dockerFile>Dockerfile</dockerFile>
176 <tag>${dockertag1}</tag>
177 <tag>${dockertag2}</tag>
185 <id>generate-images</id>
186 <phase>install</phase>
193 <phase>deploy</phase>
205 <finalName>datarouter-subscriber</finalName>
208 <directory>src/main/resources</directory>
209 <filtering>true</filtering>
211 <include>**/*.properties</include>
217 <artifactId>maven-assembly-plugin</artifactId>
218 <version>2.4</version>
221 <descriptorRef>jar-with-dependencies</descriptorRef>
223 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/lib</outputDirectory>
226 <addClasspath>true</addClasspath>
227 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
233 <id>make-assembly</id>
234 <!-- this is used for inheritance merges -->
235 <phase>package</phase>
236 <!-- bind to the packaging phase -->
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-compiler-plugin</artifactId>
248 <artifactId>maven-resources-plugin</artifactId>
249 <version>2.7</version>
252 <id>copy-docker-file</id>
253 <phase>validate</phase>
255 <goal>copy-resources</goal>
258 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
259 <overwrite>true</overwrite>
262 <directory>${basedir}/src/main/resources/docker</directory>
263 <filtering>true</filtering>
265 <include>Dockerfile</include>
272 <id>copy-startup-script</id>
273 <phase>validate</phase>
275 <goal>copy-resources</goal>
278 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
279 <overwrite>true</overwrite>
282 <directory>${basedir}/src/main/resources/docker</directory>
283 <filtering>true</filtering>
285 <include>startup.sh</include>
292 <id>copy-resources-2</id>
293 <phase>validate</phase>
295 <goal>copy-resources</goal>
298 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/etc</outputDirectory>
301 <directory>${basedir}/src/main/resources</directory>
303 <include>*.properties</include>
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-source-plugin</artifactId>
316 <groupId>org.jacoco</groupId>
317 <artifactId>jacoco-maven-plugin</artifactId>
320 <exclude>src/main/java/org/onap/dmaap/datarouter/subscriber/**</exclude>
325 <groupId>org.codehaus.mojo</groupId>
326 <artifactId>properties-maven-plugin</artifactId>