Add engine junit test
[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             <exclusions>
85                 <exclusion>
86                     <groupId>ch.qos.logback</groupId>
87                     <artifactId>logback</artifactId>
88                 </exclusion>
89                 <exclusion>
90                     <artifactId>log4j-over-slf4j</artifactId>
91                     <groupId>org.slf4j</groupId>
92                 </exclusion>
93             </exclusions>
94         </dependency>
95         <dependency>
96             <groupId>org.projectlombok</groupId>
97             <artifactId>lombok</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>mysql</groupId>
101             <artifactId>mysql-connector-java</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.quartz-scheduler</groupId>
105             <artifactId>quartz</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>junit</groupId>
109             <artifactId>junit</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>org.hamcrest</groupId>
113             <artifactId>hamcrest-core</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>org.powermock</groupId>
117             <artifactId>powermock-module-junit4</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>org.slf4j</groupId>
121             <artifactId>slf4j-api</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.openo.client.cli</groupId>
125             <artifactId>swagger-sdk</artifactId>
126         </dependency>
127         <dependency>
128             <groupId>io.swagger</groupId>
129             <artifactId>swagger-jersey2-jaxrs</artifactId>
130             <scope>provided</scope>
131         </dependency>
132
133         <dependency>
134             <groupId>org.powermock</groupId>
135             <artifactId>powermock-api-easymock</artifactId>
136             <version>1.4.10</version>
137             <scope>test</scope>
138         </dependency>
139     </dependencies>
140
141     <build>
142         <plugins>
143             <plugin>
144                 <groupId>org.apache.maven.plugins</groupId>
145                 <artifactId>maven-jar-plugin</artifactId>
146                 <configuration>
147                     <archive>
148                         <manifest>
149                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
150                         </manifest>
151                     </archive>
152                 </configuration>
153             </plugin>
154             <plugin>
155                 <groupId>org.apache.maven.plugins</groupId>
156                 <artifactId>maven-shade-plugin</artifactId>
157                 <configuration>
158                     <createDependencyReducedPom>true</createDependencyReducedPom>
159                     <filters>
160                         <filter>
161                             <artifact>*:*</artifact>
162                             <excludes>
163                                 <exclude>META-INF/*.SF</exclude>
164                                 <exclude>META-INF/*.DSA</exclude>
165                                 <exclude>META-INF/*.RSA</exclude>
166                             </excludes>
167                         </filter>
168                     </filters>
169                 </configuration>
170                 <executions>
171                     <execution>
172                         <phase>package</phase>
173                         <goals>
174                             <goal>shade</goal>
175                         </goals>
176                         <configuration>
177                             <transformers>
178                                 <transformer
179                                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
180                                 <transformer
181                                   implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
182                                     <mainClass>org.openo.holmes.engine.EngineDActiveApp
183                                     </mainClass>
184                                 </transformer>
185                             </transformers>
186                         </configuration>
187                     </execution>
188                 </executions>
189             </plugin>
190
191         </plugins>
192         <resources>
193             <resource>
194                 <directory>src/main/java</directory>
195                 <includes>
196                     <include>**/*.properties</include>
197                 </includes>
198             </resource>
199             <resource>
200                 <directory>src/main/resources</directory>
201             </resource>
202         </resources>
203     </build>
204 </project>