Holmes rule management
[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</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   </dependencies>
54         <build>
55                 <plugins>
56                         <plugin>
57                                 <groupId>org.apache.maven.plugins</groupId>
58                                 <artifactId>maven-jar-plugin</artifactId>
59                                 <configuration>
60                                         <archive>
61                                                 <manifest>
62                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
63                                                 </manifest>
64                                         </archive>
65                                 </configuration>
66                         </plugin>
67                         <plugin>
68                                 <groupId>org.apache.maven.plugins</groupId>
69                                 <artifactId>maven-shade-plugin</artifactId>
70                                 <configuration>
71                                         <createDependencyReducedPom>true</createDependencyReducedPom>
72                                         <filters>
73                                                 <filter>
74                                                         <artifact>*:*</artifact>
75                                                         <excludes>
76                                                                 <exclude>META-INF/*.SF</exclude>
77                                                                 <exclude>META-INF/*.DSA</exclude>
78                                                                 <exclude>META-INF/*.RSA</exclude>
79                                                         </excludes>
80                                                 </filter>
81                                         </filters>
82                                 </configuration>
83                                 <executions>
84                                         <execution>
85                                                 <phase>package</phase>
86                                                 <goals>
87                                                         <goal>shade</goal>
88                                                 </goals>
89                                                 <configuration>
90                                                         <transformers>
91                                                                 <transformer
92                                                                         implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
93                                                                 <transformer
94                                                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
95                                                                         <mainClass>org.openo.holmes.rulemgt.RuleActiveApp</mainClass>
96                                                                 </transformer>
97                                                         </transformers>
98                                                 </configuration>
99                                         </execution>
100                                 </executions>
101                         </plugin>
102
103                 </plugins>
104                 <resources>
105                         <resource>
106                                 <directory>src/main/java</directory>
107                                 <includes>
108                                         <include>**/*.properties</include>
109                                 </includes>
110                         </resource>
111                         <resource>
112                                 <directory>src/main/resources</directory>
113                         </resource>
114                 </resources>
115         </build>
116 </project>