blob: 887267b400b9686f42644a9090c68abe2294e9e1 [file] [log] [blame]
vasraz6dc58fd2019-10-02 12:08:49 +01001<?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>
ChrisC96b16ae2020-10-30 16:48:10 +010030 <version>1.8.0-SNAPSHOT</version>
vasraz6dc58fd2019-10-02 12:08:49 +010031 </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.18.v20190429</version>
43 </dependency>
44 <dependency>
45 <groupId>javax.servlet</groupId>
46 <artifactId>javax.servlet-api</artifactId>
47 <version>3.0.1</version>
48 <scope>provided</scope>
49 </dependency>
50 </dependencies>
51
52 <build>
53 <plugins>
54 <plugin>
55 <groupId>com.github.eirslett</groupId>
56 <artifactId>frontend-maven-plugin</artifactId>
57 <version>1.8.0</version>
58 <configuration>
59 <workingDirectory>src/main/frontend</workingDirectory>
60 <installDirectory>target</installDirectory>
61 </configuration>
62 <executions>
63 <execution>
64 <id>install node and yarn</id>
65 <goals>
66 <goal>install-node-and-yarn</goal>
67 </goals>
68 <phase>generate-resources</phase>
69 <configuration>
70 <nodeVersion>v10.17.0</nodeVersion>
71 <yarnVersion>v1.19.1</yarnVersion>
72 </configuration>
73 </execution>
74 <execution>
75 <id>yarn install</id>
76 <goals>
77 <goal>yarn</goal>
78 </goals>
79 <configuration>
80 <arguments>install</arguments>
81 </configuration>
82 </execution>
83 <execution>
84 <id>yarn run webpack build</id>
85 <goals>
86 <goal>yarn</goal>
87 </goals>
88 <configuration>
89 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
90 <arguments>build</arguments>
91 </configuration>
92 </execution>
93 <execution>
94 <id>ui test</id>
95 <goals>
96 <goal>yarn</goal>
97 </goals>
98 <configuration>
99 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
100 <arguments>test-build ${jest.command}</arguments>
101 <skip>${skipTests}</skip>
102 </configuration>
103 <phase>test</phase>
104 </execution>
105 </executions>
106 </plugin>
107 <plugin>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-war-plugin</artifactId>
110 <version>3.2.2</version>
111 <configuration>
112 <webResources>
113 <resource>
114 <directory>src/main/frontend/dist</directory>
115 <includes>
116 <include>*.*</include>
117 </includes>
118 </resource>
119 <resource>
120 <directory>src/main/frontend/external-resources/ping/</directory>
121 <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 <artifactId>maven-resources-plugin</artifactId>
152 <version>2.6</version>
153 <executions>
154 <execution>
155 <id>copy-resources-docker</id>
156 <phase>install</phase>
157 <goals>
158 <goal>copy-resources</goal>
159 </goals>
160 <configuration>
161 <outputDirectory>${basedir}/docker</outputDirectory>
162 <resources>
163 <resource>
164 <directory>${project.build.directory}</directory>
165 <include>${project.artifactId}-${project.version}.war</include>
166 </resource>
167 </resources>
168 </configuration>
169 </execution>
170 </executions>
171 </plugin>
172 <plugin>
173 <groupId>io.fabric8</groupId>
174 <artifactId>docker-maven-plugin</artifactId>
175 <configuration>
176 <images>
177 <image>
178 <name>onap/sdc-workflow-frontend</name>
179 <build>
180 <tags>
sebdet264a5c62020-06-16 12:10:00 +0200181 <tag>latest</tag>
182 <tag>${project.docker.latesttagtimestamp.version}</tag>
183 <tag>${project.docker.latesttag.version}</tag>
vasraz6dc58fd2019-10-02 12:08:49 +0100184 </tags>
185 <dockerFileDir>${project.basedir}/docker</dockerFileDir>
186 <args>
187 <ARTIFACT>${project.artifactId}-${project.version}.war</ARTIFACT>
188 </args>
189 </build>
190 </image>
191 </images>
192 </configuration>
193 </plugin>
194 </plugins>
195 </build>
196 </profile>
197 </profiles>
198</project>
199