23fecb07152f35ad8bf51735335709789546b4e7
[sdc/sdc-workflow-designer.git] / 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>workflow-designer-be</artifactId>
9
10     <parent>
11         <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
12         <artifactId>workflow-designer-parent</artifactId>
13         <version>1.6.0-SNAPSHOT</version>
14     </parent>
15
16     <properties>
17         <spring.boot.version>2.1.0.RELEASE</spring.boot.version>
18         <mapstruct.version>1.3.1.Final</mapstruct.version>
19         <lombok.version>1.18.0</lombok.version>
20         <springfox.version>2.8.0</springfox.version>
21     </properties>
22
23     <dependencyManagement>
24         <dependencies>
25             <dependency>
26                 <groupId>org.springframework.boot</groupId>
27                 <artifactId>spring-boot-dependencies</artifactId>
28                 <version>${spring.boot.version}</version>
29                 <type>pom</type>
30                 <scope>import</scope>
31             </dependency>
32         </dependencies>
33     </dependencyManagement>
34
35     <dependencies>
36         <dependency>
37             <groupId>org.springframework.boot</groupId>
38             <artifactId>spring-boot-starter-web</artifactId>
39             <exclusions>
40                 <exclusion>
41                     <groupId>org.springframework.boot</groupId>
42                     <artifactId>spring-boot-starter-tomcat</artifactId>
43                 </exclusion>
44             </exclusions>
45         </dependency>
46         <dependency>
47             <groupId>org.springframework.boot</groupId>
48             <artifactId>spring-boot-starter-jetty</artifactId>
49         </dependency>
50         <dependency>
51             <groupId>org.springframework.boot</groupId>
52             <artifactId>spring-boot-starter-data-cassandra</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.springframework.boot</groupId>
56             <artifactId>spring-boot-devtools</artifactId>
57             <scope>runtime</scope>
58         </dependency>
59         <dependency>
60             <groupId>org.springframework.boot</groupId>
61             <artifactId>spring-boot-starter-test</artifactId>
62             <scope>test</scope>
63         </dependency>
64         <dependency>
65             <groupId>io.springfox</groupId>
66             <artifactId>springfox-swagger-ui</artifactId>
67             <version>${springfox.version}</version>
68         </dependency>
69         <dependency>
70             <groupId>io.springfox</groupId>
71             <artifactId>springfox-swagger2</artifactId>
72             <version>${springfox.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.openecomp.sdc</groupId>
76             <artifactId>openecomp-sdc-logging-api</artifactId>
77             <version>${onap.version}</version>
78         </dependency>
79         <dependency>
80             <groupId>org.openecomp.sdc</groupId>
81             <artifactId>openecomp-sdc-logging-spring</artifactId>
82             <version>${onap.version}</version>
83         </dependency>
84         <dependency>
85             <groupId>org.openecomp.sdc</groupId>
86             <artifactId>openecomp-sdc-logging-core</artifactId>
87             <version>${onap.version}</version>
88             <scope>runtime</scope>
89         </dependency>
90         <dependency>
91             <groupId>ch.qos.logback</groupId>
92             <artifactId>logback-classic</artifactId>
93             <scope>runtime</scope>
94         </dependency>
95         <dependency>
96             <groupId>org.apache.httpcomponents</groupId>
97             <artifactId>httpclient</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.mapstruct</groupId>
101             <artifactId>mapstruct</artifactId>
102             <version>${mapstruct.version}</version>
103         </dependency>
104         <dependency>
105             <groupId>org.mapstruct</groupId>
106             <artifactId>mapstruct-processor</artifactId>
107             <version>${mapstruct.version}</version>
108             <scope>provided</scope>
109         </dependency>
110         <dependency>
111             <groupId>org.projectlombok</groupId>
112             <artifactId>lombok</artifactId>
113             <version>${lombok.version}</version>
114             <scope>provided</scope>
115         </dependency>
116         <dependency>
117             <groupId>org.springframework.boot</groupId>
118             <artifactId>spring-boot-starter-actuator</artifactId>
119             <scope>provided</scope>
120         </dependency>
121         <dependency>
122             <groupId>org.apache.commons</groupId>
123             <artifactId>commons-text</artifactId>
124             <version>1.3</version>
125         </dependency>
126         <dependency>
127             <groupId>commons-io</groupId>
128             <artifactId>commons-io</artifactId>
129             <version>2.6</version>
130         </dependency>
131         <dependency>
132             <groupId>commons-codec</groupId>
133             <artifactId>commons-codec</artifactId>
134             <version>1.9</version>
135         </dependency>
136         <dependency>
137             <groupId>org.onap.sdc.sdc-be-common</groupId>
138             <artifactId>session-lib</artifactId>
139             <version>1.6.0</version>
140         </dependency>
141         <dependency>
142             <groupId>org.onap.sdc.sdc-be-common</groupId>
143             <artifactId>versioning-lib</artifactId>
144             <version>1.6.0</version>
145             <exclusions>
146                 <exclusion>
147                     <groupId>org.springframework.boot</groupId>
148                     <artifactId>spring-boot-starter-data-cassandra</artifactId>
149                 </exclusion>
150             </exclusions>
151         </dependency>
152         <dependency>
153             <groupId>org.onap.sdc.sdc-be-common</groupId>
154             <artifactId>zusammen-lib</artifactId>
155             <version>1.6.0</version>
156             <exclusions>
157                 <exclusion>
158                     <groupId>org.springframework.boot</groupId>
159                     <artifactId>spring-boot-starter-data-cassandra</artifactId>
160                 </exclusion>
161             </exclusions>
162         </dependency>
163     </dependencies>
164
165     <build>
166         <plugins>
167             <plugin>
168                 <groupId>org.apache.maven.plugins</groupId>
169                 <artifactId>maven-compiler-plugin</artifactId>
170                 <version>3.5.1</version>
171             </plugin>
172             <plugin>
173                 <groupId>org.springframework.boot</groupId>
174                 <artifactId>spring-boot-maven-plugin</artifactId>
175                 <version>${spring.boot.version}</version>
176                 <executions>
177                     <execution>
178                         <goals>
179                             <goal>repackage</goal>
180                         </goals>
181                     </execution>
182                 </executions>
183             </plugin>
184         </plugins>
185     </build>
186
187     <profiles>
188         <profile>
189             <id>docker</id>
190             <activation>
191                 <activeByDefault>false</activeByDefault>
192             </activation>
193             <build>
194                 <plugins>
195                     <plugin>
196                         <artifactId>maven-resources-plugin</artifactId>
197                         <version>2.6</version>
198                         <executions>
199                             <execution>
200                                 <id>copy-resources-docker</id>
201                                 <phase>install</phase>
202                                 <goals>
203                                     <goal>copy-resources</goal>
204                                 </goals>
205                                 <configuration>
206                                     <outputDirectory>${basedir}/docker</outputDirectory>
207                                     <resources>
208                                         <resource>
209                                             <directory>${project.build.directory}</directory>
210                                             <include>${project.build.finalName}.jar</include>
211                                         </resource>
212                                     </resources>
213                                 </configuration>
214                             </execution>
215                         </executions>
216                     </plugin>
217                     <plugin>
218                         <groupId>io.fabric8</groupId>
219                         <artifactId>docker-maven-plugin</artifactId>
220                         <configuration>
221                             <images>
222                                 <image>
223                                     <name>onap/workflow-backend</name>
224                                     <build>
225                                         <tags>
226                                             <tag>${project.version}</tag>
227                                         </tags>
228                                         <dockerFileDir>${project.basedir}/docker</dockerFileDir>
229                                         <args>
230                                             <ARTIFACT>${project.build.finalName}.jar</ARTIFACT>
231                                         </args>
232                                     </build>
233                                 </image>
234                             </images>
235                         </configuration>
236                     </plugin>
237                     <plugin>
238                         <groupId>org.sonatype.plugins</groupId>
239                         <artifactId>nexus-staging-maven-plugin</artifactId>
240                         <version>1.6.8</version>
241                         <extensions>true</extensions>
242                         <configuration>
243                             <serverId>onap-staging</serverId>
244                             <nexusUrl>${nexus.proxy}</nexusUrl>
245                             <stagingProfileId>${staging.profile.id}</stagingProfileId>
246                         </configuration>
247                     </plugin>
248                 </plugins>
249             </build>
250         </profile>
251     </profiles>
252
253 </project>
254