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