Initial commit of RIC Dashboard webapp
[portal/ric-dashboard.git] / webapp-frontend / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--<![CDATA[
3 ========================LICENSE_START=================================
4 ORAN-OSC
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.oranosc.ric.portal.dashboard</groupId>
27                 <artifactId>ric-dash-parent</artifactId>
28                 <version>1.0.0-SNAPSHOT</version>
29         </parent>
30         <artifactId>ric-dash-fe</artifactId>
31         <name>RIC Dashboard Webapp frontend</name>
32         <build>
33                 <plugins>
34                         <!-- do not deploy anything -->
35                         <plugin>
36                                 <groupId>org.apache.maven.plugins</groupId>
37                                 <artifactId>maven-deploy-plugin</artifactId>
38                                 <!--  spring sets the <version>2.8</version> -->
39                                 <configuration>
40                                         <skip>true</skip>
41                                 </configuration>
42                         </plugin>
43                         <plugin>
44                                 <groupId>org.codehaus.mojo</groupId>
45                                 <artifactId>license-maven-plugin</artifactId>
46                                 <executions>
47                                         <execution>
48                                                 <goals>
49                                                         <goal>update-file-header</goal>
50                                                 </goals>
51                                                 <phase>process-sources</phase>
52                                                 <configuration>
53                                                         <organizationName>${lmp.organization.name}</organizationName>
54                                                         <inceptionYear>${lmp.inception.year}</inceptionYear>
55                                                         <projectName>${lmp.project.name}</projectName>
56                                                         <licenseName>${lmp.license.name}</licenseName>
57                                                         <processStartTag>${lmp.process.start.tag}</processStartTag>
58                                                         <processEndTag>${lmp.process.end.tag}</processEndTag>
59                                                         <roots>
60                                                                 <root>e2e</root>
61                                                                 <root>src</root>
62                                                         </roots>
63                                                         <excludes>
64                                                                 <exclude>**/*.json</exclude>
65                                                         </excludes>
66                                                 </configuration>
67                                         </execution>
68                                 </executions>
69                         </plugin>
70                         <plugin>
71                                 <groupId>com.github.eirslett</groupId>
72                                 <artifactId>frontend-maven-plugin</artifactId>
73                                 <version>1.3</version>
74                                 <configuration>
75                                         <nodeVersion>v10.15.3</nodeVersion>
76                                         <npmVersion>6.7.0</npmVersion>
77                                         <workingDirectory>.</workingDirectory>
78                                 </configuration>
79                                 <executions>
80                                         <execution>
81                                                 <id>install node and npm</id>
82                                                 <goals>
83                                                         <goal>install-node-and-npm</goal>
84                                                 </goals>
85                                         </execution>
86                                         <execution>
87                                                 <id>npm install</id>
88                                                 <goals>
89                                                         <goal>npm</goal>
90                                                 </goals>
91                                         </execution>
92                                         <execution>
93                                                 <id>npm run build</id>
94                                                 <goals>
95                                                         <goal>npm</goal>
96                                                 </goals>
97                                                 <configuration>
98                                                         <arguments>run build</arguments>
99                                                 </configuration>
100                                         </execution>
101                                         <execution>
102                                                 <id>prod</id>
103                                                 <goals>
104                                                         <goal>npm</goal>
105                                                 </goals>
106                                                 <configuration>
107                                                         <arguments>run-script build</arguments>
108                                                 </configuration>
109                                                 <phase>generate-resources</phase>
110                                         </execution>
111                                 </executions>
112                         </plugin>
113                         <plugin>
114                                 <groupId>org.apache.maven.plugins</groupId>
115                                 <artifactId>maven-clean-plugin</artifactId>
116                                 <configuration>
117                                         <filesets>
118                                                 <fileset>
119                                                         <directory>${project.basedir}</directory>
120                                                         <includes>
121                                                                 <include>**/node_modules/**</include>
122                                                                 <include>dist/**</include>
123                                                                 <include>node/**</include>
124                                                         </includes>
125                                                         <followSymlinks>false</followSymlinks>
126                                                 </fileset>
127                                                 <fileset>
128                                                         <directory>node</directory>
129                                                 </fileset>
130                                         </filesets>
131                                 </configuration>
132                         </plugin>
133                 </plugins>
134         </build>
135 </project>