Removed guava Related Dependencies
[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.2.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                 <exclusion>
212                     <groupId>org.eclipse.jetty</groupId>
213                     <artifactId>jetty-http</artifactId>
214                 </exclusion>
215                 <exclusion>
216                     <groupId>org.eclipse.jetty</groupId>
217                     <artifactId>jetty-util</artifactId>
218                 </exclusion>
219                 <exclusion>
220                     <groupId>org.eclipse.jetty</groupId>
221                     <artifactId>jetty-server</artifactId>
222                 </exclusion>
223             </exclusions>
224         </dependency>
225         <dependency>
226             <groupId>org.eclipse.jetty</groupId>
227             <artifactId>jetty-server</artifactId>
228             <version>9.4.11.v20180605</version>
229         </dependency>
230         <dependency>
231             <groupId>org.eclipse.jetty</groupId>
232             <artifactId>jetty-http</artifactId>
233             <version>9.4.11.v20180605</version>
234         </dependency>
235         <dependency>
236             <groupId>org.eclipse.jetty</groupId>
237             <artifactId>jetty-util</artifactId>
238             <version>9.4.11.v20180605</version>
239         </dependency>
240         <dependency>
241             <groupId>io.dropwizard</groupId>
242             <artifactId>dropwizard-jdbi</artifactId>
243         </dependency>
244         <dependency>
245             <groupId>org.projectlombok</groupId>
246             <artifactId>lombok</artifactId>
247         </dependency>
248         <dependency>
249             <groupId>org.postgresql</groupId>
250             <artifactId>postgresql</artifactId>
251         </dependency>
252         <dependency>
253             <groupId>org.quartz-scheduler</groupId>
254             <artifactId>quartz</artifactId>
255             <exclusions>
256                 <exclusion>
257                     <groupId>org.slf4j</groupId>
258                     <artifactId>slf4j-api</artifactId>
259                 </exclusion>
260             </exclusions>
261         </dependency>
262         <dependency>
263             <groupId>junit</groupId>
264             <artifactId>junit</artifactId>
265         </dependency>
266         <dependency>
267             <groupId>org.hamcrest</groupId>
268             <artifactId>hamcrest-core</artifactId>
269         </dependency>
270         <dependency>
271             <groupId>org.powermock</groupId>
272             <artifactId>powermock-module-junit4</artifactId>
273         </dependency>
274         <dependency>
275             <groupId>org.powermock</groupId>
276             <artifactId>powermock-api-mockito</artifactId>
277         </dependency>
278         <dependency>
279             <groupId>io.swagger</groupId>
280             <artifactId>swagger-jersey2-jaxrs</artifactId>
281             <scope>provided</scope>
282             <exclusions>
283                 <exclusion>
284                     <groupId>com.fasterxml.jackson.core</groupId>
285                     <artifactId>jackson-core</artifactId>
286                 </exclusion>
287                 <exclusion>
288                     <groupId>com.fasterxml.jackson.core</groupId>
289                     <artifactId>jackson-databind</artifactId>
290                 </exclusion>
291             </exclusions>
292         </dependency>
293         <dependency>
294             <groupId>org.powermock</groupId>
295             <artifactId>powermock-api-easymock</artifactId>
296             <version>1.6.5</version>
297             <scope>test</scope>
298         </dependency>
299         <dependency>
300             <groupId>org.powermock</groupId>
301             <artifactId>powermock-module-junit4-rule</artifactId>
302             <version>1.6.5</version>
303             <scope>test</scope>
304         </dependency>
305         <dependency>
306             <groupId>org.powermock</groupId>
307             <artifactId>powermock-classloading-xstream</artifactId>
308             <version>1.6.5</version>
309             <scope>test</scope>
310             <exclusions>
311                 <exclusion>
312                     <groupId>com.thoughtworks.xstream</groupId>
313                     <artifactId>xstream</artifactId>
314                 </exclusion>
315             </exclusions>
316         </dependency>
317         <dependency>
318             <groupId>com.thoughtworks.xstream</groupId>
319             <artifactId>xstream</artifactId>
320             <version>1.4.10</version>
321         </dependency>
322         <dependency>
323             <groupId>org.apache.httpcomponents</groupId>
324             <artifactId>httpclient</artifactId>
325         </dependency>
326         <dependency>
327             <groupId>org.slf4j</groupId>
328             <artifactId>slf4j-api</artifactId>
329         </dependency>
330     </dependencies>
331
332     <build>
333         <plugins>
334             <plugin>
335                 <groupId>org.apache.maven.plugins</groupId>
336                 <artifactId>maven-jar-plugin</artifactId>
337                 <configuration>
338                     <archive>
339                         <manifest>
340                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
341                         </manifest>
342                     </archive>
343                 </configuration>
344             </plugin>
345             <plugin>
346                 <groupId>org.apache.maven.plugins</groupId>
347                 <artifactId>maven-shade-plugin</artifactId>
348                 <configuration>
349                     <createDependencyReducedPom>true</createDependencyReducedPom>
350                     <filters>
351                         <filter>
352                             <artifact>*:*</artifact>
353                             <excludes>
354                                 <exclude>META-INF/*.SF</exclude>
355                                 <exclude>META-INF/*.DSA</exclude>
356                                 <exclude>META-INF/*.RSA</exclude>
357                             </excludes>
358                         </filter>
359                         <filter>
360                             <artifact>org.onap.holmes.dsa:dmaap-dsa</artifact>
361                             <excludes>
362                                 <exclude>org/onap/holmes/common/**</exclude>
363                                 <exclude>com/fasterxml/jackson/core/jackson-databind/**</exclude>
364                                 <exclude>org/slf4j/**</exclude>
365                             </excludes>
366                         </filter>
367                     </filters>
368                 </configuration>
369                 <executions>
370                     <execution>
371                         <phase>package</phase>
372                         <goals>
373                             <goal>shade</goal>
374                         </goals>
375                         <configuration>
376                             <transformers>
377                                 <transformer
378                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
379                                 <transformer
380                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
381                                     <mainClass>org.onap.holmes.engine.EngineDActiveApp
382                                     </mainClass>
383                                 </transformer>
384                             </transformers>
385                         </configuration>
386                     </execution>
387                 </executions>
388             </plugin>
389         </plugins>
390         <resources>
391             <resource>
392                 <directory>src/main/java</directory>
393                 <includes>
394                     <include>**/*.properties</include>
395                 </includes>
396             </resource>
397             <resource>
398                 <directory>src/main/resources</directory>
399             </resource>
400         </resources>
401     </build>
402
403     <profiles>
404         <profile>
405             <id>swagger</id>
406             <dependencies>
407                 <dependency>
408                     <groupId>io.swagger</groupId>
409                     <artifactId>swagger-jersey2-jaxrs</artifactId>
410                     <version>1.5.0</version>
411                 </dependency>
412             </dependencies>
413
414             <build>
415                 <plugins>
416                     <plugin>
417                         <groupId>com.github.kongchen</groupId>
418                         <artifactId>swagger-maven-plugin</artifactId>
419                         <version>3.1.1</version>
420                         <configuration>
421                             <apiSources>
422                                 <apiSource>
423                                     <springmvc>false</springmvc>
424                                     <locations>org.onap.holmes.engine.resources</locations>
425                                     <basePath>/api/holmes-engine-mgmt/v1/</basePath>
426                                     <info>
427                                         <title>API Descriptions for Holmes Engine Management</title>
428                                         <version>v1</version>
429                                         <description>
430                                             This page shows all the APIs available in the Holmes engine management module.
431                                         </description>
432                                         <termsOfService>
433                                             http://www.github.com/kongchen/swagger-maven-plugin
434                                         </termsOfService>
435                                         <contact>
436                                             <email>fu.guangrong@zte.com.cn</email>
437                                             <name>Guangrong Fu</name>
438                                         </contact>
439                                         <license>
440                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
441                                             <name>Apache 2.0</name>
442                                         </license>
443                                     </info>
444                                     <securityDefinitions>
445                                     </securityDefinitions>
446                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
447                                 </apiSource>
448                             </apiSources>
449                         </configuration>
450                         <executions>
451                             <execution>
452                                 <phase>compile</phase>
453                                 <goals>
454                                     <goal>generate</goal>
455                                 </goals>
456                             </execution>
457                         </executions>
458                         <dependencies>
459                             <dependency>
460                                 <groupId>io.swagger</groupId>
461                                 <artifactId>swagger-hibernate-validations</artifactId>
462                                 <version>1.5.6</version>
463                             </dependency>
464                         </dependencies>
465                     </plugin>
466                 </plugins>
467             </build>
468         </profile>
469     </profiles>
470 </project>