6be5a67c87818823e9a85f94108a524bf1193abf
[holmes/engine-management.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3   ~ Copyright 2017-2020 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     <modelVersion>4.0.0</modelVersion>
21     <parent>
22         <groupId>org.onap.oparent</groupId>
23         <artifactId>oparent</artifactId>
24         <version>3.0.0</version>
25     </parent>
26
27     <groupId>org.onap.holmes.engine-management</groupId>
28     <artifactId>holmes-engine-parent</artifactId>
29     <version>1.2.6-SNAPSHOT</version>
30     <packaging>pom</packaging>
31     <name>holmes-engine-management</name>
32     <modules>
33         <module>engine-d</module>
34         <module>engine-d-standalone</module>
35     </modules>
36
37     <properties>
38         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40         <maven.test.failure.ignore>false</maven.test.failure.ignore>
41
42         <finalName>${project.artifactId}-${project.version}</finalName>
43         <release.dir>${basedir}/target</release.dir>
44         <bundle.name>${project.artifactId}-${project.version}</bundle.name>
45
46         <drools.version>6.5.0.Final</drools.version>
47         <dropwizard.version>2.0.9</dropwizard.version>
48         <powermock.version>2.0.7</powermock.version>
49         <jacoco.version>0.8.5</jacoco.version>
50
51         <packagename>onap-holmes-engine-d</packagename>
52         <linux64id>linux64</linux64id>
53         <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
54         <version.output>target/version</version.output>
55
56         <sonar.coverage.jacoco.xmlReportPaths>
57             ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
58         </sonar.coverage.jacoco.xmlReportPaths>
59     </properties>
60
61     <dependencies>
62         <dependency>
63             <groupId>ch.qos.logback</groupId>
64             <artifactId>logback-classic</artifactId>
65             <version>1.2.3</version>
66         </dependency>
67         <dependency>
68             <groupId>org.postgresql</groupId>
69             <artifactId>postgresql</artifactId>
70             <version>42.2.13</version>
71         </dependency>
72         <dependency>
73             <groupId>io.dropwizard</groupId>
74             <artifactId>dropwizard-core</artifactId>
75             <version>${dropwizard.version}</version>
76             <exclusions>
77                 <exclusion>
78                     <groupId>org.hibernate.validator</groupId>
79                     <artifactId>hibernate-validator</artifactId>
80                 </exclusion>
81             </exclusions>
82         </dependency>
83         <dependency>
84             <groupId>org.hibernate.validator</groupId>
85             <artifactId>hibernate-validator</artifactId>
86             <version>6.1.5.Final</version>
87         </dependency>
88         <dependency>
89             <groupId>io.dropwizard</groupId>
90             <artifactId>dropwizard-db</artifactId>
91             <version>${dropwizard.version}</version>
92         </dependency>
93         <dependency>
94             <groupId>io.dropwizard</groupId>
95             <artifactId>dropwizard-jdbi</artifactId>
96             <version>2.0.0-rc9</version>
97         </dependency>
98         <dependency>
99             <groupId>org.projectlombok</groupId>
100             <artifactId>lombok</artifactId>
101             <version>1.18.4</version>
102         </dependency>
103         <dependency>
104             <groupId>org.antlr</groupId>
105             <artifactId>stringtemplate</artifactId>
106             <version>3.2.1</version>
107         </dependency>
108         <dependency>
109             <groupId>org.javassist</groupId>
110             <artifactId>javassist</artifactId>
111             <version>3.24.1-GA</version>
112         </dependency>
113         <dependency>
114             <groupId>commons-collections</groupId>
115             <artifactId>commons-collections</artifactId>
116             <version>3.2.2</version>
117         </dependency>
118         <dependency>
119             <groupId>net.sf.json-lib</groupId>
120             <artifactId>json-lib</artifactId>
121             <version>2.4</version>
122             <classifier>jdk15</classifier>
123             <exclusions>
124                 <exclusion>
125                     <groupId>commons-collections</groupId>
126                     <artifactId>commons-collections</artifactId>
127                 </exclusion>
128                 <exclusion>
129                     <groupId>commons-beanutils</groupId>
130                     <artifactId>commons-beanutils</artifactId>
131                 </exclusion>
132             </exclusions>
133         </dependency>
134         <dependency>
135             <groupId>org.onap.msb.java-sdk</groupId>
136             <artifactId>msb-java-sdk</artifactId>
137             <version>1.1.1</version>
138             <exclusions>
139                 <exclusion>
140                     <groupId>ch.qos.logback</groupId>
141                     <artifactId>logback-classic</artifactId>
142                 </exclusion>
143                 <exclusion>
144                     <groupId>com.fasterxml.jackson.core</groupId>
145                     <artifactId>jackson-databind</artifactId>
146                 </exclusion>
147                 <exclusion>
148                     <groupId>com.fasterxml.jackson.core</groupId>
149                     <artifactId>jackson-core</artifactId>
150                 </exclusion>
151                 <exclusion>
152                     <groupId>org.slf4j</groupId>
153                     <artifactId>slf4j-api</artifactId>
154                 </exclusion>
155                 <exclusion>
156                     <groupId>org.eclipse.jetty</groupId>
157                     <artifactId>jetty-server</artifactId>
158                 </exclusion>
159                 <exclusion>
160                     <groupId>com.squareup.okhttp3</groupId>
161                     <artifactId>okhttp</artifactId>
162                 </exclusion>
163                 <exclusion>
164                     <groupId>com.squareup.retrofit2</groupId>
165                     <artifactId>retrofit</artifactId>
166                 </exclusion>
167             </exclusions>
168         </dependency>
169         <dependency>
170             <groupId>org.onap.holmes.common</groupId>
171             <artifactId>holmes-actions</artifactId>
172             <version>1.3.0</version>
173             <exclusions>
174                 <exclusion>
175                     <groupId>io.dropwizard</groupId>
176                     <artifactId>dropwizard-db</artifactId>
177                 </exclusion>
178                 <exclusion>
179                     <groupId>io.dropwizard</groupId>
180                     <artifactId>dropwizard-core</artifactId>
181                 </exclusion>
182                 <exclusion>
183                     <groupId>org.glassfish.jersey.containers</groupId>
184                     <artifactId>jersey-container-servlet-core</artifactId>
185                 </exclusion>
186                 <exclusion>
187                     <groupId>org.glassfish.hk2</groupId>
188                     <artifactId>hk2-locator</artifactId>
189                 </exclusion>
190                 <exclusion>
191                     <groupId>io.swagger</groupId>
192                     <artifactId>swagger-jersey2-jaxrs</artifactId>
193                 </exclusion>
194                 <exclusion>
195                     <groupId>org.slf4j</groupId>
196                     <artifactId>slf4j-api</artifactId>
197                 </exclusion>
198             </exclusions>
199         </dependency>
200         <dependency>
201             <groupId>org.drools</groupId>
202             <artifactId>drools-core</artifactId>
203             <version>${drools.version}</version>
204             <exclusions>
205                 <exclusion>
206                     <groupId>org.slf4j</groupId>
207                     <artifactId>slf4j-api</artifactId>
208                 </exclusion>
209             </exclusions>
210         </dependency>
211         <dependency>
212             <groupId>org.drools</groupId>
213             <artifactId>drools-compiler</artifactId>
214             <version>${drools.version}</version>
215             <exclusions>
216                 <exclusion>
217                     <groupId>org.eclipse.jdt.core.compiler</groupId>
218                     <artifactId>ecj</artifactId>
219                 </exclusion>
220                 <exclusion>
221                     <groupId>org.slf4j</groupId>
222                     <artifactId>slf4j-api</artifactId>
223                 </exclusion>
224                 <exclusion>
225                     <groupId>com.thoughtworks.xstream</groupId>
226                     <artifactId>xstream</artifactId>
227                 </exclusion>
228             </exclusions>
229         </dependency>
230         <dependency>
231             <groupId>org.eclipse.jdt.core.compiler</groupId>
232             <artifactId>ecj</artifactId>
233             <version>4.5.1</version>
234         </dependency>
235         <dependency>
236             <groupId>org.drools</groupId>
237             <artifactId>drools-templates</artifactId>
238             <version>${drools.version}</version>
239         </dependency>
240         <dependency>
241             <groupId>com.squareup.okhttp3</groupId>
242             <artifactId>okhttp</artifactId>
243             <version>3.14.1</version>
244         </dependency>
245         <dependency>
246             <groupId>io.swagger</groupId>
247             <artifactId>swagger-jersey2-jaxrs</artifactId>
248             <version>1.5.3</version>
249             <scope>provided</scope>
250             <exclusions>
251                 <exclusion>
252                     <groupId>com.fasterxml.jackson.core</groupId>
253                     <artifactId>jackson-core</artifactId>
254                 </exclusion>
255                 <exclusion>
256                     <groupId>com.fasterxml.jackson.core</groupId>
257                     <artifactId>jackson-databind</artifactId>
258                 </exclusion>
259                 <exclusion>
260                     <groupId>javax.validation</groupId>
261                     <artifactId>validation-api</artifactId>
262                 </exclusion>
263                 <exclusion>
264                     <groupId>org.glassfish.jersey.containers</groupId>
265                     <artifactId>jersey-container-servlet-core</artifactId>
266                 </exclusion>
267             </exclusions>
268         </dependency>
269         <dependency>
270             <groupId>org.slf4j</groupId>
271             <artifactId>slf4j-api</artifactId>
272             <version>1.7.25</version>
273         </dependency>
274         <dependency>
275             <groupId>com.google.code.gson</groupId>
276             <artifactId>gson</artifactId>
277             <version>2.8.6</version>
278         </dependency>
279         <dependency>
280             <groupId>com.squareup.retrofit2</groupId>
281             <artifactId>retrofit</artifactId>
282             <version>2.5.0</version>
283         </dependency>
284         <dependency>
285             <groupId>com.thoughtworks.xstream</groupId>
286             <artifactId>xstream</artifactId>
287             <version>1.4.11</version>
288         </dependency>
289
290         <!-- Do NOT remove org.reflections:reflections. Otherwise, the docker will fail to start. -->
291         <dependency>
292             <groupId>org.reflections</groupId>
293             <artifactId>reflections</artifactId>
294             <version>0.9.9</version>
295         </dependency>
296
297         <!-- UNIT TEST RELATED DEPENDENCIES -->
298         <dependency>
299             <groupId>org.powermock</groupId>
300             <artifactId>powermock-classloading-xstream</artifactId>
301             <version>${powermock.version}</version>
302             <scope>test</scope>
303         </dependency>
304         <dependency>
305             <groupId>org.hamcrest</groupId>
306             <artifactId>hamcrest-core</artifactId>
307             <version>1.3</version>
308             <scope>test</scope>
309         </dependency>
310         <dependency>
311             <groupId>org.mockito</groupId>
312             <artifactId>mockito-core</artifactId>
313             <version>2.18.0</version>
314             <scope>test</scope>
315         </dependency>
316         <dependency>
317             <groupId>org.powermock</groupId>
318             <artifactId>powermock-core</artifactId>
319             <version>${powermock.version}</version>
320             <scope>test</scope>
321         </dependency>
322         <dependency>
323             <groupId>org.powermock</groupId>
324             <artifactId>powermock-module-junit4</artifactId>
325             <version>${powermock.version}</version>
326             <scope>test</scope>
327         </dependency>
328         <dependency>
329             <groupId>org.powermock</groupId>
330             <artifactId>powermock-module-junit4-rule</artifactId>
331             <version>${powermock.version}</version>
332             <scope>test</scope>
333         </dependency>
334         <dependency>
335             <groupId>org.powermock</groupId>
336             <artifactId>powermock-api-mockito2</artifactId>
337             <version>${powermock.version}</version>
338             <scope>test</scope>
339         </dependency>
340         <dependency>
341             <groupId>org.powermock</groupId>
342             <artifactId>powermock-api-easymock</artifactId>
343             <version>${powermock.version}</version>
344             <scope>test</scope>
345         </dependency>
346         <dependency>
347             <groupId>org.easymock</groupId>
348             <artifactId>easymock</artifactId>
349             <version>4.2</version>
350             <scope>test</scope>
351         </dependency>
352         <dependency>
353             <groupId>junit</groupId>
354             <artifactId>junit</artifactId>
355             <version>4.8.2</version>
356             <scope>test</scope>
357         </dependency>
358     </dependencies>
359
360     <build>
361         <plugins>
362             <plugin>
363                 <groupId>org.apache.maven.plugins</groupId>
364                 <artifactId>maven-compiler-plugin</artifactId>
365                 <version>3.8.0</version>
366                 <configuration>
367                     <source>1.8</source>
368                     <target>1.8</target>
369                     <release>11</release>
370                 </configuration>
371             </plugin>
372             <plugin>
373                 <groupId>org.jacoco</groupId>
374                 <artifactId>jacoco-maven-plugin</artifactId>
375                 <version>${jacoco.version}</version>
376                 <executions>
377                     <execution>
378                         <id>prepare-agent</id>
379                         <goals>
380                             <goal>prepare-agent</goal>
381                         </goals>
382                     </execution>
383                     <execution>
384                         <id>report</id>
385                         <goals>
386                             <goal>report</goal>
387                         </goals>
388                         <configuration>
389                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
390                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
391                         </configuration>
392                     </execution>
393                 </executions>
394             </plugin>
395         </plugins>
396     </build>
397 </project>
398