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