Modify engine database script
[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.22.2</version>
52         </dependency>
53         <dependency>
54             <groupId>org.easymock</groupId>
55             <artifactId>easymock</artifactId>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.drools</groupId>
60             <artifactId>drools-core</artifactId>
61             <version>${drools.version}</version>
62         </dependency>
63         <dependency>
64             <groupId>org.drools</groupId>
65             <artifactId>drools-compiler</artifactId>
66             <version>${drools.version}</version>
67         </dependency>
68         <dependency>
69             <groupId>org.drools</groupId>
70             <artifactId>drools-templates</artifactId>
71             <version>${drools.version}</version>
72         </dependency>
73
74         <dependency>
75             <groupId>io.dropwizard</groupId>
76             <artifactId>dropwizard-db</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.antlr</groupId>
80             <artifactId>stringtemplate</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>io.dropwizard</groupId>
84             <artifactId>dropwizard-core</artifactId>
85             <exclusions>
86                 <exclusion>
87                     <groupId>ch.qos.logback</groupId>
88                     <artifactId>logback</artifactId>
89                 </exclusion>
90                 <exclusion>
91                     <artifactId>log4j-over-slf4j</artifactId>
92                     <groupId>org.slf4j</groupId>
93                 </exclusion>
94             </exclusions>
95         </dependency>
96         <dependency>
97             <groupId>org.projectlombok</groupId>
98             <artifactId>lombok</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>mysql</groupId>
102             <artifactId>mysql-connector-java</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>org.quartz-scheduler</groupId>
106             <artifactId>quartz</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>junit</groupId>
110             <artifactId>junit</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>org.hamcrest</groupId>
114             <artifactId>hamcrest-core</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>org.powermock</groupId>
118             <artifactId>powermock-module-junit4</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.slf4j</groupId>
122             <artifactId>slf4j-api</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>org.openo.client.cli</groupId>
126             <artifactId>swagger-sdk</artifactId>
127         </dependency>
128         <dependency>
129             <groupId>io.swagger</groupId>
130             <artifactId>swagger-jersey2-jaxrs</artifactId>
131             <scope>provided</scope>
132         </dependency>
133
134         <dependency>
135             <groupId>org.powermock</groupId>
136             <artifactId>powermock-api-easymock</artifactId>
137             <version>1.6.5</version>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>org.powermock</groupId>
142             <artifactId>powermock-module-junit4-rule</artifactId>
143             <version>1.6.5</version>
144             <scope>test</scope>
145         </dependency>
146         <dependency>
147             <groupId>org.powermock</groupId>
148             <artifactId>powermock-classloading-xstream</artifactId>
149             <version>1.6.5</version>
150             <scope>test</scope>
151         </dependency>
152
153
154     </dependencies>
155
156     <build>
157         <plugins>
158             <plugin>
159                 <groupId>org.apache.maven.plugins</groupId>
160                 <artifactId>maven-jar-plugin</artifactId>
161                 <configuration>
162                     <archive>
163                         <manifest>
164                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
165                         </manifest>
166                     </archive>
167                 </configuration>
168             </plugin>
169             <plugin>
170                 <groupId>org.apache.maven.plugins</groupId>
171                 <artifactId>maven-shade-plugin</artifactId>
172                 <configuration>
173                     <createDependencyReducedPom>true</createDependencyReducedPom>
174                     <filters>
175                         <filter>
176                             <artifact>*:*</artifact>
177                             <excludes>
178                                 <exclude>META-INF/*.SF</exclude>
179                                 <exclude>META-INF/*.DSA</exclude>
180                                 <exclude>META-INF/*.RSA</exclude>
181                             </excludes>
182                         </filter>
183                     </filters>
184                 </configuration>
185                 <executions>
186                     <execution>
187                         <phase>package</phase>
188                         <goals>
189                             <goal>shade</goal>
190                         </goals>
191                         <configuration>
192                             <transformers>
193                                 <transformer
194                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
195                                 <transformer
196                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
197                                     <mainClass>org.openo.holmes.engine.EngineDActiveApp
198                                     </mainClass>
199                                 </transformer>
200                             </transformers>
201                         </configuration>
202                     </execution>
203                 </executions>
204             </plugin>
205
206         </plugins>
207         <resources>
208             <resource>
209                 <directory>src/main/java</directory>
210                 <includes>
211                     <include>**/*.properties</include>
212                 </includes>
213             </resource>
214             <resource>
215                 <directory>src/main/resources</directory>
216             </resource>
217         </resources>
218     </build>
219 </project>