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