Fix broken sdc-workflow-designer-be container
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-be / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
6     <modelVersion>4.0.0</modelVersion>
7
8     <artifactId>sdc-workflow-designer-be</artifactId>
9
10     <parent>
11         <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
12         <artifactId>sdc-workflow-designer-parent</artifactId>
13         <version>1.10.0-SNAPSHOT</version>
14     </parent>
15
16     <properties>
17         <spring.boot.version>2.1.18.RELEASE</spring.boot.version>
18         <org.springframework.version>5.1.19.RELEASE</org.springframework.version>
19         <mapstruct.version>1.3.1.Final</mapstruct.version>
20         <lombok.version>1.18.0</lombok.version>
21         <springfox.version>3.0.0</springfox.version>
22         <jaxb.api.version>2.3.0</jaxb.api.version>
23         <org.glassfish.version>4.0.2</org.glassfish.version>
24         <mockito.version>3.7.7</mockito.version>
25         <springframework.plugin.version>2.0.0.RELEASE</springframework.plugin.version>
26     </properties>
27
28     <dependencyManagement>
29         <dependencies>
30             <dependency>
31                 <groupId>org.mockito</groupId>
32                 <artifactId>mockito-core</artifactId>
33                 <version>${mockito.version}</version>
34                 <scope>test</scope>
35             </dependency>
36             <dependency>
37                 <groupId>org.springframework.boot</groupId>
38                 <artifactId>spring-boot-dependencies</artifactId>
39                 <version>${spring.boot.version}</version>
40                 <type>pom</type>
41                 <scope>import</scope>
42             </dependency>
43         </dependencies>
44     </dependencyManagement>
45
46     <dependencies>
47         <dependency>
48             <groupId>org.glassfish</groupId>
49             <artifactId>jakarta.el</artifactId>
50             <version>${org.glassfish.version}</version>
51         </dependency>
52         <dependency>
53             <groupId>org.springframework</groupId>
54             <artifactId>spring-web</artifactId>
55             <version>${org.springframework.version}</version>
56         </dependency>
57         <dependency>
58             <groupId>org.springframework.boot</groupId>
59             <artifactId>spring-boot-starter-web</artifactId>
60             <exclusions>
61                 <exclusion>
62                     <groupId>org.springframework.boot</groupId>
63                     <artifactId>spring-boot-starter-tomcat</artifactId>
64                 </exclusion>
65                 <exclusion>
66                     <groupId>org.springframework</groupId>
67                     <artifactId>spring-web</artifactId>
68                 </exclusion>
69             </exclusions>
70         </dependency>
71         <dependency>
72             <groupId>org.springframework.boot</groupId>
73             <artifactId>spring-boot-starter-jetty</artifactId>
74             <exclusions>
75                 <exclusion>
76                     <groupId>org.glassfish</groupId>
77                     <artifactId>jakarta.el</artifactId>
78                 </exclusion>
79             </exclusions>
80         </dependency>
81         <dependency>
82             <groupId>org.springframework.boot</groupId>
83             <artifactId>spring-boot-starter-validation</artifactId>
84             <exclusions>
85                 <exclusion>
86                     <groupId>org.glassfish</groupId>
87                     <artifactId>jakarta.el</artifactId>
88                 </exclusion>
89             </exclusions>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework.boot</groupId>
93             <artifactId>spring-boot-starter-data-cassandra</artifactId>
94             <exclusions>
95                 <exclusion>
96                     <artifactId>HdrHistogram</artifactId>
97                     <groupId>org.hdrhistogram</groupId>
98                 </exclusion>
99                 <exclusion>
100                     <artifactId>asm</artifactId>
101                     <groupId>org.ow2.asm</groupId>
102                 </exclusion>
103                 <exclusion>
104                     <artifactId>asm-analysis</artifactId>
105                     <groupId>org.ow2.asm</groupId>
106                 </exclusion>
107                 <exclusion>
108                     <artifactId>asm-commons</artifactId>
109                     <groupId>org.ow2.asm</groupId>
110                 </exclusion>
111                 <exclusion>
112                     <artifactId>asm-tree</artifactId>
113                     <groupId>org.ow2.asm</groupId>
114                 </exclusion>
115                 <exclusion>
116                     <groupId>com.github.jnr</groupId>
117                     <artifactId>jnr-posix</artifactId>
118                 </exclusion>
119                 <exclusion>
120                     <groupId>io.netty</groupId>
121                     <artifactId>netty-handler</artifactId>
122                 </exclusion>
123             </exclusions>
124         </dependency>
125         <dependency>
126             <groupId>io.netty</groupId>
127             <artifactId>netty-handler</artifactId>
128             <version>4.1.75.Final</version>
129         </dependency>
130         <dependency>
131             <groupId>org.springframework.boot</groupId>
132             <artifactId>spring-boot-devtools</artifactId>
133             <scope>runtime</scope>
134         </dependency>
135         <dependency>
136             <groupId>org.springframework.boot</groupId>
137             <artifactId>spring-boot-starter-test</artifactId>
138             <scope>test</scope>
139             <exclusions>
140                 <exclusion>
141                     <artifactId>asm</artifactId>
142                     <groupId>org.ow2.asm</groupId>
143                 </exclusion>
144             </exclusions>
145         </dependency>
146         <dependency>
147             <groupId>io.springfox</groupId>
148             <artifactId>springfox-boot-starter</artifactId>
149             <version>${springfox.version}</version>
150             <exclusions>
151                 <exclusion>
152                     <groupId>org.springframework.plugin</groupId>
153                     <artifactId>spring-plugin-core</artifactId>
154                 </exclusion>
155                 <exclusion>
156                     <groupId>org.springframework.plugin</groupId>
157                     <artifactId>spring-plugin-metadata</artifactId>
158                 </exclusion>
159             </exclusions>
160         </dependency>
161         <dependency>
162             <groupId>org.springframework.plugin</groupId>
163             <artifactId>spring-plugin-core</artifactId>
164             <version>${springframework.plugin.version}</version>
165         </dependency>
166         <dependency>
167             <groupId>org.springframework.plugin</groupId>
168             <artifactId>spring-plugin-metadata</artifactId>
169             <version>${springframework.plugin.version}</version>
170         </dependency>
171         <dependency>
172             <groupId>org.openecomp.sdc</groupId>
173             <artifactId>openecomp-sdc-logging-api</artifactId>
174             <version>${onap.version}</version>
175         </dependency>
176         <dependency>
177             <groupId>org.openecomp.sdc</groupId>
178             <artifactId>openecomp-sdc-logging-spring</artifactId>
179             <version>${onap.version}</version>
180         </dependency>
181         <dependency>
182             <groupId>org.openecomp.sdc</groupId>
183             <artifactId>openecomp-sdc-logging-core</artifactId>
184             <version>${onap.version}</version>
185             <scope>runtime</scope>
186         </dependency>
187         <dependency>
188             <groupId>ch.qos.logback</groupId>
189             <artifactId>logback-classic</artifactId>
190             <scope>runtime</scope>
191         </dependency>
192         <dependency>
193             <groupId>org.apache.httpcomponents</groupId>
194             <artifactId>httpclient</artifactId>
195             <version>4.5.13</version>
196             <exclusions>
197                 <exclusion>
198                     <artifactId>commons-codec</artifactId>
199                     <groupId>commons-codec</groupId>
200                 </exclusion>
201             </exclusions>
202         </dependency>
203         <dependency>
204             <groupId>org.mapstruct</groupId>
205             <artifactId>mapstruct</artifactId>
206             <version>${mapstruct.version}</version>
207         </dependency>
208         <dependency>
209             <groupId>org.mapstruct</groupId>
210             <artifactId>mapstruct-processor</artifactId>
211             <version>${mapstruct.version}</version>
212             <scope>provided</scope>
213         </dependency>
214         <dependency>
215             <groupId>org.projectlombok</groupId>
216             <artifactId>lombok</artifactId>
217             <version>${lombok.version}</version>
218             <scope>provided</scope>
219         </dependency>
220         <dependency>
221             <groupId>org.springframework.boot</groupId>
222             <artifactId>spring-boot-starter-actuator</artifactId>
223             <scope>provided</scope>
224         </dependency>
225         <dependency>
226             <groupId>org.apache.commons</groupId>
227             <artifactId>commons-text</artifactId>
228             <version>1.3</version>
229         </dependency>
230         <dependency>
231             <groupId>commons-io</groupId>
232             <artifactId>commons-io</artifactId>
233             <version>2.8.0</version>
234         </dependency>
235         <dependency>
236             <groupId>commons-codec</groupId>
237             <artifactId>commons-codec</artifactId>
238             <version>1.15</version>
239         </dependency>
240         <dependency>
241             <groupId>org.onap.sdc.sdc-be-common</groupId>
242             <artifactId>session-lib</artifactId>
243             <version>1.6.0</version>
244             <exclusions>
245                 <exclusion>
246                     <artifactId>objenesis</artifactId>
247                     <groupId>org.objenesis</groupId>
248                 </exclusion>
249             </exclusions>
250         </dependency>
251         <dependency>
252             <groupId>org.onap.sdc.sdc-be-common</groupId>
253             <artifactId>versioning-lib</artifactId>
254             <version>1.6.0</version>
255             <exclusions>
256                 <exclusion>
257                     <groupId>org.springframework.boot</groupId>
258                     <artifactId>spring-boot-starter-data-cassandra</artifactId>
259                 </exclusion>
260             </exclusions>
261         </dependency>
262         <dependency>
263             <groupId>org.onap.sdc.sdc-be-common</groupId>
264             <artifactId>zusammen-lib</artifactId>
265             <version>1.6.0</version>
266             <exclusions>
267                 <exclusion>
268                     <groupId>org.springframework.boot</groupId>
269                     <artifactId>spring-boot-starter-data-cassandra</artifactId>
270                 </exclusion>
271                 <exclusion>
272                     <artifactId>jnr-posix</artifactId>
273                     <groupId>com.github.jnr</groupId>
274                 </exclusion>
275                 <exclusion>
276                     <artifactId>jnr-ffi</artifactId>
277                     <groupId>com.github.jnr</groupId>
278                 </exclusion>
279                 <exclusion>
280                     <artifactId>zusammen-sdk</artifactId>
281                     <groupId>com.amdocs.zusammen</groupId>
282                 </exclusion>
283                 <exclusion>
284                     <artifactId>zusammen-commons-configuration</artifactId>
285                     <groupId>com.amdocs.zusammen</groupId>
286                 </exclusion>
287                 <exclusion>
288                     <groupId>io.netty</groupId>
289                     <artifactId>netty-handler</artifactId>
290                 </exclusion>
291             </exclusions>
292         </dependency>
293         <dependency>
294             <groupId>javax.xml.bind</groupId>
295             <artifactId>jaxb-api</artifactId>
296             <version>${jaxb.api.version}</version>
297         </dependency>
298     </dependencies>
299
300     <build>
301         <plugins>
302             <plugin>
303                 <groupId>org.apache.maven.plugins</groupId>
304                 <artifactId>maven-compiler-plugin</artifactId>
305                 <version>3.8.1</version>
306             </plugin>
307             <plugin>
308                 <groupId>org.springframework.boot</groupId>
309                 <artifactId>spring-boot-maven-plugin</artifactId>
310                 <version>${spring.boot.version}</version>
311                 <executions>
312                     <execution>
313                         <goals>
314                             <goal>repackage</goal>
315                         </goals>
316                     </execution>
317                 </executions>
318             </plugin>
319         </plugins>
320     </build>
321
322     <profiles>
323         <profile>
324             <id>docker</id>
325             <activation>
326                 <activeByDefault>false</activeByDefault>
327             </activation>
328             <build>
329                 <plugins>
330                     <plugin>
331                         <groupId>org.apache.maven.plugins</groupId>
332                         <artifactId>maven-resources-plugin</artifactId>
333                         <version>3.2.0</version>
334                         <executions>
335                             <execution>
336                                 <id>copy-resources-docker</id>
337                                 <phase>install</phase>
338                                 <goals>
339                                     <goal>copy-resources</goal>
340                                 </goals>
341                                 <configuration>
342                                     <outputDirectory>${basedir}/docker</outputDirectory>
343                                     <resources>
344                                         <resource>
345                                             <directory>${project.build.directory}</directory>
346                                             <include>${project.build.finalName}.jar</include>
347                                         </resource>
348                                     </resources>
349                                 </configuration>
350                             </execution>
351                         </executions>
352                     </plugin>
353                     <plugin>
354                         <groupId>io.fabric8</groupId>
355                         <artifactId>docker-maven-plugin</artifactId>
356                         <configuration>
357                             <images>
358                                 <image>
359                                     <name>onap/sdc-workflow-backend</name>
360                                     <build>
361                                         <tags>
362                                             <tag>latest</tag>
363                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
364                                             <tag>${project.docker.latesttag.version}</tag>
365                                         </tags>
366                                         <dockerFileDir>${project.basedir}/docker</dockerFileDir>
367                                         <args>
368                                             <ARTIFACT>${project.build.finalName}.jar</ARTIFACT>
369                                         </args>
370                                     </build>
371                                 </image>
372                             </images>
373                         </configuration>
374                     </plugin>
375                 </plugins>
376             </build>
377         </profile>
378     </profiles>
379
380 </project>