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