c3cb95c029dec6b93a1c942da298a58c89ce01cf
[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         </dependency>
77         <dependency>
78             <groupId>io.dropwizard</groupId>
79             <artifactId>dropwizard-db</artifactId>
80             <version>${dropwizard.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>io.dropwizard</groupId>
84             <artifactId>dropwizard-jdbi</artifactId>
85             <version>2.0.0-rc9</version>
86         </dependency>
87         <dependency>
88             <groupId>org.projectlombok</groupId>
89             <artifactId>lombok</artifactId>
90             <version>1.18.4</version>
91         </dependency>
92         <dependency>
93             <groupId>org.antlr</groupId>
94             <artifactId>stringtemplate</artifactId>
95             <version>3.2.1</version>
96         </dependency>
97         <dependency>
98             <groupId>org.javassist</groupId>
99             <artifactId>javassist</artifactId>
100             <version>3.24.1-GA</version>
101         </dependency>
102         <dependency>
103             <groupId>commons-collections</groupId>
104             <artifactId>commons-collections</artifactId>
105             <version>3.2.2</version>
106         </dependency>
107         <dependency>
108             <groupId>net.sf.json-lib</groupId>
109             <artifactId>json-lib</artifactId>
110             <version>2.4</version>
111             <classifier>jdk15</classifier>
112             <exclusions>
113                 <exclusion>
114                     <groupId>commons-collections</groupId>
115                     <artifactId>commons-collections</artifactId>
116                 </exclusion>
117                 <exclusion>
118                     <groupId>commons-beanutils</groupId>
119                     <artifactId>commons-beanutils</artifactId>
120                 </exclusion>
121             </exclusions>
122         </dependency>
123         <dependency>
124             <groupId>org.onap.msb.java-sdk</groupId>
125             <artifactId>msb-java-sdk</artifactId>
126             <version>1.1.1</version>
127             <exclusions>
128                 <exclusion>
129                     <groupId>ch.qos.logback</groupId>
130                     <artifactId>logback-classic</artifactId>
131                 </exclusion>
132                 <exclusion>
133                     <groupId>com.fasterxml.jackson.core</groupId>
134                     <artifactId>jackson-databind</artifactId>
135                 </exclusion>
136                 <exclusion>
137                     <groupId>com.fasterxml.jackson.core</groupId>
138                     <artifactId>jackson-core</artifactId>
139                 </exclusion>
140                 <exclusion>
141                     <groupId>org.slf4j</groupId>
142                     <artifactId>slf4j-api</artifactId>
143                 </exclusion>
144                 <exclusion>
145                     <groupId>org.eclipse.jetty</groupId>
146                     <artifactId>jetty-server</artifactId>
147                 </exclusion>
148                 <exclusion>
149                     <groupId>com.squareup.okhttp3</groupId>
150                     <artifactId>okhttp</artifactId>
151                 </exclusion>
152                 <exclusion>
153                     <groupId>com.squareup.retrofit2</groupId>
154                     <artifactId>retrofit</artifactId>
155                 </exclusion>
156             </exclusions>
157         </dependency>
158         <dependency>
159             <groupId>org.onap.holmes.common</groupId>
160             <artifactId>holmes-actions</artifactId>
161             <version>1.3.0</version>
162             <exclusions>
163                 <exclusion>
164                     <groupId>io.dropwizard</groupId>
165                     <artifactId>dropwizard-db</artifactId>
166                 </exclusion>
167                 <exclusion>
168                     <groupId>io.dropwizard</groupId>
169                     <artifactId>dropwizard-core</artifactId>
170                 </exclusion>
171                 <exclusion>
172                     <groupId>org.glassfish.jersey.containers</groupId>
173                     <artifactId>jersey-container-servlet-core</artifactId>
174                 </exclusion>
175                 <exclusion>
176                     <groupId>org.glassfish.hk2</groupId>
177                     <artifactId>hk2-locator</artifactId>
178                 </exclusion>
179                 <exclusion>
180                     <groupId>io.swagger</groupId>
181                     <artifactId>swagger-jersey2-jaxrs</artifactId>
182                 </exclusion>
183                 <exclusion>
184                     <groupId>org.slf4j</groupId>
185                     <artifactId>slf4j-api</artifactId>
186                 </exclusion>
187             </exclusions>
188         </dependency>
189         <dependency>
190             <groupId>org.drools</groupId>
191             <artifactId>drools-core</artifactId>
192             <version>${drools.version}</version>
193             <exclusions>
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-compiler</artifactId>
203             <version>${drools.version}</version>
204             <exclusions>
205                 <exclusion>
206                     <groupId>org.eclipse.jdt.core.compiler</groupId>
207                     <artifactId>ecj</artifactId>
208                 </exclusion>
209                 <exclusion>
210                     <groupId>org.slf4j</groupId>
211                     <artifactId>slf4j-api</artifactId>
212                 </exclusion>
213                 <exclusion>
214                     <groupId>com.thoughtworks.xstream</groupId>
215                     <artifactId>xstream</artifactId>
216                 </exclusion>
217             </exclusions>
218         </dependency>
219         <dependency>
220             <groupId>org.eclipse.jdt.core.compiler</groupId>
221             <artifactId>ecj</artifactId>
222             <version>4.5.1</version>
223         </dependency>
224         <dependency>
225             <groupId>org.drools</groupId>
226             <artifactId>drools-templates</artifactId>
227             <version>${drools.version}</version>
228         </dependency>
229         <dependency>
230             <groupId>com.squareup.okhttp3</groupId>
231             <artifactId>okhttp</artifactId>
232             <version>3.14.1</version>
233         </dependency>
234         <dependency>
235             <groupId>io.swagger</groupId>
236             <artifactId>swagger-jersey2-jaxrs</artifactId>
237             <version>1.5.3</version>
238             <scope>provided</scope>
239             <exclusions>
240                 <exclusion>
241                     <groupId>com.fasterxml.jackson.core</groupId>
242                     <artifactId>jackson-core</artifactId>
243                 </exclusion>
244                 <exclusion>
245                     <groupId>com.fasterxml.jackson.core</groupId>
246                     <artifactId>jackson-databind</artifactId>
247                 </exclusion>
248                 <exclusion>
249                     <groupId>javax.validation</groupId>
250                     <artifactId>validation-api</artifactId>
251                 </exclusion>
252                 <exclusion>
253                     <groupId>org.glassfish.jersey.containers</groupId>
254                     <artifactId>jersey-container-servlet-core</artifactId>
255                 </exclusion>
256             </exclusions>
257         </dependency>
258         <dependency>
259             <groupId>org.slf4j</groupId>
260             <artifactId>slf4j-api</artifactId>
261             <version>1.7.25</version>
262         </dependency>
263         <dependency>
264             <groupId>com.google.code.gson</groupId>
265             <artifactId>gson</artifactId>
266             <version>2.8.6</version>
267         </dependency>
268         <dependency>
269             <groupId>com.squareup.retrofit2</groupId>
270             <artifactId>retrofit</artifactId>
271             <version>2.5.0</version>
272         </dependency>
273         <dependency>
274             <groupId>com.thoughtworks.xstream</groupId>
275             <artifactId>xstream</artifactId>
276             <version>1.4.10</version>
277         </dependency>
278
279         <!-- Do NOT remove org.reflections:reflections. Otherwise, the docker will fail to start. -->
280         <dependency>
281             <groupId>org.reflections</groupId>
282             <artifactId>reflections</artifactId>
283             <version>0.9.9</version>
284         </dependency>
285
286         <!-- UNIT TEST RELATED DEPENDENCIES -->
287         <dependency>
288             <groupId>org.powermock</groupId>
289             <artifactId>powermock-classloading-xstream</artifactId>
290             <version>${powermock.version}</version>
291             <scope>test</scope>
292         </dependency>
293         <dependency>
294             <groupId>org.hamcrest</groupId>
295             <artifactId>hamcrest-core</artifactId>
296             <version>1.3</version>
297             <scope>test</scope>
298         </dependency>
299         <dependency>
300             <groupId>org.mockito</groupId>
301             <artifactId>mockito-core</artifactId>
302             <version>2.18.0</version>
303             <scope>test</scope>
304         </dependency>
305         <dependency>
306             <groupId>org.powermock</groupId>
307             <artifactId>powermock-core</artifactId>
308             <version>${powermock.version}</version>
309             <scope>test</scope>
310         </dependency>
311         <dependency>
312             <groupId>org.powermock</groupId>
313             <artifactId>powermock-module-junit4</artifactId>
314             <version>${powermock.version}</version>
315             <scope>test</scope>
316         </dependency>
317         <dependency>
318             <groupId>org.powermock</groupId>
319             <artifactId>powermock-module-junit4-rule</artifactId>
320             <version>${powermock.version}</version>
321             <scope>test</scope>
322         </dependency>
323         <dependency>
324             <groupId>org.powermock</groupId>
325             <artifactId>powermock-api-mockito2</artifactId>
326             <version>${powermock.version}</version>
327             <scope>test</scope>
328         </dependency>
329         <dependency>
330             <groupId>org.powermock</groupId>
331             <artifactId>powermock-api-easymock</artifactId>
332             <version>${powermock.version}</version>
333             <scope>test</scope>
334         </dependency>
335         <dependency>
336             <groupId>org.easymock</groupId>
337             <artifactId>easymock</artifactId>
338             <version>4.2</version>
339             <scope>test</scope>
340         </dependency>
341         <dependency>
342             <groupId>junit</groupId>
343             <artifactId>junit</artifactId>
344             <version>4.8.2</version>
345             <scope>test</scope>
346         </dependency>
347     </dependencies>
348
349     <build>
350         <plugins>
351             <plugin>
352                 <groupId>org.apache.maven.plugins</groupId>
353                 <artifactId>maven-compiler-plugin</artifactId>
354                 <version>3.8.0</version>
355                 <configuration>
356                     <source>1.8</source>
357                     <target>1.8</target>
358                     <release>11</release>
359                 </configuration>
360             </plugin>
361             <plugin>
362                 <groupId>org.jacoco</groupId>
363                 <artifactId>jacoco-maven-plugin</artifactId>
364                 <version>${jacoco.version}</version>
365                 <executions>
366                     <execution>
367                         <id>prepare-agent</id>
368                         <goals>
369                             <goal>prepare-agent</goal>
370                         </goals>
371                     </execution>
372                     <execution>
373                         <id>report</id>
374                         <goals>
375                             <goal>report</goal>
376                         </goals>
377                         <configuration>
378                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
379                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
380                         </configuration>
381                     </execution>
382                 </executions>
383             </plugin>
384         </plugins>
385     </build>
386 </project>
387