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