ba5524c54eef1107286b2f5bdf56551500a8bb79
[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.1.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                             <mainClass>org.onap.holmes.rulemgt.RuleActiveApp</mainClass>
290                             <classpathPrefix>lib/</classpathPrefix>
291                         </manifest>
292                     </archive>
293                 </configuration>
294             </plugin>
295
296             <plugin>
297                 <groupId>org.apache.maven.plugins</groupId>
298                 <artifactId>maven-dependency-plugin</artifactId>
299                 <executions>
300                     <execution>
301                         <id>copy</id>
302                         <phase>package</phase>
303                         <goals>
304                             <goal>copy-dependencies</goal>
305                         </goals>
306                         <configuration>
307                             <outputDirectory>
308                                 ${project.build.directory}/lib
309                             </outputDirectory>
310                         </configuration>
311                     </execution>
312                 </executions>
313             </plugin>
314             <plugin>
315                 <groupId>org.apache.maven.plugins</groupId>
316                 <artifactId>maven-compiler-plugin</artifactId>
317                 <version>3.3</version>
318                 <configuration>
319                     <source>1.8</source>
320                     <target>1.8</target>
321                 </configuration>
322             </plugin>
323         </plugins>
324         <resources>
325             <resource>
326                 <directory>src/main/java</directory>
327                 <includes>
328                     <include>**/*.properties</include>
329                 </includes>
330             </resource>
331             <resource>
332                 <directory>src/main/resources</directory>
333             </resource>
334         </resources>
335     </build>
336
337     <profiles>
338         <profile>
339             <id>swagger</id>
340             <dependencies>
341                 <dependency>
342                     <groupId>io.swagger</groupId>
343                     <artifactId>swagger-jersey2-jaxrs</artifactId>
344                     <version>1.5.3</version>
345                     <exclusions>
346                         <exclusion>
347                             <groupId>com.fasterxml.jackson.core</groupId>
348                             <artifactId>jackson-databind</artifactId>
349                         </exclusion>
350                         <exclusion>
351                             <groupId>com.fasterxml.jackson.core</groupId>
352                             <artifactId>jackson-core</artifactId>
353                         </exclusion>
354                     </exclusions>
355                 </dependency>
356             </dependencies>
357             <build>
358                 <plugins>
359                     <plugin>
360                         <groupId>com.github.kongchen</groupId>
361                         <artifactId>swagger-maven-plugin</artifactId>
362                         <version>3.1.1</version>
363                         <configuration>
364                             <apiSources>
365                                 <apiSource>
366                                     <springmvc>false</springmvc>
367                                     <locations>org.onap.holmes.rulemgt.resources</locations>
368                                     <basePath>/api/holmes-rule-mgmt/v1/</basePath>
369                                     <info>
370                                         <title>API Descriptions for Holmes Rule Management</title>
371                                         <version>v1</version>
372                                         <description>
373                                             This page shows all the APIs available in the Holmes rule management module.
374                                         </description>
375                                         <termsOfService>
376                                             http://www.github.com/kongchen/swagger-maven-plugin
377                                         </termsOfService>
378                                         <contact>
379                                             <email>fu.guangrong@zte.com.cn</email>
380                                             <name>Guangrong Fu</name>
381                                         </contact>
382                                         <license>
383                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
384                                             <name>Apache 2.0</name>
385                                         </license>
386                                     </info>
387                                     <securityDefinitions>
388                                     </securityDefinitions>
389                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
390                                 </apiSource>
391                             </apiSources>
392                         </configuration>
393                         <executions>
394                             <execution>
395                                 <phase>compile</phase>
396                                 <goals>
397                                     <goal>generate</goal>
398                                 </goals>
399                             </execution>
400                         </executions>
401                         <dependencies>
402                             <dependency>
403                                 <groupId>io.swagger</groupId>
404                                 <artifactId>swagger-hibernate-validations</artifactId>
405                                 <version>1.5.6</version>
406                             </dependency>
407                         </dependencies>
408                     </plugin>
409                 </plugins>
410             </build>
411         </profile>
412     </profiles>
413 </project>