Modify Unit Tests
[usecase-ui/server.git] / server / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18     <modelVersion>4.0.0</modelVersion>
19     <parent>
20         <groupId>org.onap.usecase-ui.server</groupId>
21         <artifactId>usecase-ui-server-parent</artifactId>
22         <version>13.0.0-SNAPSHOT</version>
23     </parent>
24
25     <artifactId>usecase-ui-server</artifactId>
26     <packaging>jar</packaging>
27     <name>usecase-ui-server</name>
28     <description>source code for usecase-ui server</description>
29
30     <properties>
31         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
33         <java.version>17</java.version>
34         <sonar.language>java</sonar.language>
35         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
36         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
37         </sonar.coverage.jacoco.xmlReportPaths>
38         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
39         <sonar.projectVersion>${project.version}</sonar.projectVersion>
40         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
41     </properties>
42
43     <dependencyManagement>
44         <dependencies>
45             <dependency>
46                 <groupId>org.springframework</groupId>
47                 <artifactId>spring-framework-bom</artifactId>
48                 <version>6.0.12</version>
49                 <type>pom</type>
50                 <scope>import</scope>
51             </dependency>
52             <dependency>
53                 <!-- Import dependency management from Spring Boot -->
54                 <groupId>org.springframework.boot</groupId>
55                 <artifactId>spring-boot-dependencies</artifactId>
56                 <version>3.0.11</version>
57                 <type>pom</type>
58                 <scope>import</scope>
59             </dependency>
60         </dependencies>
61     </dependencyManagement>
62
63     <dependencies>
64         <dependency>
65             <groupId>org.springframework.boot</groupId>
66             <artifactId>spring-boot-starter-actuator</artifactId>
67             <exclusions>
68                 <exclusion>
69                     <groupId>org.yaml</groupId>
70                     <artifactId>snakeyaml</artifactId>
71                 </exclusion>
72             </exclusions>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-starter-data-jpa</artifactId>
77             <exclusions>
78                 <exclusion>
79                     <groupId>org.apache.tomcat</groupId>
80                     <artifactId>tomcat-jdbc</artifactId>
81                 </exclusion>
82             </exclusions>
83         </dependency>
84         <dependency>
85             <groupId>org.postgresql</groupId>
86             <artifactId>postgresql</artifactId>
87             <version>42.6.0</version>
88         </dependency>
89         <dependency>
90             <groupId>org.springframework.boot</groupId>
91             <artifactId>spring-boot-starter-data-rest</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.projectlombok</groupId>
95             <artifactId>lombok</artifactId>
96             <version>1.18.30</version>
97             <optional>true</optional>
98         </dependency>
99
100         <dependency>
101             <groupId>ch.qos.logback</groupId>
102             <artifactId>logback-classic</artifactId>
103         </dependency>
104
105         <dependency>
106             <groupId>com.squareup.okio</groupId>
107             <artifactId>okio</artifactId>
108             <version>3.5.0</version>
109         </dependency>
110         <dependency>
111             <groupId>com.google.guava</groupId>
112             <artifactId>guava</artifactId>
113             <version>32.1.2-jre</version>
114         </dependency>
115         <dependency>
116             <groupId>com.squareup.okhttp3</groupId>
117             <artifactId>okhttp</artifactId>
118             <version>4.9.3</version>
119             <exclusions>
120                 <exclusion>
121                     <artifactId>kotlin-stdlib</artifactId>
122                     <groupId>org.jetbrains.kotlin</groupId>
123                 </exclusion>
124             </exclusions>
125         </dependency>
126         <dependency>
127             <groupId>commons-beanutils</groupId>
128             <artifactId>commons-beanutils</artifactId>
129             <version>1.9.4</version>
130             <exclusions>
131                 <exclusion>
132                     <groupId>commons-logging</groupId>
133                     <artifactId>commons-logging</artifactId>
134                 </exclusion>
135             </exclusions>
136         </dependency>
137
138         <!-- jackson-databind -->
139         <dependency>
140             <groupId>com.fasterxml.jackson.core</groupId>
141             <artifactId>jackson-databind</artifactId>
142             <version>2.15.2</version>
143         </dependency>
144
145         <!-- jackson-core -->
146         <dependency>
147             <groupId>com.fasterxml.jackson.core</groupId>
148             <artifactId>jackson-core</artifactId>
149             <version>2.15.2</version>
150         </dependency>
151
152         <!-- jackson-annotations -->
153         <dependency>
154             <groupId>com.fasterxml.jackson.core</groupId>
155             <artifactId>jackson-annotations</artifactId>
156             <version>2.15.2</version>
157         </dependency>
158
159         <dependency>
160             <groupId>com.squareup.retrofit2</groupId>
161             <artifactId>retrofit</artifactId>
162             <version>2.7.2</version>
163             <exclusions>
164                 <exclusion>
165                     <artifactId>okhttp</artifactId>
166                     <groupId>com.squareup.okhttp3</groupId>
167                 </exclusion>
168             </exclusions>
169         </dependency>
170         <dependency>
171             <groupId>com.squareup.retrofit2</groupId>
172             <artifactId>converter-jackson</artifactId>
173             <version>2.3.0</version>
174         </dependency>
175         <dependency>
176             <groupId>com.google.code.gson</groupId>
177             <artifactId>gson</artifactId>
178             <version>2.8.9</version>
179         </dependency>
180         <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
181         <dependency>
182             <groupId>com.alibaba</groupId>
183             <artifactId>fastjson</artifactId>
184             <version>2.0.6</version>
185         </dependency>
186
187         <dependency>
188             <groupId>org.openecomp.sdc.jtosca</groupId>
189             <artifactId>jtosca</artifactId>
190             <version>1.1.1</version>
191         </dependency>
192
193         <dependency>
194             <groupId>org.onap.msb.java-sdk</groupId>
195             <artifactId>msb-java-sdk</artifactId>
196             <version>1.0.0</version>
197         </dependency>
198         <dependency>
199             <groupId>org.mockito</groupId>
200             <artifactId>mockito-inline</artifactId>
201             <scope>compile</scope>
202         </dependency>
203         <dependency>
204             <groupId>org.powermock</groupId>
205             <artifactId>powermock-api-mockito2</artifactId>
206             <version>2.0.2</version>
207             <exclusions>
208                 <exclusion>
209                     <groupId>org.mockito</groupId>
210                     <artifactId>mockito-core</artifactId>
211                 </exclusion>
212             </exclusions>
213         </dependency>
214
215         <dependency>
216             <groupId>junit</groupId>
217             <artifactId>junit</artifactId>
218             <version>4.13.2</version>
219         </dependency>
220         <dependency>
221             <groupId>com.sun.activation</groupId>
222             <artifactId>jakarta.activation</artifactId>
223             <version>2.0.0</version>
224         </dependency>
225         <dependency>
226             <groupId>commons-io</groupId>
227             <artifactId>commons-io</artifactId>
228             <version>2.8.0</version>
229         </dependency>
230         <dependency>
231             <groupId>org.apache.ant</groupId>
232             <artifactId>ant</artifactId>
233             <version>1.10.12</version>
234             <exclusions>
235                 <exclusion>
236                     <groupId>com.sun</groupId>
237                     <artifactId>tools</artifactId>
238                 </exclusion>
239             </exclusions>
240         </dependency>
241
242     </dependencies>
243
244     <build>
245         <plugins>
246             <plugin>
247                 <groupId>org.codehaus.mojo</groupId>
248                 <artifactId>versions-maven-plugin</artifactId>
249                 <version>1.3.1</version>
250             </plugin>
251             <plugin>
252                 <groupId>org.springframework.boot</groupId>
253                 <artifactId>spring-boot-maven-plugin</artifactId>
254                 <version>3.0.11</version>
255                 <configuration>
256                     <executable>true</executable>
257                 </configuration>
258                 <executions>
259                     <execution>
260                         <goals>
261                             <goal>repackage</goal>
262                         </goals>
263                     </execution>
264                 </executions>
265             </plugin>
266             <plugin>
267                 <groupId>org.apache.maven.plugins</groupId>
268                 <artifactId>maven-compiler-plugin</artifactId>
269                 <version>3.11.0</version>
270                 <configuration>
271                     <source>17</source>
272                     <target>17</target>
273                 </configuration>
274             </plugin>
275             <plugin>
276                 <groupId>org.apache.maven.plugins</groupId>
277                 <artifactId>maven-antrun-plugin</artifactId>
278                 <version>3.1.0</version>
279             </plugin>
280             <plugin>
281                 <groupId>org.apache.maven.plugins</groupId>
282                 <artifactId>maven-deploy-plugin</artifactId>
283                 <version>3.0.0</version>
284             </plugin>
285             <plugin>
286                 <groupId>org.apache.maven.plugins</groupId>
287                 <artifactId>maven-surefire-plugin</artifactId>
288                 <version>2.22.2</version>
289                 <configuration>
290                     <testFailureIgnore>true</testFailureIgnore>
291                     <includes>
292                         <include>**/*Spec*</include>
293                         <include>**/Test*.java</include>
294                         <include>**/*Test.java</include>
295                         <include>**/*TestCase.java</include>
296                         <include>**/Test*.scala</include>
297                         <include>**/*Test.scala</include>
298                         <include>**/*TestCase.scala</include>
299                     </includes>
300                 </configuration>
301             </plugin>
302             <plugin>
303                 <groupId>org.jacoco</groupId>
304                 <artifactId>jacoco-maven-plugin</artifactId>
305                 <version>0.8.5</version>
306                 <executions>
307                     <execution>
308                         <id>prepare-agent</id>
309                         <goals>
310                             <goal>prepare-agent</goal>
311                         </goals>
312                     </execution>
313                     <execution>
314                         <id>report</id>
315                         <goals>
316                             <goal>report</goal>
317                         </goals>
318                         <configuration>
319                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
320                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
321                         </configuration>
322                     </execution>
323                 </executions>
324             </plugin>
325         </plugins>
326     </build>
327
328     <repositories>
329         <repository>
330             <id>spring-milestones</id>
331             <name>Spring Milestones</name>
332             <url>https://repo.spring.io/milestone</url>
333             <snapshots>
334                 <enabled>false</enabled>
335             </snapshots>
336         </repository>
337     </repositories>
338
339     <pluginRepositories>
340         <pluginRepository>
341             <id>spring-milestones</id>
342             <name>Spring Milestones</name>
343             <url>https://repo.spring.io/milestone</url>
344             <snapshots>
345                 <enabled>false</enabled>
346             </snapshots>
347         </pluginRepository>
348     </pluginRepositories>
349 </project>