2 ============LICENSE_START==================================================
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * ===========================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END====================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 <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">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.dmaap.datarouter</groupId>
27 <artifactId>parent</artifactId>
28 <version>1.0.1-SNAPSHOT</version>
29 <relativePath>../pom.xml</relativePath>
31 <artifactId>datarouter-subscriber</artifactId>
32 <packaging>jar</packaging>
33 <name>datarouter-subscriber</name>
35 <sonar.language>java</sonar.language>
36 <sonar.skip>false</sonar.skip>
37 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
38 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40 <docker.location>${basedir}/target/${artifactId}</docker.location>
41 <datarouter.prov.image.name>onap/dmaap/datarouter-subscriber</datarouter.prov.image.name>
45 <groupId>org.eclipse.jetty</groupId>
46 <artifactId>jetty-server</artifactId>
47 <version>${jetty.version}</version>
50 <groupId>org.eclipse.jetty</groupId>
51 <artifactId>jetty-continuation</artifactId>
52 <version>${jetty.version}</version>
55 <groupId>org.eclipse.jetty</groupId>
56 <artifactId>jetty-util</artifactId>
57 <version>${jetty.version}</version>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-deploy</artifactId>
62 <version>${jetty.version}</version>
65 <groupId>org.eclipse.jetty</groupId>
66 <artifactId>jetty-servlet</artifactId>
67 <version>${jetty.version}</version>
70 <groupId>org.eclipse.jetty</groupId>
71 <artifactId>jetty-servlets</artifactId>
72 <version>${jetty.version}</version>
75 <groupId>org.eclipse.jetty</groupId>
76 <artifactId>jetty-http</artifactId>
77 <version>${jetty.version}</version>
80 <groupId>org.eclipse.jetty</groupId>
81 <artifactId>jetty-security</artifactId>
82 <version>${jetty.version}</version>
85 <groupId>org.eclipse.jetty</groupId>
86 <artifactId>jetty-websocket</artifactId>
87 <version>${jetty.websocket.version}</version>
90 <groupId>org.eclipse.jetty</groupId>
91 <artifactId>jetty-io</artifactId>
92 <version>${jetty.version}</version>
95 <groupId>org.apache.httpcomponents</groupId>
96 <artifactId>httpclient</artifactId>
97 <version>4.5.3</version>
100 <groupId>org.sonatype.http-testing-harness</groupId>
101 <artifactId>junit-runner</artifactId>
102 <version>0.11</version>
105 <groupId>org.databene</groupId>
106 <artifactId>contiperf</artifactId>
111 <groupId>junit</groupId>
112 <artifactId>junit</artifactId>
113 <version>4.10</version>
117 <groupId>log4j</groupId>
118 <artifactId>log4j</artifactId>
119 <version>1.2.17</version>
120 <scope>compile</scope>
123 <groupId>org.apache.commons</groupId>
124 <artifactId>commons-io</artifactId>
125 <version>1.3.2</version>
132 <skipDockerBuild>false</skipDockerBuild>
133 <skipDockerTag>false</skipDockerTag>
134 <skipTests>true</skipTests>
139 <groupId>com.spotify</groupId>
140 <artifactId>docker-maven-plugin</artifactId>
141 <version>1.0.0</version>
143 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
144 <dockerDirectory>${docker.location}</dockerDirectory>
145 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
146 <skipDockerBuild>false</skipDockerBuild>
148 <imageTag>${project.version}</imageTag>
149 <imageTag>latest</imageTag>
151 <forceTags>true</forceTags>
154 <targetPath>/</targetPath>
155 <directory>${project.basedir}</directory>
157 <exclude>target/**/*</exclude>
158 <exclude>pom.xml</exclude>
163 <targetPath>/</targetPath>
164 <directory>${project.build.directory}</directory>
165 <include>**/**</include>
175 <finalName>datarouter-subscriber</finalName>
178 <directory>src/main/resources</directory>
179 <filtering>true</filtering>
181 <include>**/*.properties</include>
185 <directory>src/main/resources</directory>
186 <filtering>true</filtering>
188 <include>**/subscriber.properties</include>
192 <directory>src/main/resources</directory>
193 <filtering>true</filtering>
195 <include>**/log4j.properties</include>
199 <directory>src/test/resources</directory>
200 <filtering>true</filtering>
202 <include>**/log4j.properties</include>
208 <artifactId>maven-assembly-plugin</artifactId>
209 <version>2.4</version>
212 <descriptorRef>jar-with-dependencies</descriptorRef>
214 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
217 <addClasspath>true</addClasspath>
218 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
224 <id>make-assembly</id>
225 <!-- this is used for inheritance merges -->
226 <phase>package</phase>
227 <!-- bind to the packaging phase -->
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-compiler-plugin</artifactId>
241 <version>3.6.0</version>
244 <artifactId>maven-resources-plugin</artifactId>
245 <version>2.7</version>
248 <id>copy-docker-file</id>
249 <phase>package</phase>
251 <goal>copy-resources</goal>
254 <outputDirectory>${docker.location}</outputDirectory>
255 <overwrite>true</overwrite>
258 <directory>${basedir}/src/main/resources/docker</directory>
259 <filtering>true</filtering>
261 <include>**/*</include>
268 <id>copy-resources-1</id>
269 <phase>validate</phase>
271 <goal>copy-resources</goal>
274 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
277 <directory>${project.basedir}/src/main/resources</directory>
279 <include>**/*.jar</include>
286 <id>copy-resources-2</id>
287 <phase>validate</phase>
289 <goal>copy-resources</goal>
292 <outputDirectory>${basedir}/target/opt/app/subscriber/etc</outputDirectory>
295 <directory>${basedir}/src/main/resources</directory>
297 <include>*.properties</include>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-dependency-plugin</artifactId>
308 <version>2.10</version>
311 <id>copy-dependencies</id>
312 <phase>package</phase>
314 <goal>copy-dependencies</goal>
317 <outputDirectory>${project.build.directory}/opt/app/subscriber/lib</outputDirectory>
318 <overWriteReleases>false</overWriteReleases>
319 <overWriteSnapshots>false</overWriteSnapshots>
320 <overWriteIfNewer>true</overWriteIfNewer>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-source-plugin</artifactId>
328 <version>2.2.1</version>
331 <id>attach-sources</id>
333 <goal>jar-no-fork</goal>
339 <groupId>org.jacoco</groupId>
340 <artifactId>jacoco-maven-plugin</artifactId>
341 <version>${jacoco.version}</version>
344 <exclude>**/gen/**</exclude>
345 <exclude>**/generated-sources/**</exclude>
346 <exclude>**/yang-gen/**</exclude>
347 <exclude>**/pax/**</exclude>
352 <id>pre-unit-test</id>
354 <goal>prepare-agent</goal>
357 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
358 <propertyName>surefireArgLine</propertyName>
362 <id>post-unit-test</id>
368 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
369 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
373 <id>pre-integration-test</id>
374 <phase>pre-integration-test</phase>
376 <goal>prepare-agent</goal>
379 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
380 <propertyName>failsafeArgLine</propertyName>
384 <id>post-integration-test</id>
385 <phase>post-integration-test</phase>
390 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
391 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>