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
38         <dependency>
39             <groupId>com.fasterxml.jackson.core</groupId>
40             <artifactId>jackson-databind</artifactId>
41             <version>2.7.0</version>
42         </dependency>
43         <dependency>
44             <groupId>net.sf.json-lib</groupId>
45             <artifactId>json-lib</artifactId>
46             <version>2.4</version>
47             <classifier>jdk15</classifier>
48             <exclusions>
49                 <exclusion>
50                     <groupId>commons-collections</groupId>
51                     <artifactId>commons-collections</artifactId>
52                 </exclusion>
53                 <exclusion>
54                     <groupId>commons-beanutils</groupId>
55                     <artifactId>commons-beanutils</artifactId>
56                 </exclusion>
57             </exclusions>
58         </dependency>
59         <dependency>
60             <groupId>commons-collections</groupId>
61             <artifactId>commons-collections</artifactId>
62             <version>3.2.2</version>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.msb.java-sdk</groupId>
66             <artifactId>msb-java-sdk</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.reflections</groupId>
70             <artifactId>reflections</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.holmes.dsa</groupId>
74             <artifactId>dmaap-dsa</artifactId>
75             <exclusions>
76                 <exclusion>
77                     <groupId>org.apache.httpcomponents</groupId>
78                     <artifactId>httpclient</artifactId>
79                 </exclusion>
80                 <exclusion>
81                     <groupId>org.onap.holmes.common</groupId>
82                     <artifactId>holmes-actions</artifactId>
83                 </exclusion>
84             </exclusions>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.holmes.common</groupId>
88             <artifactId>holmes-actions</artifactId>
89             <exclusions>
90                 <exclusion>
91                     <groupId>org.glassfish.jersey.containers</groupId>
92                     <artifactId>jersey-container-servlet-core</artifactId>
93                 </exclusion>
94             </exclusions>
95         </dependency>
96         <dependency>
97             <groupId>org.glassfish.jersey.containers</groupId>
98             <artifactId>jersey-container-servlet-core</artifactId>
99             <version>2.22.2</version>
100         </dependency>
101         <dependency>
102             <groupId>org.easymock</groupId>
103             <artifactId>easymock</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>org.drools</groupId>
107             <artifactId>drools-core</artifactId>
108             <version>${drools.version}</version>
109         </dependency>
110         <dependency>
111             <groupId>org.drools</groupId>
112             <artifactId>drools-compiler</artifactId>
113             <version>${drools.version}</version>
114             <exclusions>
115                 <exclusion>
116                     <groupId>org.eclipse.jdt.core.compiler</groupId>
117                     <artifactId>ecj</artifactId>
118                 </exclusion>
119             </exclusions>
120         </dependency>
121         <dependency>
122             <groupId>org.eclipse.jdt.core.compiler</groupId>
123             <artifactId>ecj</artifactId>
124             <version>4.5.1</version>
125         </dependency>
126         <dependency>
127             <groupId>org.drools</groupId>
128             <artifactId>drools-templates</artifactId>
129             <version>${drools.version}</version>
130         </dependency>
131         <dependency>
132             <groupId>io.dropwizard</groupId>
133             <artifactId>dropwizard-db</artifactId>
134         </dependency>
135         <dependency>
136             <groupId>org.antlr</groupId>
137             <artifactId>stringtemplate</artifactId>
138         </dependency>
139         <dependency>
140             <groupId>io.dropwizard</groupId>
141             <artifactId>dropwizard-core</artifactId>
142             <exclusions>
143                 <exclusion>
144                     <groupId>ch.qos.logback</groupId>
145                     <artifactId>logback</artifactId>
146                 </exclusion>
147                 <exclusion>
148                     <groupId>ch.qos.logback</groupId>
149                     <artifactId>logback-classic</artifactId>
150                 </exclusion>
151                 <exclusion>
152                     <artifactId>log4j-over-slf4j</artifactId>
153                     <groupId>org.slf4j</groupId>
154                 </exclusion>
155             </exclusions>
156         </dependency>
157         <dependency>
158             <groupId>ch.qos.logback</groupId>
159             <artifactId>logback-classic</artifactId>
160             <version>1.2.3</version>
161         </dependency>
162         <dependency>
163             <groupId>org.projectlombok</groupId>
164             <artifactId>lombok</artifactId>
165         </dependency>
166         <dependency>
167             <groupId>org.postgresql</groupId>
168             <artifactId>postgresql</artifactId>
169         </dependency>
170         <dependency>
171             <groupId>org.quartz-scheduler</groupId>
172             <artifactId>quartz</artifactId>
173         </dependency>
174         <dependency>
175             <groupId>junit</groupId>
176             <artifactId>junit</artifactId>
177         </dependency>
178         <dependency>
179             <groupId>org.hamcrest</groupId>
180             <artifactId>hamcrest-core</artifactId>
181         </dependency>
182         <dependency>
183             <groupId>org.powermock</groupId>
184             <artifactId>powermock-module-junit4</artifactId>
185         </dependency>
186         <dependency>
187             <groupId>org.powermock</groupId>
188             <artifactId>powermock-api-mockito</artifactId>
189         </dependency>
190         <dependency>
191             <groupId>org.slf4j</groupId>
192             <artifactId>slf4j-api</artifactId>
193         </dependency>
194         <dependency>
195             <groupId>io.swagger</groupId>
196             <artifactId>swagger-jersey2-jaxrs</artifactId>
197             <scope>provided</scope>
198         </dependency>
199
200         <dependency>
201             <groupId>org.powermock</groupId>
202             <artifactId>powermock-api-easymock</artifactId>
203             <version>1.6.5</version>
204             <scope>test</scope>
205         </dependency>
206         <dependency>
207             <groupId>org.powermock</groupId>
208             <artifactId>powermock-module-junit4-rule</artifactId>
209             <version>1.6.5</version>
210             <scope>test</scope>
211         </dependency>
212         <dependency>
213             <groupId>org.powermock</groupId>
214             <artifactId>powermock-classloading-xstream</artifactId>
215             <version>1.6.5</version>
216             <scope>test</scope>
217             <exclusions>
218                 <exclusion>
219                     <groupId>com.thoughtworks.xstream</groupId>
220                     <artifactId>xstream</artifactId>
221                 </exclusion>
222             </exclusions>
223         </dependency>
224         <dependency>
225             <groupId>com.thoughtworks.xstream</groupId>
226             <artifactId>xstream</artifactId>
227             <version>1.4.10</version>
228         </dependency>
229         <dependency>
230             <groupId>org.apache.httpcomponents</groupId>
231             <artifactId>httpclient</artifactId>
232         </dependency>
233         <dependency>
234             <groupId>com.google.guava</groupId>
235             <artifactId>guava</artifactId>
236         </dependency>
237     </dependencies>
238
239     <build>
240         <plugins>
241             <plugin>
242                 <groupId>org.apache.maven.plugins</groupId>
243                 <artifactId>maven-jar-plugin</artifactId>
244                 <configuration>
245                     <archive>
246                         <manifest>
247                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
248                         </manifest>
249                     </archive>
250                 </configuration>
251             </plugin>
252             <plugin>
253                 <groupId>org.apache.maven.plugins</groupId>
254                 <artifactId>maven-shade-plugin</artifactId>
255                 <configuration>
256                     <createDependencyReducedPom>true</createDependencyReducedPom>
257                     <filters>
258                         <filter>
259                             <artifact>*:*</artifact>
260                             <excludes>
261                                 <exclude>META-INF/*.SF</exclude>
262                                 <exclude>META-INF/*.DSA</exclude>
263                                 <exclude>META-INF/*.RSA</exclude>
264                             </excludes>
265                         </filter>
266                         <filter>
267                             <artifact>org.onap.holmes.dsa:dmaap-dsa</artifact>
268                             <excludes>
269                                 <exclude>org/onap/holmes/common/**</exclude>
270                             </excludes>
271                         </filter>
272                     </filters>
273                 </configuration>
274                 <executions>
275                     <execution>
276                         <phase>package</phase>
277                         <goals>
278                             <goal>shade</goal>
279                         </goals>
280                         <configuration>
281                             <transformers>
282                                 <transformer
283                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
284                                 <transformer
285                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
286                                     <mainClass>org.onap.holmes.engine.EngineDActiveApp
287                                     </mainClass>
288                                 </transformer>
289                             </transformers>
290                         </configuration>
291                     </execution>
292                 </executions>
293             </plugin>
294         </plugins>
295         <resources>
296             <resource>
297                 <directory>src/main/java</directory>
298                 <includes>
299                     <include>**/*.properties</include>
300                 </includes>
301             </resource>
302             <resource>
303                 <directory>src/main/resources</directory>
304             </resource>
305         </resources>
306     </build>
307
308     <profiles>
309         <profile>
310             <id>swagger</id>
311             <dependencies>
312                 <dependency>
313                     <groupId>io.swagger</groupId>
314                     <artifactId>swagger-jersey2-jaxrs</artifactId>
315                     <version>1.5.0</version>
316                 </dependency>
317             </dependencies>
318
319             <build>
320                 <plugins>
321                     <plugin>
322                         <groupId>com.github.kongchen</groupId>
323                         <artifactId>swagger-maven-plugin</artifactId>
324                         <version>3.1.1</version>
325                         <configuration>
326                             <apiSources>
327                                 <apiSource>
328                                     <springmvc>false</springmvc>
329                                     <locations>org.onap.holmes.engine.resources</locations>
330                                     <basePath>/api/holmes-engine-mgmt/v1/</basePath>
331                                     <info>
332                                         <title>API Descriptions for Holmes Engine Management</title>
333                                         <version>v1</version>
334                                         <description>
335                                             This page shows all the APIs available in the Holmes engine management module.
336                                         </description>
337                                         <termsOfService>
338                                             http://www.github.com/kongchen/swagger-maven-plugin
339                                         </termsOfService>
340                                         <contact>
341                                             <email>fu.guangrong@zte.com.cn</email>
342                                             <name>Guangrong Fu</name>
343                                         </contact>
344                                         <license>
345                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
346                                             <name>Apache 2.0</name>
347                                         </license>
348                                     </info>
349                                     <securityDefinitions>
350                                     </securityDefinitions>
351                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
352                                 </apiSource>
353                             </apiSources>
354                         </configuration>
355                         <executions>
356                             <execution>
357                                 <phase>compile</phase>
358                                 <goals>
359                                     <goal>generate</goal>
360                                 </goals>
361                             </execution>
362                         </executions>
363                         <dependencies>
364                             <dependency>
365                                 <groupId>io.swagger</groupId>
366                                 <artifactId>swagger-hibernate-validations</artifactId>
367                                 <version>1.5.6</version>
368                             </dependency>
369                         </dependencies>
370                     </plugin>
371                 </plugins>
372             </build>
373         </profile>
374     </profiles>
375 </project>