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>
24 <artifactId>workflow-designer-ui</artifactId>
25 <packaging>war</packaging>
28 <groupId>org.onap.sdc.workflow_designer</groupId>
29 <artifactId>workflow-designer-parent</artifactId>
30 <version>1.3.0-SNAPSHOT</version>
40 <groupId>org.eclipse.jetty</groupId>
41 <artifactId>jetty-proxy</artifactId>
42 <version>9.4.11.v20180605</version>
45 <groupId>javax.servlet</groupId>
46 <artifactId>javax.servlet-api</artifactId>
47 <version>3.0.1</version>
48 <scope>provided</scope>
55 <groupId>com.github.eirslett</groupId>
56 <artifactId>frontend-maven-plugin</artifactId>
57 <version>1.6</version>
59 <workingDirectory>src/main/frontend</workingDirectory>
60 <installDirectory>target</installDirectory>
64 <id>install node and yarn</id>
66 <goal>install-node-and-yarn</goal>
68 <phase>generate-resources</phase>
70 <nodeVersion>v9.4.0</nodeVersion>
71 <yarnVersion>v1.7.0</yarnVersion>
80 <arguments>install</arguments>
84 <id>yarn run webpack build</id>
89 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
90 <arguments>build</arguments>
99 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
100 <arguments>test-build ${jest.command}</arguments>
101 <skip>${skipTests}</skip>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-war-plugin</artifactId>
110 <version>3.2.2</version>
114 <directory>src/main/frontend/dist</directory>
116 <include>*.html</include>
117 <include>*.js</include>
121 <directory>src/main/frontend/external-resources/ping/</directory>
122 <filtering>true</filtering>
124 <include>ping</include>
134 <id>jest-windows-profile</id>
137 <family>windows</family>
141 <jest.command>--runInBand</jest.command>
147 <activeByDefault>false</activeByDefault>
152 <groupId>io.fabric8</groupId>
153 <artifactId>docker-maven-plugin</artifactId>
157 <name>onap/workflow-frontend</name>
160 <tag>${project.version}</tag>
162 <from>jetty:9.4.11-alpine</from>
165 <descriptorRef>artifact</descriptorRef>
166 <targetDir>/var/lib/jetty/webapps</targetDir>
169 java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar