d72610942f983df5265e354fff905a0928d8c8ca
[portal/ric-dashboard.git] / dashboard / webapp-frontend / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--<![CDATA[
3 ========================LICENSE_START=================================
4 O-RAN-SC
5 %%
6 Copyright (C) 2019 AT&T Intellectual Property
7 %%
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12      http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ========================LICENSE_END===================================
20 ]]>-->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.o-ran-sc.portal.ric-dashboard</groupId>
27                 <artifactId>ric-dash-parent</artifactId>
28                 <version>2.0.1-SNAPSHOT</version>
29         </parent>
30         <!-- reuse parent groupId -->
31         <artifactId>ric-dash-fe</artifactId>
32         <name>RIC Dashboard Webapp Frontend</name>
33         <build>
34                 <plugins>
35                         <plugin>
36                                 <!-- Most configuration and all execution is inherited -->
37                                 <groupId>org.codehaus.mojo</groupId>
38                                 <artifactId>license-maven-plugin</artifactId>
39                                 <configuration>
40                                         <roots>
41                                                 <root>e2e</root>
42                                                 <root>src</root>
43                                         </roots>
44                                         <excludes>
45                                                 <exclude>**/*.json</exclude>
46                                         </excludes>
47                                 </configuration>
48                         </plugin>
49                         <plugin>
50                                 <groupId>com.github.eirslett</groupId>
51                                 <artifactId>frontend-maven-plugin</artifactId>
52                                 <version>1.3</version>
53                                 <configuration>
54                                         <nodeVersion>v12.14.1</nodeVersion>
55                                         <npmVersion>6.13.4</npmVersion>
56                                         <workingDirectory>.</workingDirectory>
57                                 </configuration>
58                                 <executions>
59                                         <execution>
60                                                 <id>install node and npm</id>
61                                                 <goals>
62                                                         <goal>install-node-and-npm</goal>
63                                                 </goals>
64                                         </execution>
65                                         <execution>
66                                                 <id>npm install</id>
67                                                 <goals>
68                                                         <goal>npm</goal>
69                                                 </goals>
70                                         </execution>
71                                         <execution>
72                                                 <id>npm run build</id>
73                                                 <goals>
74                                                         <goal>npm</goal>
75                                                 </goals>
76                                                 <configuration>
77                                                         <arguments>run build</arguments>
78                                                 </configuration>
79                                         </execution>
80                                         <execution>
81                                                 <id>prod</id>
82                                                 <goals>
83                                                         <goal>npm</goal>
84                                                 </goals>
85                                                 <configuration>
86                                                         <arguments>run-script build</arguments>
87                                                 </configuration>
88                                                 <phase>generate-resources</phase>
89                                         </execution>
90                                 </executions>
91                         </plugin>
92                         <plugin>
93                                 <groupId>org.apache.maven.plugins</groupId>
94                                 <artifactId>maven-clean-plugin</artifactId>
95                                 <configuration>
96                                         <filesets>
97                                                 <fileset>
98                                                         <directory>${project.basedir}</directory>
99                                                         <includes>
100                                                                 <include>**/node_modules/**</include>
101                                                                 <include>dist/**</include>
102                                                                 <include>node/**</include>
103                                                         </includes>
104                                                         <followSymlinks>false</followSymlinks>
105                                                 </fileset>
106                                                 <fileset>
107                                                         <directory>node</directory>
108                                                 </fileset>
109                                         </filesets>
110                                 </configuration>
111                         </plugin>
112                 </plugins>
113         </build>
114 </project>