Merge "Home page carousel"
[eliot.git] / blueprints / common / eliot-ui / frontend-src / src / app / pom.xml
1 <build>
2 <finalName>eliot</finalName>
3     <plugins>
4     <plugin>
5             <groupId>com.github.eirslett</groupId>
6             <artifactId>frontend-maven-plugin</artifactId>
7             <version>1.6</version>
8
9             <configuration>
10                 <workingDirectory>src/main/frontend</workingDirectory>
11             </configuration>
12
13             <executions>
14                 <execution>
15                     <id>install-node-and-npm</id>
16                     <goals>
17                         <goal>install-node-and-npm</goal>
18                     </goals>
19                     <configuration>
20                         <nodeVersion>v12.9.0</nodeVersion>
21                     </configuration>
22                 </execution>
23
24                 <execution>
25                     <id>npm install</id>
26                     <goals>
27                         <goal>npm</goal>
28                     </goals>
29                     <configuration>
30                         <arguments>install</arguments>
31                     </configuration>
32                 </execution>
33                 <execution>
34                     <id>npm build</id>
35                     <goals>
36                         <goal>npm</goal>
37                     </goals>
38                     <configuration>
39                         <arguments>run buildProduction</arguments>
40                     </configuration>
41                     <phase>generate-resources</phase>
42                 </execution>
43             </executions>
44     </plugin>
45     <plugin>
46         <artifactId>maven-war-plugin</artifactId>
47         <version>3.2.2</version>
48         <configuration>
49             <failOnMissingWebXml>false</failOnMissingWebXml>
50
51             <!-- Add frontend folder to war package -->
52             <webResources>
53                 <resource>
54                     <directory>src/main/frontend/dist/frontend</directory>
55                 </resource>
56             </webResources>
57
58         </configuration>
59     </plugin>
60     </plugins>
61 </build>