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