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