[DMAAP-DR] Remove AAF/TLS phase 1
[dmaap/datarouter.git] / datarouter-subscriber / pom.xml
1 <!--
2   ============LICENSE_START==================================================
3   * org.onap.dmaap
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
11   *
12    *      http://www.apache.org/licenses/LICENSE-2.0
13   *
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====================================================
20   *
21   * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22   *
23 -->
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>
26     <parent>
27         <groupId>org.onap.dmaap.datarouter</groupId>
28         <artifactId>parent</artifactId>
29         <version>${revision}</version>
30         <relativePath>../pom.xml</relativePath>
31     </parent>
32     <artifactId>datarouter-subscriber</artifactId>
33     <packaging>jar</packaging>
34     <properties>
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>
41     </properties>
42     <dependencies>
43         <dependency>
44             <groupId>commons-codec</groupId>
45             <artifactId>commons-codec</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>ch.qos.logback</groupId>
49             <artifactId>logback-classic</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>ch.qos.logback</groupId>
53             <artifactId>logback-core</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>javax.servlet</groupId>
57             <artifactId>javax.servlet-api</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>org.eclipse.jetty</groupId>
61             <artifactId>jetty-server</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.eclipse.jetty</groupId>
65             <artifactId>jetty-util</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>org.eclipse.jetty</groupId>
69             <artifactId>jetty-servlet</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.eclipse.jetty</groupId>
73             <artifactId>jetty-http</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.sonatype.http-testing-harness</groupId>
77             <artifactId>junit-runner</artifactId>
78             <exclusions>
79                 <exclusion>
80                     <artifactId>powermock-reflect</artifactId>
81                     <groupId>org.powermock</groupId>
82                 </exclusion>
83                 <exclusion>
84                     <artifactId>powermock-api-mockito</artifactId>
85                     <groupId>org.powermock</groupId>
86                 </exclusion>
87                 <exclusion>
88                     <artifactId>jetty-security</artifactId>
89                     <groupId>org.eclipse.jetty</groupId>
90                 </exclusion>
91                 <exclusion>
92                     <artifactId>jsr305</artifactId>
93                     <groupId>com.google.code.findbugs</groupId>
94                 </exclusion>
95             </exclusions>
96         </dependency>
97         <dependency>
98             <groupId>junit</groupId>
99             <artifactId>junit</artifactId>
100             <scope>test</scope>
101         </dependency>
102         <dependency>
103             <groupId>org.mockito</groupId>
104             <artifactId>mockito-core</artifactId>
105             <scope>test</scope>
106         </dependency>
107         <dependency>
108             <groupId>org.powermock</groupId>
109             <artifactId>powermock-module-junit4</artifactId>
110             <scope>test</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.powermock</groupId>
114             <artifactId>powermock-api-mockito2</artifactId>
115             <scope>test</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.powermock</groupId>
119             <artifactId>powermock-api-support</artifactId>
120             <scope>test</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.powermock</groupId>
124             <artifactId>powermock-core</artifactId>
125             <scope>test</scope>
126         </dependency>
127         <dependency>
128             <groupId>org.powermock</groupId>
129             <artifactId>powermock-module-junit4-rule</artifactId>
130         </dependency>
131         <dependency>
132             <groupId>net.bytebuddy</groupId>
133             <artifactId>byte-buddy</artifactId>
134         </dependency>
135         <dependency>
136             <groupId>net.bytebuddy</groupId>
137             <artifactId>byte-buddy-agent</artifactId>
138         </dependency>
139         <dependency>
140             <groupId>org.objenesis</groupId>
141             <artifactId>objenesis</artifactId>
142         </dependency>
143         <dependency>
144             <groupId>org.javassist</groupId>
145             <artifactId>javassist</artifactId>
146         </dependency>
147         <dependency>
148             <groupId>commons-io</groupId>
149             <artifactId>commons-io</artifactId>
150         </dependency>
151     </dependencies>
152     <profiles>
153         <profile>
154             <id>docker</id>
155             <properties>
156                 <skipTests>true</skipTests>
157             </properties>
158             <build>
159                 <plugins>
160                     <plugin>
161                         <groupId>org.codehaus.gmaven</groupId>
162                         <artifactId>gmaven-plugin</artifactId>
163                     </plugin>
164                     <plugin>
165                         <groupId>io.fabric8</groupId>
166                         <artifactId>docker-maven-plugin</artifactId>
167                         <configuration>
168                             <images>
169                                 <image>
170                                     <name>${datarouter.sub.image.name}</name>
171                                     <build>
172                                         <cleanup>try</cleanup>
173                                         <noCache>true</noCache>
174                                         <optimise>true</optimise>
175                                         <contextDir>${basedir}/target/docker-stage</contextDir>
176                                         <dockerFile>Dockerfile</dockerFile>
177                                         <tags>
178                                             <tag>${dockertag1}</tag>
179                                             <tag>${dockertag2}</tag>
180                                         </tags>
181                                     </build>
182                                 </image>
183                             </images>
184                         </configuration>
185                         <executions>
186                             <execution>
187                                 <id>generate-images</id>
188                                 <phase>install</phase>
189                                 <goals>
190                                     <goal>build</goal>
191                                 </goals>
192                             </execution>
193                             <execution>
194                                 <id>push-images</id>
195                                 <phase>deploy</phase>
196                                 <goals>
197                                     <goal>push</goal>
198                                 </goals>
199                             </execution>
200                         </executions>
201                     </plugin>
202                 </plugins>
203             </build>
204         </profile>
205     </profiles>
206     <build>
207         <finalName>datarouter-subscriber</finalName>
208         <resources>
209             <resource>
210                 <directory>src/main/resources</directory>
211                 <filtering>true</filtering>
212                 <includes>
213                     <include>**/*.properties</include>
214                     <include>**/logback.xml</include>
215                 </includes>
216             </resource>
217         </resources>
218         <plugins>
219             <plugin>
220                 <artifactId>maven-assembly-plugin</artifactId>
221                 <version>2.4</version>
222                 <configuration>
223                     <descriptorRefs>
224                         <descriptorRef>jar-with-dependencies</descriptorRef>
225                     </descriptorRefs>
226                     <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/lib</outputDirectory>
227                     <archive>
228                         <manifest>
229                             <addClasspath>true</addClasspath>
230                             <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
231                         </manifest>
232                     </archive>
233                 </configuration>
234                 <executions>
235                     <execution>
236                         <id>make-assembly</id>
237                         <!-- this is used for inheritance merges -->
238                         <phase>package</phase>
239                         <!-- bind to the packaging phase -->
240                         <goals>
241                             <goal>single</goal>
242                         </goals>
243                     </execution>
244                 </executions>
245             </plugin>
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-compiler-plugin</artifactId>
249             </plugin>
250             <plugin>
251                 <artifactId>maven-resources-plugin</artifactId>
252                 <version>2.7</version>
253                 <executions>
254                     <execution>
255                         <id>copy-docker-file</id>
256                         <phase>validate</phase>
257                         <goals>
258                             <goal>copy-resources</goal>
259                         </goals>
260                         <configuration>
261                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
262                             <overwrite>true</overwrite>
263                             <resources>
264                                 <resource>
265                                     <directory>${basedir}/src/main/resources/docker</directory>
266                                     <filtering>true</filtering>
267                                     <includes>
268                                         <include>Dockerfile</include>
269                                     </includes>
270                                 </resource>
271                             </resources>
272                         </configuration>
273                     </execution>
274                     <execution>
275                         <id>copy-startup-script</id>
276                         <phase>validate</phase>
277                         <goals>
278                             <goal>copy-resources</goal>
279                         </goals>
280                         <configuration>
281                             <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
282                             <overwrite>true</overwrite>
283                             <resources>
284                                 <resource>
285                                     <directory>${basedir}/src/main/resources/docker</directory>
286                                     <filtering>true</filtering>
287                                     <includes>
288                                         <include>startup.sh</include>
289                                     </includes>
290                                 </resource>
291                             </resources>
292                         </configuration>
293                     </execution>
294                     <execution>
295                         <id>copy-resources-2</id>
296                         <phase>validate</phase>
297                         <goals>
298                             <goal>copy-resources</goal>
299                         </goals>
300                         <configuration>
301                             <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/etc</outputDirectory>
302                             <resources>
303                                 <resource>
304                                     <directory>${basedir}/src/main/resources</directory>
305                                     <includes>
306                                         <include>*.properties</include>
307                                     </includes>
308                                 </resource>
309                             </resources>
310                         </configuration>
311                     </execution>
312                 </executions>
313             </plugin>
314             <plugin>
315                 <groupId>org.apache.maven.plugins</groupId>
316                 <artifactId>maven-source-plugin</artifactId>
317             </plugin>
318             <plugin>
319                 <groupId>org.jacoco</groupId>
320                 <artifactId>jacoco-maven-plugin</artifactId>
321                   <configuration>
322                     <excludes>
323                       <exclude>src/main/java/org/onap/dmaap/datarouter/subscriber/**</exclude>
324                     </excludes>
325                   </configuration>
326             </plugin>
327             <plugin>
328                 <groupId>org.codehaus.mojo</groupId>
329                 <artifactId>properties-maven-plugin</artifactId>
330             </plugin>
331         </plugins>
332     </build>
333 </project>