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