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.language>java</sonar.language>
39 <sonar.skip>false</sonar.skip>
43 <groupId>commons-codec</groupId>
44 <artifactId>commons-codec</artifactId>
47 <groupId>javax.servlet</groupId>
48 <artifactId>javax.servlet-api</artifactId>
51 <groupId>org.eclipse.jetty</groupId>
52 <artifactId>jetty-server</artifactId>
55 <groupId>org.eclipse.jetty</groupId>
56 <artifactId>jetty-util</artifactId>
59 <groupId>org.eclipse.jetty</groupId>
60 <artifactId>jetty-servlet</artifactId>
63 <groupId>org.eclipse.jetty</groupId>
64 <artifactId>jetty-http</artifactId>
67 <groupId>org.sonatype.http-testing-harness</groupId>
68 <artifactId>junit-runner</artifactId>
71 <groupId>org.powermock</groupId>
72 <artifactId>powermock-module-junit4</artifactId>
75 <groupId>org.mockito</groupId>
76 <artifactId>mockito-core</artifactId>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
83 <groupId>commons-io</groupId>
84 <artifactId>commons-io</artifactId>
87 <groupId>log4j</groupId>
88 <artifactId>log4j</artifactId>
89 <version>1.2.17</version>
90 <scope>compile</scope>
97 <skipTests>true</skipTests>
102 <groupId>org.codehaus.gmaven</groupId>
103 <artifactId>gmaven-plugin</artifactId>
106 <groupId>io.fabric8</groupId>
107 <artifactId>docker-maven-plugin</artifactId>
111 <name>${datarouter.sub.image.name}</name>
113 <cleanup>try</cleanup>
114 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
115 <dockerFile>Dockerfile</dockerFile>
117 <tag>${dockertag1}</tag>
118 <tag>${dockertag2}</tag>
126 <id>generate-images</id>
127 <phase>install</phase>
134 <phase>deploy</phase>
146 <finalName>datarouter-subscriber</finalName>
149 <directory>src/main/resources</directory>
150 <filtering>true</filtering>
152 <include>**/*.properties</include>
156 <directory>src/main/resources</directory>
157 <filtering>true</filtering>
159 <include>**/subscriber.properties</include>
163 <directory>src/main/resources</directory>
164 <filtering>true</filtering>
166 <include>**/log4j.properties</include>
170 <directory>src/test/resources</directory>
171 <filtering>true</filtering>
173 <include>**/log4j.properties</include>
179 <artifactId>maven-assembly-plugin</artifactId>
180 <version>2.4</version>
183 <descriptorRef>jar-with-dependencies</descriptorRef>
185 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/lib</outputDirectory>
188 <addClasspath>true</addClasspath>
189 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
195 <id>make-assembly</id>
196 <!-- this is used for inheritance merges -->
197 <phase>package</phase>
198 <!-- bind to the packaging phase -->
206 <groupId>org.apache.maven.plugins</groupId>
207 <artifactId>maven-compiler-plugin</artifactId>
210 <artifactId>maven-resources-plugin</artifactId>
211 <version>2.7</version>
214 <id>copy-docker-file</id>
215 <phase>validate</phase>
217 <goal>copy-resources</goal>
220 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
221 <overwrite>true</overwrite>
224 <directory>${basedir}/src/main/resources/docker</directory>
225 <filtering>true</filtering>
227 <include>**/*</include>
234 <id>copy-startup-script</id>
235 <phase>validate</phase>
237 <goal>copy-resources</goal>
240 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
241 <overwrite>true</overwrite>
244 <directory>${basedir}/src/main/resources/docker</directory>
245 <filtering>true</filtering>
247 <include>startup.sh</include>
254 <id>copy-resources-2</id>
255 <phase>validate</phase>
257 <goal>copy-resources</goal>
260 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/etc</outputDirectory>
263 <directory>${basedir}/src/main/resources</directory>
265 <include>*.properties</include>
274 <groupId>org.apache.maven.plugins</groupId>
275 <artifactId>maven-dependency-plugin</artifactId>
278 <id>copy-dependencies</id>
279 <phase>package</phase>
281 <outputDirectory>${project.build.directory}/docker-stage/opt/app/subscriber/lib</outputDirectory>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-source-plugin</artifactId>
291 <groupId>org.jacoco</groupId>
292 <artifactId>jacoco-maven-plugin</artifactId>
295 <groupId>org.codehaus.mojo</groupId>
296 <artifactId>properties-maven-plugin</artifactId>