1 <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">
4 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.openecomp.sdc</groupId>
7 <artifactId>catalog-ui</artifactId>
8 <packaging>pom</packaging>
12 <groupId>org.openecomp.sdc</groupId>
13 <artifactId>sdc-main</artifactId>
14 <version>1.0.0-SNAPSHOT</version>
22 <!-- ============================================= -->
23 <!-- Clean webapps folder -->
24 <!-- ============================================= -->
26 <artifactId>maven-clean-plugin</artifactId>
27 <version>2.6.1</version>
30 <id>clean.fe.webapp.folder</id>
31 <phase>initialize</phase>
39 <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory>
41 <include>**/*</include>
45 <exclude>META-INF/*</exclude>
46 <exclude>WEB-INF/*</exclude>
48 <followSymlinks>false</followSymlinks>
58 <artifactId>maven-resources-plugin</artifactId>
59 <version>2.7</version>
62 <id>copy-resources</id>
63 <phase>package</phase>
65 <goal>copy-resources</goal>
68 <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
71 <directory>${project.basedir}/app/dist</directory>
72 <filtering>false</filtering>
88 <activeByDefault>false</activeByDefault>
94 <artifactId>maven-resources-plugin</artifactId>
95 <version>2.7</version>
98 <id>copy-resources</id>
99 <phase>package</phase>
101 <goal>copy-resources</goal>
105 <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
108 <directory>${project.basedir}/app/dist</directory>
109 <filtering>false</filtering>
119 <!-- ============================================= -->
120 <!-- Build the UI module node code -->
121 <!-- ============================================= -->
123 <groupId>org.codehaus.mojo</groupId>
124 <artifactId>exec-maven-plugin</artifactId>
125 <version>1.4.0</version>
128 <id>execute grant build</id>
129 <phase>generate-sources</phase>
135 <executable>./build_catalog_ui.sh</executable>
136 <workingDirectory>${project.basedir}</workingDirectory>
148 <id>WINDOWS_ONLY</id>
151 <family>Windows</family>
158 <artifactId>exec-maven-plugin</artifactId>
159 <groupId>org.codehaus.mojo</groupId>
160 <version>1.4.0</version>
163 <id>execute grant build</id>
164 <phase>generate-sources</phase>
169 <executable>build_catalog_ui.bat</executable>
170 <workingDirectory>${basedir}</workingDirectory>
181 <id>not-minified</id>
183 <activeByDefault>false</activeByDefault>
189 <artifactId>maven-resources-plugin</artifactId>
190 <version>2.7</version>
193 <id>copy-resources</id>
194 <phase>package</phase>
196 <goal>copy-resources</goal>
199 <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
202 <directory>${project.basedir}/app</directory>
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>
212 <filtering>false</filtering>
215 <directory>${project.basedir}</directory>
217 <include>bower_components/**</include>
219 <filtering>false</filtering>