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