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