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