blob: ca81181511b0437871280ecfd503d1d3451c4fdd [file] [log] [blame]
st782sb54df0d2017-05-04 07:48:42 -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>
6 <version>1.1</version>
7
8 <properties>
9 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10 <skipnode>false</skipnode>
11 <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 <!-- copy b2b library into att template -->
73 <execution>
74 <id>copy-bower-components-external</id>
75 <phase>generate-resources</phase>
76 <goals>
77 <goal>copy-resources</goal>
78 </goals>
79 <configuration>
80 <outputDirectory>${basedir}/client/bower_components_external</outputDirectory>
81 <overwrite>false</overwrite>
82 <skip>${skipcopy}</skip>
83 <resources>
84 <resource>
85 <directory>../ecomp-portal-FE-common/client/bower_components_external</directory>
86 </resource>
87 </resources>
88 </configuration>
89 </execution>
90
91 </executions>
92 </plugin>
93
94 <plugin>
95 <groupId>com.github.eirslett</groupId>
96 <artifactId>frontend-maven-plugin</artifactId>
97 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
98 <version>1.3</version>
99 <configuration>
100 <skip>${skipnode}</skip>
101 <nodeVersion>v7.5.0</nodeVersion>
102 <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
103 <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
104 <installDirectory>./</installDirectory>
105 </configuration>
106 <executions>
107 <execution>
108 <!-- optional: you don't really need execution ids, but it looks nice
109 in your build log. -->
110 <id>install node and npm</id>
111 <goals>
112 <goal>install-node-and-npm</goal>
113 </goals>
114 <phase>generate-resources</phase>
115 </execution>
116
117 <execution>
118 <id>npm install</id>
119 <goals>
120 <goal>npm</goal>
121 </goals>
122
123 <phase>generate-resources</phase>
124
125 <configuration>
126 <arguments>install</arguments>
127 </configuration>
128 </execution>
129
130 <execution>
131 <id>npm install bower</id>
132 <goals>
133 <goal>npm</goal>
134 </goals>
135
136 <phase>generate-resources</phase>
137
138 <configuration>
139 <arguments>install bower</arguments>
140 </configuration>
141 </execution>
142
143 <execution>
144 <id>npm install grunt-cli</id>
145 <goals>
146 <goal>npm</goal>
147 </goals>
148
149 <phase>generate-resources</phase>
150
151 <configuration>
152 <arguments>install grunt-cli</arguments>
153 </configuration>
154 </execution>
155
156 <execution>
157 <id>bower install</id>
158 <goals>
159 <goal>bower</goal>
160 </goals>
161
162 <configuration>
163 <arguments>install --allow-root</arguments>
164 </configuration>
165 </execution>
166
167 <execution>
168 <id>grunt build</id>
169 <goals>
170 <goal>grunt</goal>
171 </goals>
172
173 <phase>generate-resources</phase>
174
175 <configuration>
176 <arguments>build --env=integ</arguments>
177 </configuration>
178 </execution>
179
180 </executions>
181 </plugin>
182 <!--
183 <plugin>
184 <groupId>org.codehaus.mojo</groupId>
185 <artifactId>license-maven-plugin</artifactId>
186 <version>1.10</version>
187 <configuration>
188 <encoding>UTF-8</encoding>
189 <licenseName>my_license</licenseName>
190 <licenseResolver>${project.baseUri}/license</licenseResolver>
191 <inceptionYear>2017</inceptionYear>
192 <organizationName>AT&amp;T Intellectual Property</organizationName>
193 <projectName>ECOMP Portal</projectName>
194 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
195 <processStartTag>================================================================================</processStartTag>
196 <sectionDelimiter>================================================================================</sectionDelimiter>
197 <processEndTag>================================================================================</processEndTag>
198 <roots>
199 <root>client/src</root>
200 </roots>
201 <excludes>
202 <exclude>*.png</exclude>
203 <exclude>*.drl</exclude>
204 <exclude>*.gif</exclude>
205 <exclude>*.jpeg</exclude>
206 <exclude>*.jpg</exclude>
207 <exclude>*.bmp</exclude>
208 <exclude>*.ico</exclude>
209 <exclude>*.svg</exclude>
210 </excludes>
211 </configuration>
212 <executions>
213 <execution>
214 <id>first</id>
215 <goals>
216 <goal>update-file-header</goal>
217 </goals>
218 <phase>process-sources</phase>
219 </execution>
220 </executions>
221 </plugin>
222 -->
223 </plugins>
224 </build>
225</project>