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