Introduce MSB Java SDK
[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.0.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         <dependency>
38             <groupId>org.onap.msb.java-sdk</groupId>
39             <artifactId>msb-java-sdk</artifactId>
40         </dependency>
41         <dependency>
42             <groupId>org.reflections</groupId>
43             <artifactId>reflections</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>org.onap.holmes.common</groupId>
47             <artifactId>holmes-actions</artifactId>
48             <exclusions>
49                 <exclusion>
50                     <groupId>org.glassfish.jersey.containers</groupId>
51                     <artifactId>jersey-container-servlet-core</artifactId>
52                 </exclusion>
53             </exclusions>
54         </dependency>
55         <dependency>
56             <groupId>org.glassfish.jersey.containers</groupId>
57             <artifactId>jersey-container-servlet-core</artifactId>
58             <version>2.22.2</version>
59         </dependency>
60         <dependency>
61             <groupId>org.easymock</groupId>
62             <artifactId>easymock</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.drools</groupId>
66             <artifactId>drools-core</artifactId>
67             <version>${drools.version}</version>
68         </dependency>
69         <dependency>
70             <groupId>org.drools</groupId>
71             <artifactId>drools-compiler</artifactId>
72             <version>${drools.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.drools</groupId>
76             <artifactId>drools-templates</artifactId>
77             <version>${drools.version}</version>
78         </dependency>
79
80         <dependency>
81             <groupId>io.dropwizard</groupId>
82             <artifactId>dropwizard-db</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>org.antlr</groupId>
86             <artifactId>stringtemplate</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>io.dropwizard</groupId>
90             <artifactId>dropwizard-core</artifactId>
91             <exclusions>
92                 <exclusion>
93                     <groupId>ch.qos.logback</groupId>
94                     <artifactId>logback</artifactId>
95                 </exclusion>
96                 <exclusion>
97                     <artifactId>log4j-over-slf4j</artifactId>
98                     <groupId>org.slf4j</groupId>
99                 </exclusion>
100             </exclusions>
101         </dependency>
102         <dependency>
103             <groupId>org.projectlombok</groupId>
104             <artifactId>lombok</artifactId>
105         </dependency>
106         <dependency>
107             <groupId>mysql</groupId>
108             <artifactId>mysql-connector-java</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>org.quartz-scheduler</groupId>
112             <artifactId>quartz</artifactId>
113         </dependency>
114         <dependency>
115             <groupId>junit</groupId>
116             <artifactId>junit</artifactId>
117         </dependency>
118         <dependency>
119             <groupId>org.hamcrest</groupId>
120             <artifactId>hamcrest-core</artifactId>
121         </dependency>
122         <dependency>
123             <groupId>org.powermock</groupId>
124             <artifactId>powermock-module-junit4</artifactId>
125         </dependency>
126         <dependency>
127             <groupId>org.slf4j</groupId>
128             <artifactId>slf4j-api</artifactId>
129         </dependency>
130         <dependency>
131             <groupId>io.swagger</groupId>
132             <artifactId>swagger-jersey2-jaxrs</artifactId>
133             <scope>provided</scope>
134         </dependency>
135
136         <dependency>
137             <groupId>org.powermock</groupId>
138             <artifactId>powermock-api-easymock</artifactId>
139             <version>1.6.5</version>
140             <scope>test</scope>
141         </dependency>
142         <dependency>
143             <groupId>org.powermock</groupId>
144             <artifactId>powermock-module-junit4-rule</artifactId>
145             <version>1.6.5</version>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>org.powermock</groupId>
150             <artifactId>powermock-classloading-xstream</artifactId>
151             <version>1.6.5</version>
152             <scope>test</scope>
153         </dependency>
154
155         <dependency>
156             <groupId>org.apache.httpcomponents</groupId>
157             <artifactId>httpclient</artifactId>
158         </dependency>
159         <dependency>
160             <groupId>com.google.guava</groupId>
161             <artifactId>guava</artifactId>
162         </dependency>
163     </dependencies>
164
165     <build>
166         <plugins>
167             <plugin>
168                 <groupId>org.apache.maven.plugins</groupId>
169                 <artifactId>maven-jar-plugin</artifactId>
170                 <configuration>
171                     <archive>
172                         <manifest>
173                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
174                         </manifest>
175                     </archive>
176                 </configuration>
177             </plugin>
178             <plugin>
179                 <groupId>org.apache.maven.plugins</groupId>
180                 <artifactId>maven-shade-plugin</artifactId>
181                 <configuration>
182                     <createDependencyReducedPom>true</createDependencyReducedPom>
183                     <filters>
184                         <filter>
185                             <artifact>*:*</artifact>
186                             <excludes>
187                                 <exclude>META-INF/*.SF</exclude>
188                                 <exclude>META-INF/*.DSA</exclude>
189                                 <exclude>META-INF/*.RSA</exclude>
190                             </excludes>
191                         </filter>
192                     </filters>
193                 </configuration>
194                 <executions>
195                     <execution>
196                         <phase>package</phase>
197                         <goals>
198                             <goal>shade</goal>
199                         </goals>
200                         <configuration>
201                             <transformers>
202                                 <transformer
203                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
204                                 <transformer
205                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
206                                     <mainClass>org.onap.holmes.engine.EngineDActiveApp
207                                     </mainClass>
208                                 </transformer>
209                             </transformers>
210                         </configuration>
211                     </execution>
212                 </executions>
213             </plugin>
214
215         </plugins>
216         <resources>
217             <resource>
218                 <directory>src/main/java</directory>
219                 <includes>
220                     <include>**/*.properties</include>
221                 </includes>
222             </resource>
223             <resource>
224                 <directory>src/main/resources</directory>
225             </resource>
226         </resources>
227     </build>
228 </project>