Merge "remove invalid comment"
[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>junit</groupId>
34             <artifactId>junit</artifactId>
35         </dependency>
36         <dependency>
37             <groupId>org.openo.common-services.common-utilities</groupId>
38             <artifactId>dropwizard-ioc-container</artifactId>
39         </dependency>
40         <dependency>
41             <groupId>io.dropwizard</groupId>
42             <artifactId>dropwizard-core</artifactId>
43         </dependency>
44         <dependency>
45             <groupId>org.projectlombok</groupId>
46             <artifactId>lombok</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>io.dropwizard</groupId>
50             <artifactId>dropwizard-db</artifactId>
51         </dependency>
52
53         <dependency>
54             <groupId>org.hamcrest</groupId>
55             <artifactId>hamcrest-library</artifactId>
56             <version>1.3</version>
57             <scope>test</scope>
58         </dependency>
59
60         <dependency>
61             <groupId>org.powermock</groupId>
62             <artifactId>powermock-module-junit4</artifactId>
63             <version>1.4.10</version>
64             <scope>test</scope>
65         </dependency>
66
67         <dependency>
68             <groupId>org.powermock</groupId>
69             <artifactId>powermock-api-easymock</artifactId>
70             <version>1.4.10</version>
71             <scope>test</scope>
72         </dependency>
73
74         <dependency>
75             <groupId>org.easymock</groupId>
76             <artifactId>easymock</artifactId>
77             <version>3.0</version>
78             <scope>test</scope>
79         </dependency>
80
81         <dependency>
82             <groupId>org.javassist</groupId>
83             <artifactId>javassist</artifactId>
84             <version>3.15.0-GA</version>
85             <scope>test</scope>
86         </dependency>
87
88     </dependencies>
89     <build>
90         <plugins>
91             <plugin>
92                 <groupId>org.apache.maven.plugins</groupId>
93                 <artifactId>maven-jar-plugin</artifactId>
94                 <configuration>
95                     <archive>
96                         <manifest>
97                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
98                         </manifest>
99                     </archive>
100                 </configuration>
101             </plugin>
102             <plugin>
103                 <groupId>org.apache.maven.plugins</groupId>
104                 <artifactId>maven-shade-plugin</artifactId>
105                 <configuration>
106                     <createDependencyReducedPom>true</createDependencyReducedPom>
107                     <filters>
108                         <filter>
109                             <artifact>*:*</artifact>
110                             <excludes>
111                                 <exclude>META-INF/*.SF</exclude>
112                                 <exclude>META-INF/*.DSA</exclude>
113                                 <exclude>META-INF/*.RSA</exclude>
114                             </excludes>
115                         </filter>
116                     </filters>
117                 </configuration>
118                 <executions>
119                     <execution>
120                         <phase>package</phase>
121                         <goals>
122                             <goal>shade</goal>
123                         </goals>
124                         <configuration>
125                             <transformers>
126                                 <transformer
127                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
128                                 <transformer
129                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
130                                     <mainClass>org.openo.holmes.rulemgt.RuleActiveApp</mainClass>
131                                 </transformer>
132                             </transformers>
133                         </configuration>
134                     </execution>
135                 </executions>
136             </plugin>
137
138         </plugins>
139         <resources>
140             <resource>
141                 <directory>src/main/java</directory>
142                 <includes>
143                     <include>**/*.properties</include>
144                 </includes>
145             </resource>
146             <resource>
147                 <directory>src/main/resources</directory>
148             </resource>
149         </resources>
150     </build>
151 </project>