Update vulnerable package dependencies
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-ui / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright © 2016-2018 European Support Limited
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   ~ Modifications copyright (c) 2019 Nokia
17 -->
18
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
23     <modelVersion>4.0.0</modelVersion>
24     <artifactId>sdc-workflow-designer-ui</artifactId>
25     <packaging>war</packaging>
26
27     <parent>
28         <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
29         <artifactId>sdc-workflow-designer-parent</artifactId>
30         <version>1.9.0-SNAPSHOT</version>
31     </parent>
32
33     <properties>
34         <jest.command />
35     </properties>
36
37
38     <dependencies>
39         <dependency>
40             <groupId>org.eclipse.jetty</groupId>
41             <artifactId>jetty-proxy</artifactId>
42             <version>9.4.40.v20210413</version>
43             <exclusions>
44                 <exclusion>
45                     <artifactId>jetty-http</artifactId>
46                     <groupId>org.eclipse.jetty</groupId>
47                 </exclusion>
48             </exclusions>
49         </dependency>
50         <dependency>
51             <groupId>javax.servlet</groupId>
52             <artifactId>javax.servlet-api</artifactId>
53             <version>3.0.1</version>
54             <scope>provided</scope>
55         </dependency>
56         <dependency>
57             <groupId>org.eclipse.jetty</groupId>
58             <artifactId>jetty-http</artifactId>
59             <version>9.4.40.v20210413</version>
60         </dependency>
61     </dependencies>
62
63     <build>
64         <plugins>
65             <plugin>
66                 <groupId>com.github.eirslett</groupId>
67                 <artifactId>frontend-maven-plugin</artifactId>
68                 <version>1.8.0</version>
69                 <configuration>
70                     <workingDirectory>src/main/frontend</workingDirectory>
71                     <installDirectory>target</installDirectory>
72                 </configuration>
73                 <executions>
74                     <execution>
75                         <id>install node and yarn</id>
76                         <goals>
77                             <goal>install-node-and-yarn</goal>
78                         </goals>
79                         <phase>generate-resources</phase>
80                         <configuration>
81                             <nodeVersion>v10.17.0</nodeVersion>
82                             <yarnVersion>v1.19.1</yarnVersion>
83                         </configuration>
84                     </execution>
85                     <execution>
86                         <id>yarn install</id>
87                         <goals>
88                             <goal>yarn</goal>
89                         </goals>
90                         <configuration>
91                             <arguments>install</arguments>
92                         </configuration>
93                     </execution>
94                     <execution>
95                         <id>yarn run webpack build</id>
96                         <goals>
97                             <goal>yarn</goal>
98                         </goals>
99                         <configuration>
100                             <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
101                             <arguments>build</arguments>
102                         </configuration>
103                     </execution>
104                     <execution>
105                         <id>ui test</id>
106                         <goals>
107                             <goal>yarn</goal>
108                         </goals>
109                         <configuration>
110                             <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
111                             <arguments>test-build ${jest.command}</arguments>
112                             <skip>${skipTests}</skip>
113                         </configuration>
114                         <phase>test</phase>
115                     </execution>
116                 </executions>
117             </plugin>
118             <plugin>
119                 <groupId>org.apache.maven.plugins</groupId>
120                 <artifactId>maven-war-plugin</artifactId>
121                 <version>3.2.2</version>
122                 <configuration>
123                     <webResources>
124                         <resource>
125                             <directory>src/main/frontend/dist</directory>
126                             <includes>
127                                 <include>*.*</include>
128                             </includes>
129                         </resource>
130                         <resource>
131                             <directory>src/main/frontend/external-resources/ping/</directory>
132                             <filtering>true</filtering>
133                             <includes>
134                                 <include>ping</include>
135                             </includes>
136                         </resource>
137                     </webResources>
138                 </configuration>
139             </plugin>
140         </plugins>
141     </build>
142     <profiles>
143         <profile>
144             <id>jest-windows-profile</id>
145             <activation>
146                 <os>
147                     <family>windows</family>
148                 </os>
149             </activation>
150             <properties>
151                 <jest.command>--runInBand</jest.command>
152             </properties>
153         </profile>
154         <profile>
155             <id>docker</id>
156             <activation>
157                 <activeByDefault>false</activeByDefault>
158             </activation>
159             <build>
160                 <plugins>
161                     <plugin>
162                         <artifactId>maven-resources-plugin</artifactId>
163                         <version>2.6</version>
164                         <executions>
165                             <execution>
166                                 <id>copy-resources-docker</id>
167                                 <phase>install</phase>
168                                 <goals>
169                                     <goal>copy-resources</goal>
170                                 </goals>
171                                 <configuration>
172                                     <outputDirectory>${basedir}/docker</outputDirectory>
173                                     <resources>
174                                         <resource>
175                                             <directory>${project.build.directory}</directory>
176                                             <include>${project.artifactId}-${project.version}.war</include>
177                                         </resource>
178                                     </resources>
179                                 </configuration>
180                             </execution>
181                         </executions>
182                     </plugin>
183                     <plugin>
184                         <groupId>io.fabric8</groupId>
185                         <artifactId>docker-maven-plugin</artifactId>
186                         <configuration>
187                             <images>
188                                 <image>
189                                     <name>onap/sdc-workflow-frontend</name>
190                                     <build>
191                                         <tags>
192                                             <tag>latest</tag>
193                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
194                                             <tag>${project.docker.latesttag.version}</tag>
195                                         </tags>
196                                         <dockerFileDir>${project.basedir}/docker</dockerFileDir>
197                                         <args>
198                                             <ARTIFACT>${project.artifactId}-${project.version}.war</ARTIFACT>
199                                         </args>
200                                     </build>
201                                 </image>
202                             </images>
203                         </configuration>
204                     </plugin>
205                 </plugins>
206             </build>
207         </profile>
208     </profiles>
209 </project>
210