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