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