Fix a Bug Caused by Dependency Version
[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>1.4.10</version>
77             <scope>test</scope>
78         </dependency>
79         <dependency>
80             <groupId>org.powermock</groupId>
81             <artifactId>powermock-api-easymock</artifactId>
82             <version>1.4.10</version>
83             <scope>test</scope>
84         </dependency>
85         <dependency>
86             <groupId>org.easymock</groupId>
87             <artifactId>easymock</artifactId>
88             <version>3.0</version>
89             <scope>test</scope>
90         </dependency>
91         <dependency>
92             <groupId>org.javassist</groupId>
93             <artifactId>javassist</artifactId>
94             <version>3.15.0-GA</version>
95             <scope>test</scope>
96         </dependency>
97     </dependencies>
98     <build>
99         <plugins>
100             <plugin>
101                 <groupId>org.apache.maven.plugins</groupId>
102                 <artifactId>maven-jar-plugin</artifactId>
103                 <configuration>
104                     <archive>
105                         <manifest>
106                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
107                         </manifest>
108                     </archive>
109                 </configuration>
110             </plugin>
111             <plugin>
112                 <groupId>org.apache.maven.plugins</groupId>
113                 <artifactId>maven-compiler-plugin</artifactId>
114                 <version>3.3</version>
115                 <configuration>
116                     <source>1.8</source>
117                     <target>1.8</target>
118                 </configuration>
119             </plugin>
120             <plugin>
121                 <groupId>org.apache.maven.plugins</groupId>
122                 <artifactId>maven-shade-plugin</artifactId>
123                 <configuration>
124                     <createDependencyReducedPom>true</createDependencyReducedPom>
125                     <filters>
126                         <filter>
127                             <artifact>*:*</artifact>
128                             <excludes>
129                                 <exclude>META-INF/*.SF</exclude>
130                                 <exclude>META-INF/*.DSA</exclude>
131                                 <exclude>META-INF/*.RSA</exclude>
132                             </excludes>
133                         </filter>
134                     </filters>
135                 </configuration>
136                 <executions>
137                     <execution>
138                         <phase>package</phase>
139                         <goals>
140                             <goal>shade</goal>
141                         </goals>
142                         <configuration>
143                             <transformers>
144                                 <transformer
145                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
146                                 <transformer
147                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
148                                     <mainClass>org.openo.holmes.rulemgt.RuleActiveApp</mainClass>
149                                 </transformer>
150                             </transformers>
151                         </configuration>
152                     </execution>
153                 </executions>
154             </plugin>
155
156         </plugins>
157         <resources>
158             <resource>
159                 <directory>src/main/java</directory>
160                 <includes>
161                     <include>**/*.properties</include>
162                 </includes>
163             </resource>
164             <resource>
165                 <directory>src/main/resources</directory>
166             </resource>
167         </resources>
168     </build>
169 </project>