Bump version to 1.5.1
[sdc/sdc-workflow-designer.git] / workflow-designer-ui / pom.xml
1 <?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>workflow-designer-ui</artifactId>
25     <packaging>war</packaging>
26
27     <parent>
28         <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
29         <artifactId>workflow-designer-parent</artifactId>
30         <version>1.5.1-SNAPSHOT</version>
31     </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.6</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>v8.11.4</nodeVersion>
71                             <yarnVersion>v1.9.4</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/workflow-frontend</name>
179                                     <build>
180                                         <tags>
181                                             <tag>${project.version}</tag>
182                                         </tags>
183                                         <dockerFileDir>${project.basedir}/docker</dockerFileDir>
184                                         <args>
185                                             <ARTIFACT>${project.artifactId}-${project.version}.war</ARTIFACT>
186                                         </args>
187                                     </build>
188                                 </image>
189                             </images>
190                         </configuration>
191                     </plugin>
192                 </plugins>
193             </build>
194         </profile>
195     </profiles>
196 </project>
197