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