Fix the Sonar Findings
[holmes/engine-management.git] / engine-d / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3   ~ Copyright 2017 ZTE Corporation.
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at
8   ~
9   ~     http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0"
18     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.onap.holmes.engine-management</groupId>
24         <artifactId>holmes-engine-parent</artifactId>
25         <version>1.1.0-SNAPSHOT</version>
26     </parent>
27
28     <artifactId>holmes-engine-d</artifactId>
29     <name>holmes-engine-d-service</name>
30     <packaging>jar</packaging>
31
32     <properties>
33         <drools.version>6.5.0.Final</drools.version>
34     </properties>
35
36     <dependencies>
37         <dependency>
38             <groupId>ch.qos.logback</groupId>
39             <artifactId>logback-classic</artifactId>
40             <version>1.1.2</version>
41         </dependency>
42         <dependency>
43             <groupId>org.hibernate</groupId>
44             <artifactId>hibernate-validator</artifactId>
45             <version>5.3.0.Final</version>
46         </dependency>
47         <dependency>
48             <groupId>com.fasterxml.jackson.core</groupId>
49             <artifactId>jackson-databind</artifactId>
50             <version>2.7.0</version>
51         </dependency>
52         <dependency>
53             <groupId>net.sf.json-lib</groupId>
54             <artifactId>json-lib</artifactId>
55             <version>2.4</version>
56             <classifier>jdk15</classifier>
57             <exclusions>
58                 <exclusion>
59                     <groupId>commons-collections</groupId>
60                     <artifactId>commons-collections</artifactId>
61                 </exclusion>
62                 <exclusion>
63                     <groupId>commons-beanutils</groupId>
64                     <artifactId>commons-beanutils</artifactId>
65                 </exclusion>
66             </exclusions>
67         </dependency>
68         <dependency>
69             <groupId>commons-collections</groupId>
70             <artifactId>commons-collections</artifactId>
71             <version>3.2.2</version>
72         </dependency>
73         <dependency>
74             <groupId>org.onap.msb.java-sdk</groupId>
75             <artifactId>msb-java-sdk</artifactId>
76             <exclusions>
77                 <exclusion>
78                     <groupId>com.eclipsesource.jaxrs</groupId>
79                     <artifactId>jersey-all</artifactId>
80                 </exclusion>
81                 <exclusion>
82                     <groupId>com.fasterxml.jackson.core</groupId>
83                     <artifactId>jackson-core</artifactId>
84                 </exclusion>
85                 <exclusion>
86                     <groupId>ch.qos.logback</groupId>
87                     <artifactId>logback-classic</artifactId>
88                 </exclusion>
89                 <exclusion>
90                     <groupId>com.fasterxml.jackson.core</groupId>
91                     <artifactId>jackson-databind</artifactId>
92                 </exclusion>
93             </exclusions>
94         </dependency>
95         <dependency>
96             <groupId>org.reflections</groupId>
97             <artifactId>reflections</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.onap.holmes.dsa</groupId>
101             <artifactId>dmaap-dsa</artifactId>
102             <exclusions>
103                 <exclusion>
104                     <groupId>org.apache.httpcomponents</groupId>
105                     <artifactId>httpclient</artifactId>
106                 </exclusion>
107                 <exclusion>
108                     <groupId>org.onap.holmes.common</groupId>
109                     <artifactId>holmes-actions</artifactId>
110                 </exclusion>
111             </exclusions>
112         </dependency>
113         <dependency>
114             <groupId>org.onap.holmes.common</groupId>
115             <artifactId>holmes-actions</artifactId>
116             <exclusions>
117                 <exclusion>
118                     <groupId>io.dropwizard</groupId>
119                     <artifactId>dropwizard-db</artifactId>
120                 </exclusion>
121                 <exclusion>
122                     <groupId>io.dropwizard</groupId>
123                     <artifactId>dropwizard-core</artifactId>
124                 </exclusion>
125                 <exclusion>
126                     <groupId>org.glassfish.jersey.containers</groupId>
127                     <artifactId>jersey-container-servlet-core</artifactId>
128                 </exclusion>
129                 <exclusion>
130                     <groupId>io.swagger</groupId>
131                     <artifactId>swagger-jersey2-jaxrs</artifactId>
132                 </exclusion>
133             </exclusions>
134         </dependency>
135         <dependency>
136             <groupId>org.glassfish.jersey.containers</groupId>
137             <artifactId>jersey-container-servlet-core</artifactId>
138             <version>2.22.2</version>
139         </dependency>
140         <dependency>
141             <groupId>org.easymock</groupId>
142             <artifactId>easymock</artifactId>
143         </dependency>
144         <dependency>
145             <groupId>org.drools</groupId>
146             <artifactId>drools-core</artifactId>
147             <version>${drools.version}</version>
148         </dependency>
149         <dependency>
150             <groupId>org.drools</groupId>
151             <artifactId>drools-compiler</artifactId>
152             <version>${drools.version}</version>
153             <exclusions>
154                 <exclusion>
155                     <groupId>org.eclipse.jdt.core.compiler</groupId>
156                     <artifactId>ecj</artifactId>
157                 </exclusion>
158             </exclusions>
159         </dependency>
160         <dependency>
161             <groupId>org.eclipse.jdt.core.compiler</groupId>
162             <artifactId>ecj</artifactId>
163             <version>4.5.1</version>
164         </dependency>
165         <dependency>
166             <groupId>org.drools</groupId>
167             <artifactId>drools-templates</artifactId>
168             <version>${drools.version}</version>
169         </dependency>
170         <dependency>
171             <groupId>io.dropwizard</groupId>
172             <artifactId>dropwizard-db</artifactId>
173         </dependency>
174         <dependency>
175             <groupId>org.antlr</groupId>
176             <artifactId>stringtemplate</artifactId>
177         </dependency>
178         <dependency>
179             <groupId>io.dropwizard</groupId>
180             <artifactId>dropwizard-core</artifactId>
181             <exclusions>
182                 <exclusion>
183                     <groupId>ch.qos.logback</groupId>
184                     <artifactId>logback</artifactId>
185                 </exclusion>
186                 <exclusion>
187                     <groupId>ch.qos.logback</groupId>
188                     <artifactId>logback-classic</artifactId>
189                 </exclusion>
190                 <exclusion>
191                     <artifactId>log4j-over-slf4j</artifactId>
192                     <groupId>org.slf4j</groupId>
193                 </exclusion>
194                 <exclusion>
195                     <groupId>com.fasterxml.jackson.core</groupId>
196                     <artifactId>jackson-core</artifactId>
197                 </exclusion>
198                 <exclusion>
199                     <groupId>org.hibernate</groupId>
200                     <artifactId>hibernate-validator</artifactId>
201                 </exclusion>
202                 <exclusion>
203                     <groupId>com.fasterxml.jackson.core</groupId>
204                     <artifactId>jackson-databind</artifactId>
205                 </exclusion>
206             </exclusions>
207         </dependency>
208         <dependency>
209             <groupId>org.projectlombok</groupId>
210             <artifactId>lombok</artifactId>
211         </dependency>
212         <dependency>
213             <groupId>org.postgresql</groupId>
214             <artifactId>postgresql</artifactId>
215         </dependency>
216         <dependency>
217             <groupId>org.quartz-scheduler</groupId>
218             <artifactId>quartz</artifactId>
219         </dependency>
220         <dependency>
221             <groupId>junit</groupId>
222             <artifactId>junit</artifactId>
223         </dependency>
224         <dependency>
225             <groupId>org.hamcrest</groupId>
226             <artifactId>hamcrest-core</artifactId>
227         </dependency>
228         <dependency>
229             <groupId>org.powermock</groupId>
230             <artifactId>powermock-module-junit4</artifactId>
231         </dependency>
232         <dependency>
233             <groupId>org.powermock</groupId>
234             <artifactId>powermock-api-mockito</artifactId>
235         </dependency>
236         <dependency>
237             <groupId>org.slf4j</groupId>
238             <artifactId>slf4j-api</artifactId>
239         </dependency>
240         <dependency>
241             <groupId>io.swagger</groupId>
242             <artifactId>swagger-jersey2-jaxrs</artifactId>
243             <scope>provided</scope>
244             <exclusions>
245                 <exclusion>
246                     <groupId>com.fasterxml.jackson.core</groupId>
247                     <artifactId>jackson-core</artifactId>
248                 </exclusion>
249                 <exclusion>
250                     <groupId>com.fasterxml.jackson.core</groupId>
251                     <artifactId>jackson-databind</artifactId>
252                 </exclusion>
253             </exclusions>
254         </dependency>
255         <dependency>
256             <groupId>org.powermock</groupId>
257             <artifactId>powermock-api-easymock</artifactId>
258             <version>1.6.5</version>
259             <scope>test</scope>
260         </dependency>
261         <dependency>
262             <groupId>org.powermock</groupId>
263             <artifactId>powermock-module-junit4-rule</artifactId>
264             <version>1.6.5</version>
265             <scope>test</scope>
266         </dependency>
267         <dependency>
268             <groupId>org.powermock</groupId>
269             <artifactId>powermock-classloading-xstream</artifactId>
270             <version>1.6.5</version>
271             <scope>test</scope>
272             <exclusions>
273                 <exclusion>
274                     <groupId>com.thoughtworks.xstream</groupId>
275                     <artifactId>xstream</artifactId>
276                 </exclusion>
277             </exclusions>
278         </dependency>
279         <dependency>
280             <groupId>com.thoughtworks.xstream</groupId>
281             <artifactId>xstream</artifactId>
282             <version>1.4.10</version>
283         </dependency>
284         <dependency>
285             <groupId>org.apache.httpcomponents</groupId>
286             <artifactId>httpclient</artifactId>
287         </dependency>
288         <dependency>
289             <groupId>com.google.guava</groupId>
290             <artifactId>guava</artifactId>
291         </dependency>
292     </dependencies>
293
294     <build>
295         <plugins>
296             <plugin>
297                 <groupId>org.apache.maven.plugins</groupId>
298                 <artifactId>maven-jar-plugin</artifactId>
299                 <configuration>
300                     <archive>
301                         <manifest>
302                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
303                         </manifest>
304                     </archive>
305                 </configuration>
306             </plugin>
307             <plugin>
308                 <groupId>org.apache.maven.plugins</groupId>
309                 <artifactId>maven-shade-plugin</artifactId>
310                 <configuration>
311                     <createDependencyReducedPom>true</createDependencyReducedPom>
312                     <filters>
313                         <filter>
314                             <artifact>*:*</artifact>
315                             <excludes>
316                                 <exclude>META-INF/*.SF</exclude>
317                                 <exclude>META-INF/*.DSA</exclude>
318                                 <exclude>META-INF/*.RSA</exclude>
319                             </excludes>
320                         </filter>
321                         <filter>
322                             <artifact>org.onap.holmes.dsa:dmaap-dsa</artifact>
323                             <excludes>
324                                 <exclude>org/onap/holmes/common/**</exclude>
325                             </excludes>
326                         </filter>
327                     </filters>
328                 </configuration>
329                 <executions>
330                     <execution>
331                         <phase>package</phase>
332                         <goals>
333                             <goal>shade</goal>
334                         </goals>
335                         <configuration>
336                             <transformers>
337                                 <transformer
338                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
339                                 <transformer
340                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
341                                     <mainClass>org.onap.holmes.engine.EngineDActiveApp
342                                     </mainClass>
343                                 </transformer>
344                             </transformers>
345                         </configuration>
346                     </execution>
347                 </executions>
348             </plugin>
349         </plugins>
350         <resources>
351             <resource>
352                 <directory>src/main/java</directory>
353                 <includes>
354                     <include>**/*.properties</include>
355                 </includes>
356             </resource>
357             <resource>
358                 <directory>src/main/resources</directory>
359             </resource>
360         </resources>
361     </build>
362
363     <profiles>
364         <profile>
365             <id>swagger</id>
366             <dependencies>
367                 <dependency>
368                     <groupId>io.swagger</groupId>
369                     <artifactId>swagger-jersey2-jaxrs</artifactId>
370                     <version>1.5.0</version>
371                 </dependency>
372             </dependencies>
373
374             <build>
375                 <plugins>
376                     <plugin>
377                         <groupId>com.github.kongchen</groupId>
378                         <artifactId>swagger-maven-plugin</artifactId>
379                         <version>3.1.1</version>
380                         <configuration>
381                             <apiSources>
382                                 <apiSource>
383                                     <springmvc>false</springmvc>
384                                     <locations>org.onap.holmes.engine.resources</locations>
385                                     <basePath>/api/holmes-engine-mgmt/v1/</basePath>
386                                     <info>
387                                         <title>API Descriptions for Holmes Engine Management</title>
388                                         <version>v1</version>
389                                         <description>
390                                             This page shows all the APIs available in the Holmes engine management module.
391                                         </description>
392                                         <termsOfService>
393                                             http://www.github.com/kongchen/swagger-maven-plugin
394                                         </termsOfService>
395                                         <contact>
396                                             <email>fu.guangrong@zte.com.cn</email>
397                                             <name>Guangrong Fu</name>
398                                         </contact>
399                                         <license>
400                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
401                                             <name>Apache 2.0</name>
402                                         </license>
403                                     </info>
404                                     <securityDefinitions>
405                                     </securityDefinitions>
406                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
407                                 </apiSource>
408                             </apiSources>
409                         </configuration>
410                         <executions>
411                             <execution>
412                                 <phase>compile</phase>
413                                 <goals>
414                                     <goal>generate</goal>
415                                 </goals>
416                             </execution>
417                         </executions>
418                         <dependencies>
419                             <dependency>
420                                 <groupId>io.swagger</groupId>
421                                 <artifactId>swagger-hibernate-validations</artifactId>
422                                 <version>1.5.6</version>
423                             </dependency>
424                         </dependencies>
425                     </plugin>
426                 </plugins>
427             </build>
428         </profile>
429     </profiles>
430 </project>