Add rule management module unit tests
[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         <dependency>
33             <groupId>org.openo.holmes.actions</groupId>
34             <artifactId>holmes-actions</artifactId>
35             <exclusions>
36                 <exclusion>
37                     <groupId>org.glassfish.jersey.containers</groupId>
38                     <artifactId>jersey-container-servlet-core</artifactId>
39                 </exclusion>
40             </exclusions>
41         </dependency>
42         <dependency>
43             <groupId>org.glassfish.jersey.containers</groupId>
44             <artifactId>jersey-container-servlet-core</artifactId>
45             <version>2.16</version>
46         </dependency>
47         <dependency>
48             <groupId>junit</groupId>
49             <artifactId>junit</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>org.openo.common-services.common-utilities</groupId>
53             <artifactId>dropwizard-ioc-container</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>org.projectlombok</groupId>
57             <artifactId>lombok</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>io.dropwizard</groupId>
61             <artifactId>dropwizard-db</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.hamcrest</groupId>
65             <artifactId>hamcrest-library</artifactId>
66             <version>1.3</version>
67             <scope>test</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.powermock</groupId>
71             <artifactId>powermock-module-junit4</artifactId>
72             <version>${powermock.version}</version>
73             <scope>test</scope>
74         </dependency>
75         <dependency>
76             <groupId>org.powermock</groupId>
77             <artifactId>powermock-api-easymock</artifactId>
78             <version>${powermock.version}</version>
79             <scope>test</scope>
80         </dependency>
81         <dependency>
82             <groupId>org.powermock</groupId>
83             <artifactId>powermock-module-junit4-rule</artifactId>
84             <version>${powermock.version}</version>
85             <scope>test</scope>
86         </dependency>
87         <dependency>
88             <groupId>org.powermock</groupId>
89             <artifactId>powermock-classloading-xstream</artifactId>
90             <version>${powermock.version}</version>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>org.easymock</groupId>
95             <artifactId>easymock</artifactId>
96             <version>3.0</version>
97             <scope>test</scope>
98         </dependency>
99         <dependency>
100             <groupId>org.javassist</groupId>
101             <artifactId>javassist</artifactId>
102             <version>3.15.0-GA</version>
103             <scope>test</scope>
104         </dependency>
105         <dependency>
106             <groupId>org.apache.httpcomponents</groupId>
107             <artifactId>httpclient</artifactId>
108             <version>4.3.6</version>
109         </dependency>
110         <dependency>
111             <groupId>com.googlecode.json-simple</groupId>
112             <artifactId>json-simple</artifactId>
113             <version>1.1.1</version>
114         </dependency>
115         <dependency>
116             <groupId>net.sf.json-lib</groupId>
117             <artifactId>json-lib</artifactId>
118             <version>2.4</version>
119             <classifier>jdk15</classifier>
120         </dependency>
121     </dependencies>
122     <build>
123         <plugins>
124             <plugin>
125                 <groupId>org.apache.maven.plugins</groupId>
126                 <artifactId>maven-jar-plugin</artifactId>
127                 <configuration>
128                     <archive>
129                         <manifest>
130                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
131                         </manifest>
132                     </archive>
133                 </configuration>
134             </plugin>
135             <plugin>
136                 <groupId>org.apache.maven.plugins</groupId>
137                 <artifactId>maven-compiler-plugin</artifactId>
138                 <version>3.3</version>
139                 <configuration>
140                     <source>1.8</source>
141                     <target>1.8</target>
142                 </configuration>
143             </plugin>
144             <plugin>
145                 <groupId>org.apache.maven.plugins</groupId>
146                 <artifactId>maven-shade-plugin</artifactId>
147                 <configuration>
148                     <createDependencyReducedPom>true</createDependencyReducedPom>
149                     <filters>
150                         <filter>
151                             <artifact>*:*</artifact>
152                             <excludes>
153                                 <exclude>META-INF/*.SF</exclude>
154                                 <exclude>META-INF/*.DSA</exclude>
155                                 <exclude>META-INF/*.RSA</exclude>
156                             </excludes>
157                         </filter>
158                     </filters>
159                 </configuration>
160                 <executions>
161                     <execution>
162                         <phase>package</phase>
163                         <goals>
164                             <goal>shade</goal>
165                         </goals>
166                         <configuration>
167                             <transformers>
168                                 <transformer
169                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
170                                 <transformer
171                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
172                                     <mainClass>org.openo.holmes.rulemgt.RuleActiveApp</mainClass>
173                                 </transformer>
174                             </transformers>
175                         </configuration>
176                     </execution>
177                 </executions>
178             </plugin>
179
180         </plugins>
181         <resources>
182             <resource>
183                 <directory>src/main/java</directory>
184                 <includes>
185                     <include>**/*.properties</include>
186                 </includes>
187             </resource>
188             <resource>
189                 <directory>src/main/resources</directory>
190             </resource>
191         </resources>
192     </build>
193 </project>