blob: 172f5890185ec0d7066d7970157a643bd92f8f47 [file] [log] [blame]
priyanshu7e78cd12018-07-16 19:25:05 +05301<?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 -->
17
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">
21
22 <modelVersion>4.0.0</modelVersion>
priyanshu7e78cd12018-07-16 19:25:05 +053023 <artifactId>workflow-designer-ui</artifactId>
Stanislav Vishnevetskiy101bc932018-07-23 13:26:41 +030024 <packaging>war</packaging>
priyanshu7e78cd12018-07-16 19:25:05 +053025
26 <parent>
vempob4e10912018-07-26 12:10:37 +030027 <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
priyanshu7e78cd12018-07-16 19:25:05 +053028 <artifactId>workflow-designer-parent</artifactId>
29 <version>1.3.0-SNAPSHOT</version>
30 </parent>
31
Stanislav Vishnevetskiy101bc932018-07-23 13:26:41 +030032 <properties>
33 <jest.command />
34 </properties>
35
36
37 <dependencies>
38 <dependency>
39 <groupId>org.eclipse.jetty</groupId>
40 <artifactId>jetty-proxy</artifactId>
41 <version>9.4.11.v20180605</version>
42 </dependency>
43 <dependency>
44 <groupId>javax.servlet</groupId>
45 <artifactId>javax.servlet-api</artifactId>
46 <version>3.0.1</version>
47 <scope>provided</scope>
48 </dependency>
49 </dependencies>
50
51 <build>
52 <plugins>
53 <plugin>
54 <groupId>com.github.eirslett</groupId>
55 <artifactId>frontend-maven-plugin</artifactId>
56 <version>1.6</version>
57 <configuration>
58 <workingDirectory>src/main/frontend</workingDirectory>
59 <installDirectory>target</installDirectory>
60 </configuration>
61 <executions>
62 <execution>
63 <id>install node and yarn</id>
64 <goals>
65 <goal>install-node-and-yarn</goal>
66 </goals>
67 <phase>generate-resources</phase>
68 <configuration>
69 <nodeVersion>v9.4.0</nodeVersion>
70 <yarnVersion>v1.7.0</yarnVersion>
71 </configuration>
72 </execution>
73 <execution>
74 <id>yarn install</id>
75 <goals>
76 <goal>yarn</goal>
77 </goals>
78 <configuration>
79 <arguments>install</arguments>
80 </configuration>
81 </execution>
82 <execution>
83 <id>yarn run webpack build</id>
84 <goals>
85 <goal>yarn</goal>
86 </goals>
87 <configuration>
88 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
89 <arguments>build</arguments>
90 </configuration>
91 </execution>
92 <execution>
93 <id>ui test</id>
94 <goals>
95 <goal>yarn</goal>
96 </goals>
97 <configuration>
98 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
99 <arguments>test-build ${jest.command}</arguments>
100 <skip>${skipTests}</skip>
101 </configuration>
102 <phase>test</phase>
103 </execution>
104 </executions>
105 </plugin>
106 <plugin>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-war-plugin</artifactId>
109 <version>3.2.2</version>
110 <configuration>
111 <webResources>
112 <resource>
113 <directory>src/main/frontend/dist</directory>
114 <includes>
115 <include>*.html</include>
116 <include>*.js</include>
117 </includes>
118 </resource>
119 <resource>
vempob4e10912018-07-26 12:10:37 +0300120 <directory>src/main/frontend/external-resources/ping/</directory>
Stanislav Vishnevetskiy101bc932018-07-23 13:26:41 +0300121 <filtering>true</filtering>
122 <includes>
123 <include>ping</include>
124 </includes>
125 </resource>
126 </webResources>
127 </configuration>
128 </plugin>
129 </plugins>
130 </build>
131 <profiles>
132 <profile>
133 <id>jest-windows-profile</id>
134 <activation>
135 <os>
136 <family>windows</family>
137 </os>
138 </activation>
139 <properties>
140 <jest.command>--runInBand</jest.command>
141 </properties>
142 </profile>
143 <profile>
144 <id>docker</id>
145 <activation>
146 <activeByDefault>false</activeByDefault>
147 </activation>
148 <build>
149 <plugins>
150 <plugin>
151 <groupId>io.fabric8</groupId>
152 <artifactId>docker-maven-plugin</artifactId>
153 <configuration>
154 <images>
155 <image>
156 <name>onap/workflow-frontend</name>
157 <build>
158 <tags>
159 <tag>${project.version}</tag>
160 </tags>
161 <from>jetty:9.4.11-alpine</from>
162 <user>root</user>
163 <assembly>
164 <descriptorRef>artifact</descriptorRef>
165 <targetDir>/var/lib/jetty/webapps</targetDir>
166 </assembly>
167 <entryPoint>
168 java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar
169 </entryPoint>
170 </build>
171 </image>
172 </images>
173 </configuration>
174 </plugin>
175 </plugins>
176 </build>
177 </profile>
178 </profiles>
priyanshu7e78cd12018-07-16 19:25:05 +0530179</project>
180