[PORTAL-7] Rebase
[portal.git] / ecomp-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"\r
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
3         <modelVersion>4.0.0</modelVersion>\r
4         <groupId>org.openecomp.portal</groupId>\r
5         <artifactId>ecompportal-FE-os</artifactId>\r
6         <version>1.1</version>\r
7 \r
8         <properties>\r
9                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
10                 <skipnode>false</skipnode>
11                 <skipcopy>false</skipcopy>\r
12         </properties>\r
13 \r
14         <build>\r
15                 <plugins>\r
16                         <plugin>\r
17                                 <artifactId>maven-clean-plugin</artifactId>\r
18                                 <version>3.0.0</version>\r
19                                 <configuration>\r
20                                         <filesets>\r
21                                                 <fileset>\r
22                                                         <directory>${basedir}/client/app</directory>\r
23                                                 </fileset>\r
24                                                 <fileset>\r
25                                                         <directory>${basedir}/.tmp</directory>\r
26                                                 </fileset>\r
27                                         </filesets>\r
28                                 </configuration>\r
29                         </plugin>\r
30 \r
31                         <plugin>\r
32                                 <groupId>org.apache.maven.plugins</groupId>\r
33                                 <artifactId>maven-resources-plugin</artifactId>\r
34                                 <version>3.0.2</version>\r
35                                 <executions>\r
36                                         <execution>\r
37                                                 <id>copy-src</id>\r
38                                                 <phase>generate-resources</phase>\r
39                                                 <goals>\r
40                                                         <goal>copy-resources</goal>\r
41                                                 </goals>\r
42                                                 <configuration>\r
43                                                         <outputDirectory>${basedir}/client/app</outputDirectory>\r
44                                                         <overwrite>false</overwrite>\r
45                                                         <skip>${skipcopy}</skip>\r
46                                                         <resources>\r
47                                                                 <resource>\r
48                                                                         <directory>${basedir}/client/src</directory>\r
49                                                                 </resource>\r
50                                                         </resources>\r
51                                                 </configuration>\r
52                                         </execution>\r
53 \r
54                                         <execution>\r
55                                                 <id>copy-common</id>\r
56                                                 <phase>generate-resources</phase>\r
57                                                 <goals>\r
58                                                         <goal>copy-resources</goal>\r
59                                                 </goals>\r
60                                                 <configuration>\r
61                                                         <outputDirectory>${basedir}/client/app</outputDirectory>\r
62                                                         <overwrite>false</overwrite>\r
63                                                         <skip>${skipcopy}</skip>\r
64                                                         <resources>\r
65                                                                 <resource>\r
66                                                                         <directory>../ecomp-portal-FE-common/client/app</directory>\r
67                                                                 </resource>\r
68                                                         </resources>\r
69                                                 </configuration>\r
70                                         </execution>\r
71 \r
72                                         <!-- copy b2b library into att template -->\r
73                                         <execution>\r
74                                                 <id>copy-bower-components-external</id>\r
75                                                 <phase>generate-resources</phase>\r
76                                                 <goals>\r
77                                                         <goal>copy-resources</goal>\r
78                                                 </goals>\r
79                                                 <configuration>\r
80                                                         <outputDirectory>${basedir}/client/bower_components_external</outputDirectory>\r
81                                                         <overwrite>false</overwrite>\r
82                                                         <skip>${skipcopy}</skip>\r
83                                                         <resources>\r
84                                                                 <resource>\r
85                                                                         <directory>../ecomp-portal-FE-common/client/bower_components_external</directory>\r
86                                                                 </resource>\r
87                                                         </resources>\r
88                                                 </configuration>\r
89                                         </execution>\r
90 \r
91                                 </executions>\r
92                         </plugin>\r
93 \r
94                         <plugin>\r
95                                 <groupId>com.github.eirslett</groupId>\r
96                                 <artifactId>frontend-maven-plugin</artifactId>\r
97                                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->\r
98                                 <version>1.3</version>\r
99                                 <configuration>\r
100                                         <skip>${skipnode}</skip>\r
101                                         <nodeVersion>v7.5.0</nodeVersion>\r
102                                         <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>\r
103                                         <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>\r
104                                         <installDirectory>./</installDirectory>\r
105                                 </configuration>\r
106                                 <executions>\r
107                                         <execution>\r
108                                                 <!-- optional: you don't really need execution ids, but it looks nice \r
109                                                         in your build log. -->\r
110                                                 <id>install node and npm</id>\r
111                                                 <goals>\r
112                                                         <goal>install-node-and-npm</goal>\r
113                                                 </goals>\r
114                                                 <phase>generate-resources</phase>\r
115                                         </execution>\r
116 \r
117                                         <execution>\r
118                                                 <id>npm install</id>\r
119                                                 <goals>\r
120                                                         <goal>npm</goal>\r
121                                                 </goals>\r
122 \r
123                                                 <phase>generate-resources</phase>\r
124 \r
125                                                 <configuration>\r
126                                                         <arguments>install</arguments>\r
127                                                 </configuration>\r
128                                         </execution>\r
129 \r
130                                         <execution>\r
131                                                 <id>npm install bower</id>\r
132                                                 <goals>\r
133                                                         <goal>npm</goal>\r
134                                                 </goals>\r
135 \r
136                                                 <phase>generate-resources</phase>\r
137 \r
138                                                 <configuration>\r
139                                                         <arguments>install bower</arguments>\r
140                                                 </configuration>\r
141                                         </execution>\r
142 \r
143                                         <execution>\r
144                                                 <id>npm install grunt-cli</id>\r
145                                                 <goals>\r
146                                                         <goal>npm</goal>\r
147                                                 </goals>\r
148 \r
149                                                 <phase>generate-resources</phase>\r
150 \r
151                                                 <configuration>\r
152                                                         <arguments>install grunt-cli</arguments>\r
153                                                 </configuration>\r
154                                         </execution>\r
155 \r
156                                         <execution>\r
157                                                 <id>bower install</id>\r
158                                                 <goals>\r
159                                                         <goal>bower</goal>\r
160                                                 </goals>\r
161 \r
162                                                 <configuration>\r
163                                                         <arguments>install --allow-root</arguments>\r
164                                                 </configuration>\r
165                                         </execution>\r
166 \r
167                                         <execution>\r
168                                                 <id>grunt build</id>\r
169                                                 <goals>\r
170                                                         <goal>grunt</goal>\r
171                                                 </goals>\r
172 \r
173                                                 <phase>generate-resources</phase>\r
174 \r
175                                                 <configuration>\r
176                                                         <arguments>build --env=integ</arguments>\r
177                                                 </configuration>\r
178                                         </execution>\r
179 \r
180                                 </executions>\r
181                         </plugin>\r
182                          <!--    \r
183                         <plugin>\r
184                             <groupId>org.codehaus.mojo</groupId>\r
185                             <artifactId>license-maven-plugin</artifactId>\r
186                             <version>1.10</version>\r
187                             <configuration>\r
188                               <encoding>UTF-8</encoding>\r
189                                 <licenseName>my_license</licenseName>\r
190                                 <licenseResolver>${project.baseUri}/license</licenseResolver>\r
191                                 <inceptionYear>2017</inceptionYear>\r
192                                 <organizationName>AT&amp;T Intellectual Property</organizationName>\r
193                                 <projectName>ECOMP Portal</projectName> \r
194                                 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage> \r
195                                 <processStartTag>================================================================================</processStartTag>\r
196                                 <sectionDelimiter>================================================================================</sectionDelimiter>\r
197                                 <processEndTag>================================================================================</processEndTag> \r
198                                 <roots>\r
199                                         <root>client/src</root>\r
200                                 </roots>\r
201                                 <excludes>\r
202                                         <exclude>*.png</exclude>\r
203                                         <exclude>*.drl</exclude>\r
204                                         <exclude>*.gif</exclude>\r
205                                         <exclude>*.jpeg</exclude>\r
206                                         <exclude>*.jpg</exclude>\r
207                                         <exclude>*.bmp</exclude>\r
208                                         <exclude>*.ico</exclude>\r
209                                         <exclude>*.svg</exclude>\r
210                                 </excludes>\r
211                             </configuration>\r
212                             <executions>\r
213                                 <execution>\r
214                                     <id>first</id>\r
215                                     <goals>\r
216                                         <goal>update-file-header</goal>\r
217                                     </goals>\r
218                                     <phase>process-sources</phase>\r
219                                 </execution>\r
220                             </executions>\r
221                         </plugin>\r
222                         -->\r
223                 </plugins>\r
224         </build>\r
225 </project>