Remove critical code smells for servlet classes
[dmaap/datarouter.git] / datarouter-node / 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-node</artifactId>
33     <packaging>jar</packaging>
34     <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
35     <properties>
36         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
37         <docker.location>${basedir}/target/${project.artifactId}</docker.location>
38         <datarouter.node.image.name>${docker.image.root}${project.artifactId}</datarouter.node.image.name>
39         <sonar.language>java</sonar.language>
40         <sonar.skip>false</sonar.skip>
41     </properties>
42     <dependencies>
43         <dependency>
44             <groupId>org.hamcrest</groupId>
45             <artifactId>hamcrest-library</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>org.slf4j</groupId>
49             <artifactId>slf4j-api</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>commons-codec</groupId>
53             <artifactId>commons-codec</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>junit</groupId>
57             <artifactId>junit</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>org.json</groupId>
61             <artifactId>json</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>com.att.eelf</groupId>
65             <artifactId>eelf-core</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>ch.qos.logback</groupId>
69             <artifactId>logback-classic</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>ch.qos.logback</groupId>
73             <artifactId>logback-core</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>com.intellij</groupId>
77             <artifactId>annotations</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>javax.servlet</groupId>
81             <artifactId>javax.servlet-api</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.eclipse.jetty</groupId>
85             <artifactId>jetty-server</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.eclipse.jetty</groupId>
89             <artifactId>jetty-util</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.eclipse.jetty</groupId>
93             <artifactId>jetty-servlet</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.eclipse.jetty</groupId>
97             <artifactId>jetty-http</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.onap.aaf.authz</groupId>
101             <artifactId>aaf-cadi-core</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.sonatype.http-testing-harness</groupId>
105             <artifactId>junit-runner</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.mockito</groupId>
109             <artifactId>mockito-core</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>org.powermock</groupId>
113             <artifactId>powermock-module-junit4</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>org.powermock</groupId>
117             <artifactId>powermock-api-mockito</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>org.powermock</groupId>
121             <artifactId>powermock-api-support</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.powermock</groupId>
125             <artifactId>powermock-core</artifactId>
126         </dependency>
127         <dependency>
128             <groupId>org.apache.commons</groupId>
129             <artifactId>commons-lang3</artifactId>
130         </dependency>
131     </dependencies>
132     <profiles>
133         <profile>
134             <id>docker</id>
135             <properties>
136                 <skipTests>true</skipTests>
137             </properties>
138             <build>
139                 <plugins>
140                     <plugin>
141                         <groupId>org.codehaus.gmaven</groupId>
142                         <artifactId>gmaven-plugin</artifactId>
143                     </plugin>
144                     <plugin>
145                         <groupId>io.fabric8</groupId>
146                         <artifactId>docker-maven-plugin</artifactId>
147                         <configuration>
148                             <images>
149                                 <image>
150                                     <name>${datarouter.node.image.name}</name>
151                                     <build>
152                                         <cleanup>try</cleanup>
153                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
154                                         <dockerFile>Dockerfile</dockerFile>
155                                         <tags>
156                                             <tag>${dockertag1}</tag>
157                                             <tag>${dockertag2}</tag>
158                                         </tags>
159                                     </build>
160                                 </image>
161                             </images>
162                         </configuration>
163                         <executions>
164                             <execution>
165                                 <id>generate-images</id>
166                                 <phase>install</phase>
167                                 <goals>
168                                     <goal>build</goal>
169                                 </goals>
170                             </execution>
171                             <execution>
172                                 <id>push-images</id>
173                                 <phase>deploy</phase>
174                                 <goals>
175                                     <goal>push</goal>
176                                 </goals>
177                             </execution>
178                         </executions>
179                     </plugin>
180                 </plugins>
181             </build>
182         </profile>
183     </profiles>
184     <build>
185         <finalName>datarouter-node</finalName>
186         <resources>
187             <resource>
188                 <directory>src/main/resources</directory>
189                 <filtering>true</filtering>
190                 <includes>
191                     <include>**/*.properties</include>
192                 </includes>
193             </resource>
194             <resource>
195                 <directory>src/main/resources</directory>
196                 <filtering>true</filtering>
197                 <includes>
198                     <include>**/EelfMessages.properties</include>
199                 </includes>
200             </resource>
201         </resources>
202         <plugins>
203             <plugin>
204                 <groupId>org.apache.maven.plugins</groupId>
205                 <artifactId>maven-compiler-plugin</artifactId>
206             </plugin>
207             <plugin>
208                 <artifactId>maven-assembly-plugin</artifactId>
209                 <version>2.4</version>
210                 <configuration>
211                     <descriptorRefs>
212                         <descriptorRef>jar-with-dependencies</descriptorRef>
213                     </descriptorRefs>
214                     <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
215                     <archive>
216                         <manifest>
217                             <addClasspath>true</addClasspath>
218                             <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
219                         </manifest>
220                     </archive>
221                 </configuration>
222                 <executions>
223                     <execution>
224                         <id>make-assembly</id>
225                         <!-- this is used for inheritance merges -->
226                         <phase>package</phase>
227                         <!-- bind to the packaging phase -->
228                         <goals>
229                             <goal>single</goal>
230                         </goals>
231                     </execution>
232                 </executions>
233             </plugin>
234             <plugin>
235                 <groupId>org.apache.maven.plugins</groupId>
236                 <artifactId>maven-resources-plugin</artifactId>
237                 <version>2.7</version>
238                 <executions>
239                     <execution>
240                         <id>copy-docker-file</id>
241                         <phase>validate</phase>
242                         <goals>
243                             <goal>copy-resources</goal>
244                         </goals>
245                         <configuration>
246                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
247                             <overwrite>true</overwrite>
248                             <resources>
249                                 <resource>
250                                     <directory>${basedir}/src/main/resources/docker</directory>
251                                     <filtering>true</filtering>
252                                     <includes>
253                                         <include>**/*</include>
254                                     </includes>
255                                 </resource>
256                             </resources>
257                         </configuration>
258                     </execution>
259                     <execution>
260                         <id>copy-startup-script</id>
261                         <phase>validate</phase>
262                         <goals>
263                             <goal>copy-resources</goal>
264                         </goals>
265                         <configuration>
266                             <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
267                             <overwrite>true</overwrite>
268                             <resources>
269                                 <resource>
270                                     <directory>${basedir}/src/main/resources/docker</directory>
271                                     <filtering>true</filtering>
272                                     <includes>
273                                         <include>startup.sh</include>
274                                     </includes>
275                                 </resource>
276                             </resources>
277                         </configuration>
278                     </execution>
279                     <execution>
280                         <id>copy-resources-2</id>
281                         <phase>validate</phase>
282                         <goals>
283                             <goal>copy-resources</goal>
284                         </goals>
285                         <configuration>
286                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
287                             <resources>
288                                 <resource>
289                                     <directory>${basedir}/src/main/resources</directory>
290                                     <includes>
291                                         <include>misc/**</include>
292                                         <include>**/**</include>
293                                     </includes>
294                                 </resource>
295                             </resources>
296                         </configuration>
297                     </execution>
298                     <execution>
299                         <id>copy-resources-3</id>
300                         <phase>validate</phase>
301                         <goals>
302                             <goal>copy-resources</goal>
303                         </goals>
304                         <configuration>
305                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
306                             <resources>
307                                 <resource>
308                                     <directory>${basedir}/data</directory>
309                                     <includes>
310                                         <include>misc/**</include>
311                                         <include>**/**</include>
312                                     </includes>
313                                 </resource>
314                             </resources>
315                         </configuration>
316                     </execution>
317                     <execution>
318                         <id>copy-resources-4</id>
319                         <phase>validate</phase>
320                         <goals>
321                             <goal>copy-resources</goal>
322                         </goals>
323                         <configuration>
324                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
325                             <resources>
326                                 <resource>
327                                     <directory>${basedir}/aaf_certs</directory>
328                                     <includes>
329                                         <include>misc/**</include>
330                                         <include>**/**</include>
331                                     </includes>
332                                 </resource>
333                             </resources>
334                         </configuration>
335                     </execution>
336                 </executions>
337             </plugin>
338             <plugin>
339                 <groupId>org.apache.maven.plugins</groupId>
340                 <artifactId>maven-dependency-plugin</artifactId>
341                 <executions>
342                     <execution>
343                         <id>copy-dependencies</id>
344                         <phase>package</phase>
345                         <configuration>
346                             <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
347                         </configuration>
348                     </execution>
349                 </executions>
350             </plugin>
351             <plugin>
352                 <groupId>org.apache.maven.plugins</groupId>
353                 <artifactId>maven-javadoc-plugin</artifactId>
354             </plugin>
355             <plugin>
356                 <groupId>org.apache.maven.plugins</groupId>
357                 <artifactId>maven-source-plugin</artifactId>
358             </plugin>
359             <plugin>
360                 <groupId>org.codehaus.mojo</groupId>
361                 <artifactId>cobertura-maven-plugin</artifactId>
362             </plugin>
363             <plugin>
364                 <groupId>org.sonatype.plugins</groupId>
365                 <artifactId>nexus-staging-maven-plugin</artifactId>
366             </plugin>
367             <plugin>
368                 <groupId>org.jacoco</groupId>
369                 <artifactId>jacoco-maven-plugin</artifactId>
370             </plugin>
371             <plugin>
372                 <groupId>org.codehaus.mojo</groupId>
373                 <artifactId>properties-maven-plugin</artifactId>
374             </plugin>
375         </plugins>
376     </build>
377 </project>