Merge "Add holmes-engine-d-standalone module"
[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-d</artifactId>
29     <name>holmes-engine-d-service</name>
30     <packaging>jar</packaging>
31
32     <properties>
33         <drools.version>5.4.0.Final</drools.version>
34     </properties>
35
36     <dependencies>
37
38         <dependency>
39             <groupId>org.openo.holmes.actions</groupId>
40             <artifactId>holmes-actions</artifactId>
41             <exclusions>
42                 <exclusion>
43                     <groupId>org.glassfish.jersey.containers</groupId>
44                     <artifactId>jersey-container-servlet-core</artifactId>
45                 </exclusion>
46             </exclusions>
47         </dependency>
48         <dependency>
49             <groupId>org.glassfish.jersey.containers</groupId>
50             <artifactId>jersey-container-servlet-core</artifactId>
51             <version>2.16</version>
52         </dependency>
53         <dependency>
54             <groupId>org.easymock</groupId>
55             <artifactId>easymock</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>org.drools</groupId>
59             <artifactId>drools-core</artifactId>
60             <version>${drools.version}</version>
61         </dependency>
62         <dependency>
63             <groupId>org.drools</groupId>
64             <artifactId>drools-compiler</artifactId>
65             <version>${drools.version}</version>
66         </dependency>
67         <dependency>
68             <groupId>org.drools</groupId>
69             <artifactId>drools-templates</artifactId>
70             <version>${drools.version}</version>
71         </dependency>
72
73         <dependency>
74             <groupId>io.dropwizard</groupId>
75             <artifactId>dropwizard-db</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.antlr</groupId>
79             <artifactId>stringtemplate</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>io.dropwizard</groupId>
83             <artifactId>dropwizard-core</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.projectlombok</groupId>
87             <artifactId>lombok</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>mysql</groupId>
91             <artifactId>mysql-connector-java</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.quartz-scheduler</groupId>
95             <artifactId>quartz</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>junit</groupId>
99             <artifactId>junit</artifactId>
100         </dependency>
101         <dependency>
102             <groupId>org.hamcrest</groupId>
103             <artifactId>hamcrest-core</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>org.powermock</groupId>
107             <artifactId>powermock-module-junit4</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>org.slf4j</groupId>
111             <artifactId>slf4j-api</artifactId>
112         </dependency>
113         <dependency>
114             <groupId>org.openo.client.cli</groupId>
115             <artifactId>swagger-sdk</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>io.swagger</groupId>
119             <artifactId>swagger-jersey2-jaxrs</artifactId>
120             <scope>provided</scope>
121         </dependency>
122
123     </dependencies>
124
125     <build>
126         <plugins>
127             <plugin>
128                 <groupId>org.apache.maven.plugins</groupId>
129                 <artifactId>maven-jar-plugin</artifactId>
130                 <configuration>
131                     <archive>
132                         <manifest>
133                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
134                         </manifest>
135                     </archive>
136                 </configuration>
137             </plugin>
138             <plugin>
139                 <groupId>org.apache.maven.plugins</groupId>
140                 <artifactId>maven-shade-plugin</artifactId>
141                 <configuration>
142                     <createDependencyReducedPom>true</createDependencyReducedPom>
143                     <filters>
144                         <filter>
145                             <artifact>*:*</artifact>
146                             <excludes>
147                                 <exclude>META-INF/*.SF</exclude>
148                                 <exclude>META-INF/*.DSA</exclude>
149                                 <exclude>META-INF/*.RSA</exclude>
150                             </excludes>
151                         </filter>
152                     </filters>
153                 </configuration>
154                 <executions>
155                     <execution>
156                         <phase>package</phase>
157                         <goals>
158                             <goal>shade</goal>
159                         </goals>
160                         <configuration>
161                             <transformers>
162                                 <transformer
163                                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
164                                 <transformer
165                                   implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
166                                     <mainClass>org.openo.holmes.engine.EngineDActiveApp
167                                     </mainClass>
168                                 </transformer>
169                             </transformers>
170                         </configuration>
171                     </execution>
172                 </executions>
173             </plugin>
174
175         </plugins>
176         <resources>
177             <resource>
178                 <directory>src/main/java</directory>
179                 <includes>
180                     <include>**/*.properties</include>
181                 </includes>
182             </resource>
183             <resource>
184                 <directory>src/main/resources</directory>
185             </resource>
186         </resources>
187     </build>
188 </project>