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