Change the Way to Invoke HTTP Requests
[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.openo.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
33         <dependency>
34             <groupId>org.openo.holmes.actions</groupId>
35             <artifactId>holmes-actions</artifactId>
36             <exclusions>
37                 <exclusion>
38                     <groupId>org.glassfish.jersey.containers</groupId>
39                     <artifactId>jersey-container-servlet-core</artifactId>
40                 </exclusion>
41                 <exclusion>
42                     <groupId>org.apache.activemq</groupId>
43                     <artifactId>activemq-core</artifactId>
44                 </exclusion>
45             </exclusions>
46         </dependency>
47         <dependency>
48             <groupId>org.glassfish.jersey.containers</groupId>
49             <artifactId>jersey-container-servlet-core</artifactId>
50             <version>2.22.2</version>
51         </dependency>
52         <dependency>
53             <groupId>org.easymock</groupId>
54             <artifactId>easymock</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>io.dropwizard</groupId>
58             <artifactId>dropwizard-db</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.antlr</groupId>
62             <artifactId>stringtemplate</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>io.dropwizard</groupId>
66             <artifactId>dropwizard-core</artifactId>
67             <exclusions>
68                 <exclusion>
69                     <groupId>ch.qos.logback</groupId>
70                     <artifactId>logback</artifactId>
71                 </exclusion>
72                 <exclusion>
73                     <artifactId>log4j-over-slf4j</artifactId>
74                     <groupId>org.slf4j</groupId>
75                 </exclusion>
76             </exclusions>
77         </dependency>
78         <dependency>
79             <groupId>org.projectlombok</groupId>
80             <artifactId>lombok</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>mysql</groupId>
84             <artifactId>mysql-connector-java</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.quartz-scheduler</groupId>
88             <artifactId>quartz</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>junit</groupId>
92             <artifactId>junit</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>org.hamcrest</groupId>
96             <artifactId>hamcrest-core</artifactId>
97         </dependency>
98         <dependency>
99             <groupId>org.powermock</groupId>
100             <artifactId>powermock-module-junit4</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>org.slf4j</groupId>
104             <artifactId>slf4j-api</artifactId>
105         </dependency>
106         <dependency>
107             <groupId>org.openo.client.cli</groupId>
108             <artifactId>swagger-sdk</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>io.swagger</groupId>
112             <artifactId>swagger-jersey2-jaxrs</artifactId>
113             <scope>provided</scope>
114         </dependency>
115
116         <dependency>
117             <groupId>org.powermock</groupId>
118             <artifactId>powermock-api-easymock</artifactId>
119             <version>1.6.5</version>
120             <scope>test</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.powermock</groupId>
124             <artifactId>powermock-module-junit4-rule</artifactId>
125             <version>1.6.5</version>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.powermock</groupId>
130             <artifactId>powermock-classloading-xstream</artifactId>
131             <version>1.6.5</version>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.hamcrest</groupId>
136             <artifactId>hamcrest-library</artifactId>
137             <version>1.3</version>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>org.easymock</groupId>
142             <artifactId>easymock</artifactId>
143             <version>3.0</version>
144             <scope>test</scope>
145         </dependency>
146         <dependency>
147             <groupId>org.javassist</groupId>
148             <artifactId>javassist</artifactId>
149             <version>3.15.0-GA</version>
150         </dependency>
151         <dependency>
152             <groupId>org.apache.httpcomponents</groupId>
153             <artifactId>httpclient</artifactId>
154             <version>4.3.6</version>
155         </dependency>
156         <dependency>
157             <groupId>com.googlecode.json-simple</groupId>
158             <artifactId>json-simple</artifactId>
159             <version>1.1.1</version>
160         </dependency>
161         <dependency>
162             <groupId>net.sf.json-lib</groupId>
163             <artifactId>json-lib</artifactId>
164             <version>2.4</version>
165             <classifier>jdk15</classifier>
166         </dependency>
167         <dependency>
168             <groupId>org.glassfish.jersey.core</groupId>
169             <artifactId>jersey-server</artifactId>
170             <version>${jersey.version}</version>
171         </dependency>
172         <dependency>
173             <groupId>org.glassfish.jersey.core</groupId>
174             <artifactId>jersey-client</artifactId>
175             <version>${jersey.version}</version>
176         </dependency>
177         <dependency>
178             <groupId>org.glassfish.jersey.core</groupId>
179             <artifactId>jersey-common</artifactId>
180             <version>${jersey.version}</version>
181         </dependency>
182         <dependency>
183             <groupId>org.glassfish.jersey.containers</groupId>
184             <artifactId>jersey-container-servlet-core</artifactId>
185             <version>${jersey.version}</version>
186         </dependency>
187         <dependency>
188             <groupId>com.google.guava</groupId>
189             <artifactId>guava</artifactId>
190             <version>19.0</version>
191         </dependency>
192
193     </dependencies>
194     <build>
195         <plugins>
196             <plugin>
197                 <groupId>org.apache.maven.plugins</groupId>
198                 <artifactId>maven-jar-plugin</artifactId>
199                 <configuration>
200                     <archive>
201                         <manifest>
202                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
203                         </manifest>
204                     </archive>
205                 </configuration>
206             </plugin>
207             <plugin>
208                 <groupId>org.apache.maven.plugins</groupId>
209                 <artifactId>maven-compiler-plugin</artifactId>
210                 <version>3.3</version>
211                 <configuration>
212                     <source>1.8</source>
213                     <target>1.8</target>
214                 </configuration>
215             </plugin>
216             <plugin>
217                 <groupId>org.apache.maven.plugins</groupId>
218                 <artifactId>maven-shade-plugin</artifactId>
219                 <configuration>
220                     <createDependencyReducedPom>true</createDependencyReducedPom>
221                     <filters>
222                         <filter>
223                             <artifact>*:*</artifact>
224                             <excludes>
225                                 <exclude>META-INF/*.SF</exclude>
226                                 <exclude>META-INF/*.DSA</exclude>
227                                 <exclude>META-INF/*.RSA</exclude>
228                             </excludes>
229                         </filter>
230                     </filters>
231                 </configuration>
232                 <executions>
233                     <execution>
234                         <phase>package</phase>
235                         <goals>
236                             <goal>shade</goal>
237                         </goals>
238                         <configuration>
239                             <transformers>
240                                 <transformer
241                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
242                                 <transformer
243                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
244                                     <mainClass>org.openo.holmes.rulemgt.RuleActiveApp</mainClass>
245                                 </transformer>
246                             </transformers>
247                         </configuration>
248                     </execution>
249                 </executions>
250             </plugin>
251
252         </plugins>
253         <resources>
254             <resource>
255                 <directory>src/main/java</directory>
256                 <includes>
257                     <include>**/*.properties</include>
258                 </includes>
259             </resource>
260             <resource>
261                 <directory>src/main/resources</directory>
262             </resource>
263         </resources>
264     </build>
265 </project>