Add engine
[holmes/engine-management.git] / engine-d / 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"
18   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.openo.holmes.engine-management</groupId>
24         <artifactId>holmes-engine-parent</artifactId>
25         <version>1.1.0-SNAPSHOT</version>
26     </parent>
27
28     <artifactId>holmes-engine</artifactId>
29     <name>holmes-enginemgt-service</name>
30     <packaging>jar</packaging>
31
32     <properties>
33         <drools.version>5.4.0.Final</drools.version>
34     </properties>
35
36     <dependencies>
37         <dependency>
38             <groupId>org.openo.holmes.actions</groupId>
39             <artifactId>holmes-actions</artifactId>
40         </dependency>
41         <dependency>
42             <groupId>org.easymock</groupId>
43             <artifactId>easymock</artifactId>
44             <version>3.0</version>
45         </dependency>
46         <dependency>
47             <groupId>org.drools</groupId>
48             <artifactId>drools-core</artifactId>
49             <version>${drools.version}</version>
50         </dependency>
51         <dependency>
52             <groupId>org.drools</groupId>
53             <artifactId>drools-compiler</artifactId>
54             <version>${drools.version}</version>
55         </dependency>
56         <dependency>
57             <groupId>org.drools</groupId>
58             <artifactId>drools-templates</artifactId>
59             <version>${drools.version}</version>
60         </dependency>
61
62         <dependency>
63             <groupId>io.dropwizard</groupId>
64             <artifactId>dropwizard-db</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.antlr</groupId>
68             <artifactId>stringtemplate</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>io.dropwizard</groupId>
72             <artifactId>dropwizard-core</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.projectlombok</groupId>
76             <artifactId>lombok</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>mysql</groupId>
80             <artifactId>mysql-connector-java</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.quartz-scheduler</groupId>
84             <artifactId>quartz</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>junit</groupId>
88             <artifactId>junit</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>org.hamcrest</groupId>
92             <artifactId>hamcrest-core</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>org.powermock</groupId>
96             <artifactId>powermock-module-junit4</artifactId>
97         </dependency>
98         <dependency>
99             <groupId>org.slf4j</groupId>
100             <artifactId>slf4j-api</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>io.swagger</groupId>
104             <artifactId>swagger-jersey2-jaxrs</artifactId>
105         </dependency>
106     </dependencies>
107
108     <build>
109         <plugins>
110             <plugin>
111                 <groupId>org.apache.maven.plugins</groupId>
112                 <artifactId>maven-jar-plugin</artifactId>
113                 <configuration>
114                     <archive>
115                         <manifest>
116                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
117                         </manifest>
118                     </archive>
119                 </configuration>
120             </plugin>
121             <plugin>
122                 <groupId>org.apache.maven.plugins</groupId>
123                 <artifactId>maven-shade-plugin</artifactId>
124                 <configuration>
125                     <createDependencyReducedPom>true</createDependencyReducedPom>
126                     <filters>
127                         <filter>
128                             <artifact>*:*</artifact>
129                             <excludes>
130                                 <exclude>META-INF/*.SF</exclude>
131                                 <exclude>META-INF/*.DSA</exclude>
132                                 <exclude>META-INF/*.RSA</exclude>
133                             </excludes>
134                         </filter>
135                     </filters>
136                 </configuration>
137                 <executions>
138                     <execution>
139                         <phase>package</phase>
140                         <goals>
141                             <goal>shade</goal>
142                         </goals>
143                         <configuration>
144                             <transformers>
145                                 <transformer
146                                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
147                                 <transformer
148                                   implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
149                                     <mainClass>org.openo.holmes.enginemgt.EngineActiveApp
150                                     </mainClass>
151                                 </transformer>
152                             </transformers>
153                         </configuration>
154                     </execution>
155                 </executions>
156             </plugin>
157
158         </plugins>
159         <resources>
160             <resource>
161                 <directory>src/main/java</directory>
162                 <includes>
163                     <include>**/*.properties</include>
164                 </includes>
165             </resource>
166             <resource>
167                 <directory>src/main/resources</directory>
168             </resource>
169         </resources>
170     </build>
171 </project>