Bumped up version to 1.5.0
[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   -->
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>
23     <artifactId>workflow-designer-ui</artifactId>
24     <packaging>war</packaging>
25
26     <parent>
27         <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
28         <artifactId>workflow-designer-parent</artifactId>
29         <version>1.5.0-SNAPSHOT</version>
30     </parent>
31
32     <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>v8.11.4</nodeVersion>
70                             <yarnVersion>v1.9.4</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>*.*</include>                                
116                             </includes>
117                         </resource>
118                         <resource>
119                             <directory>src/main/frontend/external-resources/ping/</directory>
120                             <filtering>true</filtering>
121                             <includes>
122                                 <include>ping</include>
123                             </includes>
124                         </resource>
125                     </webResources>
126                 </configuration>
127             </plugin>
128         </plugins>
129     </build>
130     <profiles>
131         <profile>
132             <id>jest-windows-profile</id>
133             <activation>
134                 <os>
135                     <family>windows</family>
136                 </os>
137             </activation>
138             <properties>
139                 <jest.command>--runInBand</jest.command>
140             </properties>
141         </profile>
142         <profile>
143             <id>docker</id>
144             <activation>
145                 <activeByDefault>false</activeByDefault>
146             </activation>
147             <build>
148                 <plugins>
149                     <plugin>
150                         <artifactId>maven-resources-plugin</artifactId>
151                         <version>2.6</version>
152                         <executions>
153                             <execution>
154                                 <id>copy-resources-docker</id>
155                                 <phase>install</phase>
156                                 <goals>
157                                     <goal>copy-resources</goal>
158                                 </goals>
159                                 <configuration>
160                                     <outputDirectory>${basedir}/docker</outputDirectory>
161                                     <resources>
162                                         <resource>
163                                             <directory>${project.build.directory}</directory>
164                                             <include>${project.artifactId}-${project.version}.war</include>
165                                         </resource>
166                                     </resources>
167                                 </configuration>
168                             </execution>
169                         </executions>
170                     </plugin>
171                     <plugin>
172                         <groupId>io.fabric8</groupId>
173                         <artifactId>docker-maven-plugin</artifactId>
174                         <configuration>
175                             <images>
176                                 <image>
177                                     <name>onap/workflow-frontend</name>
178                                     <build>
179                                         <tags>
180                                             <tag>${project.version}</tag>
181                                         </tags>
182                                         <dockerFileDir>${project.basedir}/docker</dockerFileDir>
183                                         <args>
184                                             <ARTIFACT>${project.artifactId}-${project.version}.war</ARTIFACT>
185                                         </args>
186                                     </build>
187                                 </image>
188                             </images>
189                         </configuration>
190                     </plugin>
191                 </plugins>
192             </build>
193         </profile>
194     </profiles>
195 </project>
196