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