Add UI part 75/775/1
authorml636r <ml636r@att.com>
Sun, 19 Feb 2017 15:04:06 +0000 (17:04 +0200)
committerml636r <ml636r@att.com>
Sun, 19 Feb 2017 15:04:06 +0000 (17:04 +0200)
Change-Id: I7c5dc5e3c77124929dc248297613ba9032fdc7eb
Signed-off-by: ml636r <ml636r@att.com>
catalog-ui/pom.xml
openecomp-ui/pom.xml

index 02d045a..101537e 100644 (file)
@@ -5,7 +5,7 @@
 
        <groupId>org.openecomp.sdc</groupId>
        <artifactId>catalog-ui</artifactId>
-    <packaging>pom</packaging>
+       <packaging>pom</packaging>
 
 
        <parent>
                        <plugin>
                                <artifactId>maven-clean-plugin</artifactId>
                                <version>2.6.1</version>
-                <executions>
-                    <execution>
-                        <id>clean.fe.webapp.folder</id>
-                        <phase>initialize</phase>
-                        <goals>
-                            <goal>clean</goal>
-                        </goals>
-                        <configuration>
-
-                            <filesets>
-                                <fileset>
-                                    <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory>
-                                    <includes>
-                                        <include>**/*</include>
-                                        <include>*</include>
-                                    </includes>
-                                    <excludes>
-                                        <exclude>META-INF/*</exclude>
-                                        <exclude>WEB-INF/*</exclude>
-                                    </excludes>
-                                    <followSymlinks>false</followSymlinks>
-                                </fileset>
-                            </filesets>
-                        </configuration>
-                    </execution>
-                </executions>
+                               <executions>
+                                       <execution>
+                                               <id>clean.fe.webapp.folder</id>
+                                               <phase>initialize</phase>
+                                               <goals>
+                                                       <goal>clean</goal>
+                                               </goals>
+                                               <configuration>
+
+                                                       <filesets>
+                                                               <fileset>
+                                                                       <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory>
+                                                                       <includes>
+                                                                               <include>**/*</include>
+                                                                               <include>*</include>
+                                                                       </includes>
+                                                                       <excludes>
+                                                                               <exclude>META-INF/*</exclude>
+                                                                               <exclude>WEB-INF/*</exclude>
+                                                                       </excludes>
+                                                                       <followSymlinks>false</followSymlinks>
+                                                               </fileset>
+                                                       </filesets>
+                                               </configuration>
+                                       </execution>
+                               </executions>
                        </plugin>
 
+                       <plugin>
+                               <groupId>com.github.eirslett</groupId>
+                               <artifactId>frontend-maven-plugin</artifactId>
+                               <version>1.3</version>
+                               <configuration>
+                                       <nodeVersion>v7.5.0</nodeVersion>
+                                       <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
+                                       <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
+                                       <installDirectory>./</installDirectory>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>install node and npm</id>
+                                               <goals>
+                                                       <goal>install-node-and-npm</goal>
+                                               </goals>
+                                               <phase>generate-resources</phase>
+                                       </execution>
+
+                                       <execution>
+                                               <id>npm install bower</id>
+                                               <goals>
+                                                       <goal>npm</goal>
+                                               </goals>
+
+                                               <phase>generate-resources</phase>
+
+                                               <configuration>
+                                                       <arguments>install bower</arguments>
+                                               </configuration>
+                                       </execution>
+                                       
+                                       <execution>
+                                               <id>npm install grunt-cli</id>
+                                               <goals>
+                                                       <goal>npm</goal>
+                                               </goals>
+
+                                               <phase>generate-resources</phase>
+
+                                               <configuration>
+                                                       <arguments>install grunt-cli</arguments>
+                                               </configuration>
+                                       </execution>
+                                       
+                                       <execution>
+                                               <id>npm install</id>
+                                               <goals>
+                                                       <goal>npm</goal>
+                                               </goals>
+
+                                               <phase>generate-resources</phase>
+
+                                               <configuration>
+                                                       <arguments>install</arguments>
+                                               </configuration>
+                                       </execution>
+
+                                       <execution>
+                                               <id>bower install</id>
+                                               <goals>
+                                                       <goal>bower</goal>
+                                               </goals>
+
+                                               <configuration>
+                                                       <arguments>install</arguments>
+                                               </configuration>
+                                       </execution>
+                                       
+                                       <execution>
+                                               <id>grunt build</id>
+                                               <goals>
+                                                       <goal>grunt</goal>
+                                               </goals>
+
+                                               <phase>generate-resources</phase>
+
+                                               <configuration>
+                                                       <arguments>build</arguments>
+                                               </configuration>
+                                       </execution>
+
+                               </executions>
+                       </plugin>
 
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                </plugins>
        </build>
 
-
-
        <profiles>
                <profile>
-                       <id>CI</id>
+                       <id>WINDOWS_ONLY</id>
                        <activation>
-                               <activeByDefault>false</activeByDefault>
+                               <os>
+                                       <family>Windows</family>
+                               </os>
                        </activation>
 
                        <build>
                                <plugins>
                                        <plugin>
-                                               <artifactId>maven-resources-plugin</artifactId>
-                                               <version>2.7</version>
-                                               <executions>
-                                                       <execution>
-                                                               <id>copy-resources</id>
-                                                               <phase>package</phase>
-                                                               <goals>
-                                                                       <goal>copy-resources</goal>
-                                                               </goals>
-
-                                                               <configuration>
-                                                                       <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
-                                                                       <resources>
-                                                                               <resource>
-                                                                                       <directory>${project.basedir}/app/dist</directory>
-                                                                                       <filtering>false</filtering>
-                                                                               </resource>
-                                                                       </resources>
-                                                               </configuration>
-                                                       </execution>
-                                               </executions>
-                                       </plugin>
-
-
-
-                                       <!--  ============================================= -->
-                                       <!--  Build the UI module node code                 -->
-                                       <!--  ============================================= -->
-                                       <plugin>
-                                               <groupId>org.codehaus.mojo</groupId>
                                                <artifactId>exec-maven-plugin</artifactId>
+                                               <groupId>org.codehaus.mojo</groupId>
                                                <version>1.4.0</version>
                                                <executions>
                                                        <execution>
                                                                <goals>
                                                                        <goal>exec</goal>
                                                                </goals>
-
                                                                <configuration>
-                                                                       <executable>./build_catalog_ui.sh</executable>
-                                                                       <workingDirectory>${project.basedir}</workingDirectory>
+                                                                       <executable>build_catalog_ui.bat</executable>
+                                                                       <workingDirectory>${basedir}</workingDirectory>
                                                                </configuration>
                                                        </execution>
                                                </executions>
                </profile>
 
 
-
                <profile>
-                       <id>WINDOWS_ONLY</id>
+                       <id>not-minified</id>
                        <activation>
-                               <os>
-                                       <family>Windows</family>
-                               </os>
+                               <activeByDefault>false</activeByDefault>
                        </activation>
 
                        <build>
                                <plugins>
                                        <plugin>
-                                         <artifactId>exec-maven-plugin</artifactId>
-                                         <groupId>org.codehaus.mojo</groupId>
-                      <version>1.4.0</version>
-                                         <executions>
-                                               <execution>
-                                                 <id>execute grant build</id>
-                                                 <phase>generate-sources</phase>
-                                                 <goals>
-                                                       <goal>exec</goal>
-                                                 </goals>
-                                                 <configuration>
-                                                       <executable>build_catalog_ui.bat</executable>
-                                                       <workingDirectory>${basedir}</workingDirectory>
-                                                 </configuration>
-                                               </execution>
-                                         </executions>
+                                               <artifactId>maven-resources-plugin</artifactId>
+                                               <version>2.7</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>copy-resources</id>
+                                                               <phase>package</phase>
+                                                               <goals>
+                                                                       <goal>copy-resources</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
+                                                                       <resources>
+                                                                               <resource>
+                                                                                       <directory>${project.basedir}/app</directory>
+                                                                                       <includes>
+                                                                                               <include>languages/**</include>
+                                                                                               <include>scripts/**</include>
+                                                                                               <include>styles/**</include>
+                                                                                               <include>third-party/**</include>
+                                                                                               <include>index.html</include>
+                                                                                               <include>robots.txt</include>
+                                                                                               <include>favicon.png</include>
+                                                                                       </includes>
+                                                                                       <filtering>false</filtering>
+                                                                               </resource>
+                                                                               <resource>
+                                                                                       <directory>${project.basedir}</directory>
+                                                                                       <includes>
+                                                                                               <include>bower_components/**</include>
+                                                                                       </includes>
+                                                                                       <filtering>false</filtering>
+                                                                               </resource>
+                                                                       </resources>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
-
-
-        <profile>
-            <id>not-minified</id>
-            <activation>
-                <activeByDefault>false</activeByDefault>
-            </activation>
-
-            <build>
-                <plugins>
-                    <plugin>
-                        <artifactId>maven-resources-plugin</artifactId>
-                        <version>2.7</version>
-                        <executions>
-                            <execution>
-                                <id>copy-resources</id>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>copy-resources</goal>
-                                </goals>
-                                <configuration>
-                                    <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp</outputDirectory>
-                                    <resources>
-                                        <resource>
-                                            <directory>${project.basedir}/app</directory>
-                                            <includes>
-                                                <include>languages/**</include>
-                                                <include>scripts/**</include>
-                                                <include>styles/**</include>
-                                                <include>third-party/**</include>
-                                                <include>index.html</include>
-                                                <include>robots.txt</include>
-                                                <include>favicon.png</include>
-                                            </includes>
-                                            <filtering>false</filtering>
-                                        </resource>
-                                        <resource>
-                                            <directory>${project.basedir}</directory>
-                                            <includes>
-                                                <include>bower_components/**</include>
-                                            </includes>
-                                            <filtering>false</filtering>
-                                        </resource>
-                                    </resources>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
        </profiles>
 </project>
 
index 456469e..a4b20e2 100644 (file)
                </plugins>
        </build>
 
-       <profiles>
-               <profile>
-                       <id>rackspace</id>
-                       <activation>
-                               <activeByDefault>true</activeByDefault>
-                       </activation>
-                       <repositories>
-                               <repository>
-                                       <id>rackspace-public</id>
-                                       <name>Rackspace</name>
-                                       <url>https://10.208.197.75:8443/repository/maven-public/</url>
-                                       <layout>default</layout>
-                               </repository>
-
-                               <repository>
-                                       <id>virtuos</id>
-                                       <name>Virtuos</name>
-                                       <url>http://nexus.virtuos.uos.de/nexus/content/repositories/public/</url>
-                                       <layout>default</layout>
-                               </repository>
-
-                               <repository>
-                                       <id>apache-public</id>
-                                       <name>Apache-Public</name>
-                                       <url>https://repository.apache.org/content/groups/public/</url>
-                                       <layout>default</layout>
-                               </repository>
-
-                               <repository>
-                                       <id>elasticsearch-releases</id>
-                                       <url>https://maven.elasticsearch.org/releases</url>
-                                       <releases>
-                                               <enabled>true</enabled>
-                                       </releases>
-                                       <snapshots>
-                                               <enabled>false</enabled>
-                                       </snapshots>
-                               </repository>
-                       </repositories>
-
-                       <distributionManagement>
-                               <snapshotRepository>
-                                       <id>rackspace-snapshots</id>
-                                       <name>Rackspace-Snapshots</name>
-                                       <url>https://10.208.197.75:8443/repository/maven-snapshots/</url>
-                               </snapshotRepository>
-
-                               <repository>
-                                       <id>rackspace-public</id>
-                                       <name>Rackspace</name>
-                                       <url>https://10.208.197.75:8443/repository/maven-releases/</url>
-                               </repository>
-                       </distributionManagement>
-               </profile>
-       </profiles>
-
 </project>