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>
93 <groupId>com.thoughtworks.xstream</groupId>
94 <artifactId>xstream</artifactId>
101 <skipTests>true</skipTests>
106 <groupId>org.codehaus.gmaven</groupId>
107 <artifactId>gmaven-plugin</artifactId>
110 <groupId>io.fabric8</groupId>
111 <artifactId>docker-maven-plugin</artifactId>
115 <name>${datarouter.sub.image.name}</name>
117 <cleanup>try</cleanup>
118 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
119 <dockerFile>Dockerfile</dockerFile>
121 <tag>${dockertag1}</tag>
122 <tag>${dockertag2}</tag>
130 <id>generate-images</id>
131 <phase>install</phase>
138 <phase>deploy</phase>
150 <finalName>datarouter-subscriber</finalName>
153 <directory>src/main/resources</directory>
154 <filtering>true</filtering>
156 <include>**/*.properties</include>
160 <directory>src/main/resources</directory>
161 <filtering>true</filtering>
163 <include>**/subscriber.properties</include>
167 <directory>src/main/resources</directory>
168 <filtering>true</filtering>
170 <include>**/log4j.properties</include>
174 <directory>src/test/resources</directory>
175 <filtering>true</filtering>
177 <include>**/log4j.properties</include>
183 <artifactId>maven-assembly-plugin</artifactId>
184 <version>2.4</version>
187 <descriptorRef>jar-with-dependencies</descriptorRef>
189 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/lib</outputDirectory>
192 <addClasspath>true</addClasspath>
193 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
199 <id>make-assembly</id>
200 <!-- this is used for inheritance merges -->
201 <phase>package</phase>
202 <!-- bind to the packaging phase -->
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-compiler-plugin</artifactId>
214 <artifactId>maven-resources-plugin</artifactId>
215 <version>2.7</version>
218 <id>copy-docker-file</id>
219 <phase>validate</phase>
221 <goal>copy-resources</goal>
224 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
225 <overwrite>true</overwrite>
228 <directory>${basedir}/src/main/resources/docker</directory>
229 <filtering>true</filtering>
231 <include>**/*</include>
238 <id>copy-startup-script</id>
239 <phase>validate</phase>
241 <goal>copy-resources</goal>
244 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
245 <overwrite>true</overwrite>
248 <directory>${basedir}/src/main/resources/docker</directory>
249 <filtering>true</filtering>
251 <include>startup.sh</include>
258 <id>copy-resources-2</id>
259 <phase>validate</phase>
261 <goal>copy-resources</goal>
264 <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/etc</outputDirectory>
267 <directory>${basedir}/src/main/resources</directory>
269 <include>*.properties</include>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-dependency-plugin</artifactId>
282 <id>copy-dependencies</id>
283 <phase>package</phase>
285 <outputDirectory>${project.build.directory}/docker-stage/opt/app/subscriber/lib</outputDirectory>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-source-plugin</artifactId>
295 <groupId>org.jacoco</groupId>
296 <artifactId>jacoco-maven-plugin</artifactId>
299 <groupId>org.codehaus.mojo</groupId>
300 <artifactId>properties-maven-plugin</artifactId>