Match front end E2mgr URL paths to back end
[portal/ric-dashboard.git] / 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 and Nokia
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>1.2.1-SNAPSHOT</version>
29         </parent>
30         <artifactId>ric-dash-fe</artifactId>
31         <name>RIC Dashboard Webapp frontend</name>
32         <build>
33                 <plugins>
34                         <plugin>
35                                 <groupId>org.codehaus.mojo</groupId>
36                                 <artifactId>license-maven-plugin</artifactId>
37                                 <executions>
38                                         <execution>
39                                                 <goals>
40                                                         <goal>update-file-header</goal>
41                                                 </goals>
42                                                 <phase>process-sources</phase>
43                                                 <configuration>
44                                                         <organizationName>${lmp.organization.name}</organizationName>
45                                                         <inceptionYear>${lmp.inception.year}</inceptionYear>
46                                                         <projectName>${lmp.project.name}</projectName>
47                                                         <licenseName>${lmp.license.name}</licenseName>
48                                                         <processStartTag>${lmp.process.start.tag}</processStartTag>
49                                                         <processEndTag>${lmp.process.end.tag}</processEndTag>
50                                                         <roots>
51                                                                 <root>e2e</root>
52                                                                 <root>src</root>
53                                                         </roots>
54                                                         <excludes>
55                                                                 <exclude>**/*.json</exclude>
56                                                         </excludes>
57                                                 </configuration>
58                                         </execution>
59                                 </executions>
60                         </plugin>
61                         <plugin>
62                                 <groupId>com.github.eirslett</groupId>
63                                 <artifactId>frontend-maven-plugin</artifactId>
64                                 <version>1.3</version>
65                                 <configuration>
66                                         <nodeVersion>v10.15.3</nodeVersion>
67                                         <npmVersion>6.7.0</npmVersion>
68                                         <workingDirectory>.</workingDirectory>
69                                 </configuration>
70                                 <executions>
71                                         <execution>
72                                                 <id>install node and npm</id>
73                                                 <goals>
74                                                         <goal>install-node-and-npm</goal>
75                                                 </goals>
76                                         </execution>
77                                         <execution>
78                                                 <id>npm install</id>
79                                                 <goals>
80                                                         <goal>npm</goal>
81                                                 </goals>
82                                         </execution>
83                                         <execution>
84                                                 <id>npm run build</id>
85                                                 <goals>
86                                                         <goal>npm</goal>
87                                                 </goals>
88                                                 <configuration>
89                                                         <arguments>run build</arguments>
90                                                 </configuration>
91                                         </execution>
92                                         <execution>
93                                                 <id>prod</id>
94                                                 <goals>
95                                                         <goal>npm</goal>
96                                                 </goals>
97                                                 <configuration>
98                                                         <arguments>run-script build</arguments>
99                                                 </configuration>
100                                                 <phase>generate-resources</phase>
101                                         </execution>
102                                 </executions>
103                         </plugin>
104                         <plugin>
105                                 <groupId>org.apache.maven.plugins</groupId>
106                                 <artifactId>maven-clean-plugin</artifactId>
107                                 <configuration>
108                                         <filesets>
109                                                 <fileset>
110                                                         <directory>${project.basedir}</directory>
111                                                         <includes>
112                                                                 <include>**/node_modules/**</include>
113                                                                 <include>dist/**</include>
114                                                                 <include>node/**</include>
115                                                         </includes>
116                                                         <followSymlinks>false</followSymlinks>
117                                                 </fileset>
118                                                 <fileset>
119                                                         <directory>node</directory>
120                                                 </fileset>
121                                         </filesets>
122                                 </configuration>
123                         </plugin>
124                 </plugins>
125         </build>
126 </project>