Merge "InvalidRoleException-junits"
[portal.git] / portal-FE-os / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <groupId>org.onap.portal</groupId>
6         <artifactId>portal-FE-os</artifactId>
7         <version>3.1.0</version>
8
9         <properties>
10                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11                 <skipnode>false</skipnode>
12                 <skipcopy>false</skipcopy>
13         </properties>
14
15         <build>
16                 <plugins>
17
18                         <plugin>
19                                 <artifactId>maven-clean-plugin</artifactId>
20                                 <version>3.0.0</version>
21                                 <configuration>
22                                         <filesets>
23                                                 <fileset>
24                                                         <directory>${basedir}/dist</directory>
25                                                 </fileset>
26                                                 <!--
27                                                 <fileset>
28                                                         <directory>${basedir}/node</directory>
29                                                 </fileset>
30                                                 <fileset>
31                                                         <directory>${basedir}/node_modules</directory>
32                                                 </fileset>
33                                                 -->
34                                         </filesets>
35                                 </configuration>
36                         </plugin>
37
38                         <plugin>
39                                 <groupId>org.apache.maven.plugins</groupId>
40                                 <artifactId>maven-resources-plugin</artifactId>
41                                 <version>3.0.2</version>
42                                 <executions>
43
44                                         <execution>
45                                                 <id>copy-common</id>
46                                                 <phase>generate-resources</phase>
47                                                 <goals>
48                                                         <goal>copy-resources</goal>
49                                                 </goals>
50                                                 <configuration>
51                                                         <outputDirectory>${basedir}/src</outputDirectory>
52                                                         <overwrite>false</overwrite>
53                                                         <skip>${skipcopy}</skip>
54                                                         <resources>
55                                                                 <resource>
56                                                                         <directory>../portal-FE-common/src</directory>
57                                                                 </resource>
58                                                         </resources>
59                                                 </configuration>
60                                         </execution>
61
62                                 </executions>
63                         </plugin>
64
65                         <plugin>
66                                 <groupId>com.github.eirslett</groupId>
67                                 <artifactId>frontend-maven-plugin</artifactId>
68                                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
69                                 <version>1.3</version>
70                                 <configuration>
71                                         <skip>${skipnode}</skip>
72                                         <nodeVersion>v10.13.0</nodeVersion>
73                                         <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
74                                         <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
75                                         <installDirectory>./</installDirectory>
76                                 </configuration>
77                                 <executions>
78                                         <execution>
79                                                 <!-- optional: you don't really need execution ids, but it looks nice 
80                                                         in your build log. -->
81                                                 <id>install node and npm</id>
82                                                 <goals>
83                                                         <goal>install-node-and-npm</goal>
84                                                 </goals>
85                                                 <phase>generate-resources</phase>
86                                         </execution>
87
88                                         <execution>
89                                                 <id>npm install</id>
90                                                 <goals>
91                                                         <goal>npm</goal>
92                                                 </goals>
93
94                                                 <phase>generate-resources</phase>
95
96                                                 <configuration>
97                                                         <arguments>install</arguments>
98                                                 </configuration>
99                                         </execution>
100
101                                         <execution>
102                                                 <id>npm build</id>
103                                                 <goals>
104                                                         <goal>npm</goal>
105                                                 </goals>
106
107                                                 <phase>generate-resources</phase>
108
109                                                 <configuration>
110                                                         <arguments>run-script build</arguments>
111                                                 </configuration>
112                                         </execution>
113
114                                 </executions>
115                         </plugin>
116                 </plugins>
117         </build>
118 </project>