blob: a3410ee3163028913f235e61d4df14c39bcdc68b [file] [log] [blame]
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -04001<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>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -04004
5 <parent>
6 <groupId>org.onap.portal</groupId>
7 <artifactId>onap-portal-parent</artifactId>
Sudarshan Kumar47e3e9e2020-10-15 16:33:52 +05308 <version>3.5.0</version>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -04009 </parent>
10
st782s21a87612018-01-30 17:29:36 -050011 <artifactId>portal-FE-os</artifactId>
12
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -040013 <properties>
14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
st782sb54df0d2017-05-04 07:48:42 -040015 <skipnode>false</skipnode>
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -040016 <skipcopy>false</skipcopy>
17 </properties>
18
19 <build>
20 <plugins>
21 <plugin>
22 <artifactId>maven-clean-plugin</artifactId>
23 <version>3.0.0</version>
24 <configuration>
25 <filesets>
26 <fileset>
27 <directory>${basedir}/client/app</directory>
28 </fileset>
29 <fileset>
Christopher Lott (cl778h)52ef9472017-08-30 16:09:59 -040030 <directory>${basedir}/dist</directory>
31 </fileset>
32 <fileset>
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -040033 <directory>${basedir}/.tmp</directory>
34 </fileset>
Christopher Lott (cl778h)52ef9472017-08-30 16:09:59 -040035 <fileset>
36 <directory>${basedir}/node</directory>
37 </fileset>
38 <fileset>
39 <directory>${basedir}/node_modules</directory>
40 </fileset>
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -040041 </filesets>
42 </configuration>
43 </plugin>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -040044 <plugin>
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -040045 <groupId>org.apache.maven.plugins</groupId>
46 <artifactId>maven-resources-plugin</artifactId>
47 <version>3.0.2</version>
48 <executions>
49 <execution>
50 <id>copy-src</id>
51 <phase>generate-resources</phase>
52 <goals>
53 <goal>copy-resources</goal>
54 </goals>
55 <configuration>
56 <outputDirectory>${basedir}/client/app</outputDirectory>
57 <overwrite>false</overwrite>
58 <skip>${skipcopy}</skip>
59 <resources>
60 <resource>
61 <directory>${basedir}/client/src</directory>
62 </resource>
63 </resources>
64 </configuration>
65 </execution>
66
67 <execution>
68 <id>copy-common</id>
69 <phase>generate-resources</phase>
70 <goals>
71 <goal>copy-resources</goal>
72 </goals>
73 <configuration>
74 <outputDirectory>${basedir}/client/app</outputDirectory>
75 <overwrite>false</overwrite>
76 <skip>${skipcopy}</skip>
77 <resources>
78 <resource>
79 <directory>../ecomp-portal-FE-common/client/app</directory>
80 </resource>
81 </resources>
82 </configuration>
83 </execution>
84
85 <execution>
86 <id>copy-bower-components-external</id>
87 <phase>generate-resources</phase>
88 <goals>
89 <goal>copy-resources</goal>
90 </goals>
91 <configuration>
92 <outputDirectory>${basedir}/client/bower_components_external</outputDirectory>
93 <overwrite>false</overwrite>
94 <skip>${skipcopy}</skip>
95 <resources>
96 <resource>
97 <directory>../ecomp-portal-FE-common/client/bower_components_external</directory>
98 </resource>
99 </resources>
100 </configuration>
101 </execution>
102
103 </executions>
104 </plugin>
105
106 <plugin>
107 <groupId>com.github.eirslett</groupId>
108 <artifactId>frontend-maven-plugin</artifactId>
109 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
110 <version>1.3</version>
111 <configuration>
112 <skip>${skipnode}</skip>
113 <nodeVersion>v7.5.0</nodeVersion>
114 <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
115 <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
116 <installDirectory>./</installDirectory>
117 </configuration>
118 <executions>
119 <execution>
120 <!-- optional: you don't really need execution ids, but it looks nice
121 in your build log. -->
122 <id>install node and npm</id>
123 <goals>
124 <goal>install-node-and-npm</goal>
125 </goals>
126 <phase>generate-resources</phase>
127 </execution>
128
129 <execution>
130 <id>npm install</id>
131 <goals>
132 <goal>npm</goal>
133 </goals>
134
135 <phase>generate-resources</phase>
136
137 <configuration>
138 <arguments>install</arguments>
139 </configuration>
140 </execution>
141
142 <execution>
143 <id>npm install bower</id>
144 <goals>
145 <goal>npm</goal>
146 </goals>
147
148 <phase>generate-resources</phase>
149
150 <configuration>
151 <arguments>install bower</arguments>
152 </configuration>
153 </execution>
154
155 <execution>
156 <id>npm install grunt-cli</id>
157 <goals>
158 <goal>npm</goal>
159 </goals>
160
161 <phase>generate-resources</phase>
162
163 <configuration>
164 <arguments>install grunt-cli</arguments>
165 </configuration>
166 </execution>
167
168 <execution>
169 <id>bower install</id>
170 <goals>
171 <goal>bower</goal>
172 </goals>
173
174 <configuration>
175 <arguments>install --allow-root</arguments>
176 </configuration>
177 </execution>
178
179 <execution>
180 <id>grunt build</id>
181 <goals>
182 <goal>grunt</goal>
183 </goals>
184
185 <phase>generate-resources</phase>
186
187 <configuration>
stattaa3a04c52019-08-23 16:49:45 -0400188 <arguments>build --env=integ --force</arguments>
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -0400189 </configuration>
190 </execution>
191
192 </executions>
193 </plugin>
Christopher Lott (cl778h)31ba5d12017-07-12 14:28:05 -0400194 <!-- No deployment step for this project -->
195 <plugin>
196 <groupId>org.apache.maven.plugins</groupId>
197 <artifactId>maven-deploy-plugin</artifactId>
198 <version>2.8</version>
199 <configuration>
200 <skip>true</skip>
201 </configuration>
202 </plugin>
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -0400203 </plugins>
204 </build>
205</project>