blob: 02d045a9fe25617bb29b47f49f4bd27e230ef6f7 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001<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
4 <modelVersion>4.0.0</modelVersion>
5
6 <groupId>org.openecomp.sdc</groupId>
7 <artifactId>catalog-ui</artifactId>
8 <packaging>pom</packaging>
9
10
11 <parent>
12 <groupId>org.openecomp.sdc</groupId>
13 <artifactId>sdc-main</artifactId>
14 <version>1.0.0-SNAPSHOT</version>
15 </parent>
16
17
18
19 <build>
20 <plugins>
21
22 <!-- ============================================= -->
23 <!-- Clean webapps folder -->
24 <!-- ============================================= -->
25 <plugin>
26 <artifactId>maven-clean-plugin</artifactId>
27 <version>2.6.1</version>
28 <executions>
29 <execution>
30 <id>clean.fe.webapp.folder</id>
31 <phase>initialize</phase>
32 <goals>
33 <goal>clean</goal>
34 </goals>
35 <configuration>
36
37 <filesets>
38 <fileset>
39 <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory>
40 <includes>
41 <include>**/*</include>
42 <include>*</include>
43 </includes>
44 <excludes>
45 <exclude>META-INF/*</exclude>
46 <exclude>WEB-INF/*</exclude>
47 </excludes>
48 <followSymlinks>false</followSymlinks>
49 </fileset>
50 </filesets>
51 </configuration>
52 </execution>
53 </executions>
54 </plugin>
55
56
57 <plugin>
58 <artifactId>maven-resources-plugin</artifactId>
59 <version>2.7</version>
60 <executions>
61 <execution>
62 <id>copy-resources</id>
63 <phase>package</phase>
64 <goals>
65 <goal>copy-resources</goal>
66 </goals>
67 <configuration>
68 <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
69 <resources>
70 <resource>
71 <directory>${project.basedir}/app/dist</directory>
72 <filtering>false</filtering>
73 </resource>
74 </resources>
75 </configuration>
76 </execution>
77 </executions>
78 </plugin>
79 </plugins>
80 </build>
81
82
83
84 <profiles>
85 <profile>
86 <id>CI</id>
87 <activation>
88 <activeByDefault>false</activeByDefault>
89 </activation>
90
91 <build>
92 <plugins>
93 <plugin>
94 <artifactId>maven-resources-plugin</artifactId>
95 <version>2.7</version>
96 <executions>
97 <execution>
98 <id>copy-resources</id>
99 <phase>package</phase>
100 <goals>
101 <goal>copy-resources</goal>
102 </goals>
103
104 <configuration>
105 <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
106 <resources>
107 <resource>
108 <directory>${project.basedir}/app/dist</directory>
109 <filtering>false</filtering>
110 </resource>
111 </resources>
112 </configuration>
113 </execution>
114 </executions>
115 </plugin>
116
117
118
119 <!-- ============================================= -->
120 <!-- Build the UI module node code -->
121 <!-- ============================================= -->
122 <plugin>
123 <groupId>org.codehaus.mojo</groupId>
124 <artifactId>exec-maven-plugin</artifactId>
125 <version>1.4.0</version>
126 <executions>
127 <execution>
128 <id>execute grant build</id>
129 <phase>generate-sources</phase>
130 <goals>
131 <goal>exec</goal>
132 </goals>
133
134 <configuration>
135 <executable>./build_catalog_ui.sh</executable>
136 <workingDirectory>${project.basedir}</workingDirectory>
137 </configuration>
138 </execution>
139 </executions>
140 </plugin>
141 </plugins>
142 </build>
143 </profile>
144
145
146
147 <profile>
148 <id>WINDOWS_ONLY</id>
149 <activation>
150 <os>
151 <family>Windows</family>
152 </os>
153 </activation>
154
155 <build>
156 <plugins>
157 <plugin>
158 <artifactId>exec-maven-plugin</artifactId>
159 <groupId>org.codehaus.mojo</groupId>
160 <version>1.4.0</version>
161 <executions>
162 <execution>
163 <id>execute grant build</id>
164 <phase>generate-sources</phase>
165 <goals>
166 <goal>exec</goal>
167 </goals>
168 <configuration>
169 <executable>build_catalog_ui.bat</executable>
170 <workingDirectory>${basedir}</workingDirectory>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 </plugins>
176 </build>
177 </profile>
178
179
180 <profile>
181 <id>not-minified</id>
182 <activation>
183 <activeByDefault>false</activeByDefault>
184 </activation>
185
186 <build>
187 <plugins>
188 <plugin>
189 <artifactId>maven-resources-plugin</artifactId>
190 <version>2.7</version>
191 <executions>
192 <execution>
193 <id>copy-resources</id>
194 <phase>package</phase>
195 <goals>
196 <goal>copy-resources</goal>
197 </goals>
198 <configuration>
199 <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
200 <resources>
201 <resource>
202 <directory>${project.basedir}/app</directory>
203 <includes>
204 <include>languages/**</include>
205 <include>scripts/**</include>
206 <include>styles/**</include>
207 <include>third-party/**</include>
208 <include>index.html</include>
209 <include>robots.txt</include>
210 <include>favicon.png</include>
211 </includes>
212 <filtering>false</filtering>
213 </resource>
214 <resource>
215 <directory>${project.basedir}</directory>
216 <includes>
217 <include>bower_components/**</include>
218 </includes>
219 <filtering>false</filtering>
220 </resource>
221 </resources>
222 </configuration>
223 </execution>
224 </executions>
225 </plugin>
226 </plugins>
227 </build>
228 </profile>
229 </profiles>
230</project>
231