1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ Copyright © 2016-2018 European Support Limited
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
9 ~ http://www.apache.org/licenses/LICENSE-2.0
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
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">
23 <modelVersion>4.0.0</modelVersion>
24 <artifactId>sdc-workflow-designer-ui</artifactId>
25 <packaging>war</packaging>
28 <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
29 <artifactId>sdc-workflow-designer-parent</artifactId>
30 <version>1.12.0-SNAPSHOT</version>
39 <groupId>org.eclipse.jetty</groupId>
40 <artifactId>jetty-proxy</artifactId>
41 <version>${jetty.version}</version>
44 <artifactId>jetty-http</artifactId>
45 <groupId>org.eclipse.jetty</groupId>
50 <groupId>javax.servlet</groupId>
51 <artifactId>javax.servlet-api</artifactId>
52 <version>4.0.1</version>
53 <scope>provided</scope>
56 <groupId>org.eclipse.jetty</groupId>
57 <artifactId>jetty-http</artifactId>
58 <version>${jetty.version}</version>
65 <groupId>com.github.eirslett</groupId>
66 <artifactId>frontend-maven-plugin</artifactId>
67 <version>1.8.0</version>
69 <workingDirectory>src/main/frontend</workingDirectory>
70 <installDirectory>target</installDirectory>
74 <id>install node and yarn</id>
76 <goal>install-node-and-yarn</goal>
78 <phase>generate-resources</phase>
80 <nodeVersion>v10.17.0</nodeVersion>
81 <yarnVersion>v1.19.1</yarnVersion>
90 <arguments>install</arguments>
94 <id>yarn run webpack build</id>
99 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
100 <arguments>build</arguments>
109 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
110 <arguments>test-build ${jest.command}</arguments>
111 <skip>${skipTests}</skip>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-war-plugin</artifactId>
120 <version>3.2.2</version>
124 <directory>src/main/frontend/dist</directory>
126 <include>*.*</include>
130 <directory>src/main/frontend/external-resources/ping/</directory>
131 <filtering>true</filtering>
133 <include>ping</include>
140 <groupId>org.codehaus.mojo</groupId>
141 <artifactId>build-helper-maven-plugin</artifactId>
142 <version>${build-helper-maven-plugin.version}</version>
145 <id>regex-property</id>
147 <goal>regex-property</goal>
150 <name>jetty.docker.version</name>
151 <value>${jetty.version}</value>
152 <regex>.v[0-9]+</regex>
154 <failIfNoMatch>false</failIfNoMatch>
163 <id>jest-windows-profile</id>
166 <family>windows</family>
170 <jest.command>--runInBand</jest.command>
176 <activeByDefault>false</activeByDefault>
181 <artifactId>maven-resources-plugin</artifactId>
182 <version>2.6</version>
185 <id>copy-resources-docker</id>
186 <phase>install</phase>
188 <goal>copy-resources</goal>
191 <outputDirectory>${basedir}/docker</outputDirectory>
194 <directory>${project.build.directory}</directory>
195 <include>${project.artifactId}-${project.version}.war</include>
203 <groupId>io.fabric8</groupId>
204 <artifactId>docker-maven-plugin</artifactId>
206 <apiVersion>${docker.api.version}</apiVersion>
209 <name>onap/sdc-workflow-frontend</name>
213 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
214 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
216 <dockerFileDir>${project.basedir}/docker</dockerFileDir>
218 <ARTIFACT>${project.artifactId}-${project.version}.war</ARTIFACT>