Remove code smells in dashboard
[nonrtric.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.nonrt.ric-dashboard</groupId>
27                 <artifactId>ric-dash-parent</artifactId>
28                 <version>1.0.1-SNAPSHOT</version>
29         </parent>
30         <artifactId>ric-dash-fe</artifactId>
31         <name>NonRT RIC Dashboard Webapp frontend</name>
32         <build>
33                 <plugins>
34                         <plugin>
35                                 <!-- Most configuration and all execution is inherited -->
36                                 <groupId>org.codehaus.mojo</groupId>
37                                 <artifactId>license-maven-plugin</artifactId>
38                                 <configuration>
39                                         <roots>
40                                                 <root>e2e</root>
41                                                 <root>src</root>
42                                         </roots>
43                                         <excludes>
44                                                 <exclude>**/*.json</exclude>
45                                         </excludes>
46                                 </configuration>
47                         </plugin>
48                         <plugin>
49                                 <groupId>com.github.eirslett</groupId>
50                                 <artifactId>frontend-maven-plugin</artifactId>
51                                 <version>1.3</version>
52                                 <configuration>
53                                         <nodeVersion>v10.15.3</nodeVersion>
54                                         <npmVersion>6.7.0</npmVersion>
55                                         <workingDirectory>.</workingDirectory>
56                                 </configuration>
57                                 <executions>
58                                         <execution>
59                                                 <id>install node and npm</id>
60                                                 <goals>
61                                                         <goal>install-node-and-npm</goal>
62                                                 </goals>
63                                         </execution>
64                                         <execution>
65                                                 <id>npm install</id>
66                                                 <goals>
67                                                         <goal>npm</goal>
68                                                 </goals>
69                                         </execution>
70                                         <execution>
71                                                 <id>npm run build</id>
72                                                 <goals>
73                                                         <goal>npm</goal>
74                                                 </goals>
75                                                 <configuration>
76                                                         <arguments>run build</arguments>
77                                                 </configuration>
78                                         </execution>
79                                         <execution>
80                                                 <id>prod</id>
81                                                 <goals>
82                                                         <goal>npm</goal>
83                                                 </goals>
84                                                 <configuration>
85                                                         <arguments>run-script build</arguments>
86                                                 </configuration>
87                                                 <phase>generate-resources</phase>
88                                         </execution>
89                                 </executions>
90                         </plugin>
91                         <plugin>
92                                 <groupId>org.apache.maven.plugins</groupId>
93                                 <artifactId>maven-clean-plugin</artifactId>
94                                 <configuration>
95                                         <filesets>
96                                                 <fileset>
97                                                         <directory>${project.basedir}</directory>
98                                                         <includes>
99                                                                 <include>**/node_modules/**</include>
100                                                                 <include>dist/**</include>
101                                                                 <include>node/**</include>
102                                                         </includes>
103                                                         <followSymlinks>false</followSymlinks>
104                                                 </fileset>
105                                                 <fileset>
106                                                         <directory>node</directory>
107                                                 </fileset>
108                                         </filesets>
109                                 </configuration>
110                         </plugin>
111                 </plugins>
112         </build>
113 </project>