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.
18 <project xmlns="http://maven.apache.org/POM/4.0.0"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
23 <artifactId>workflow-designer-ui</artifactId>
24 <packaging>war</packaging>
27 <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
28 <artifactId>workflow-designer-parent</artifactId>
29 <version>1.3.0-SNAPSHOT</version>
39 <groupId>org.eclipse.jetty</groupId>
40 <artifactId>jetty-proxy</artifactId>
41 <version>9.4.11.v20180605</version>
44 <groupId>javax.servlet</groupId>
45 <artifactId>javax.servlet-api</artifactId>
46 <version>3.0.1</version>
47 <scope>provided</scope>
54 <groupId>com.github.eirslett</groupId>
55 <artifactId>frontend-maven-plugin</artifactId>
56 <version>1.6</version>
58 <workingDirectory>src/main/frontend</workingDirectory>
59 <installDirectory>target</installDirectory>
63 <id>install node and yarn</id>
65 <goal>install-node-and-yarn</goal>
67 <phase>generate-resources</phase>
69 <nodeVersion>v8.11.4</nodeVersion>
70 <yarnVersion>v1.9.4</yarnVersion>
79 <arguments>install</arguments>
83 <id>yarn run webpack build</id>
88 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
89 <arguments>build</arguments>
98 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
99 <arguments>test-build ${jest.command}</arguments>
100 <skip>${skipTests}</skip>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-war-plugin</artifactId>
109 <version>3.2.2</version>
113 <directory>src/main/frontend/dist</directory>
115 <include>*.*</include>
119 <directory>src/main/frontend/external-resources/ping/</directory>
120 <filtering>true</filtering>
122 <include>ping</include>
132 <id>jest-windows-profile</id>
135 <family>windows</family>
139 <jest.command>--runInBand</jest.command>
145 <activeByDefault>false</activeByDefault>
150 <groupId>io.fabric8</groupId>
151 <artifactId>docker-maven-plugin</artifactId>
155 <name>onap/workflow-frontend</name>
158 <tag>${project.version}</tag>
160 <from>jetty:9.4.11-alpine</from>
163 <descriptorRef>artifact</descriptorRef>
164 <targetDir>/var/lib/jetty/webapps</targetDir>
167 java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar