Update release notes for R3 MR
[sdc.git] / catalog-ui / pom.xml
index 9923a6b..d530e00 100644 (file)
@@ -2,8 +2,7 @@
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
        <modelVersion>4.0.0</modelVersion>
-
-       <groupId>org.openecomp.sdc</groupId>
+       
        <artifactId>catalog-ui</artifactId>
     <packaging>pom</packaging>
 
        <parent>
                <groupId>org.openecomp.sdc</groupId>
                <artifactId>sdc-main</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.3.7-SNAPSHOT</version>
        </parent>
 
 
 
        <build>
                <plugins>
-
-                       <!--  ============================================= -->
-                       <!--  Clean webapps folder                          -->
-                       <!--  ============================================= -->
                        <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-clean-plugin</artifactId>
-                               <version>2.6.1</version>
                 <executions>
                     <execution>
                         <id>clean.fe.webapp.folder</id>
@@ -55,8 +50,8 @@
 
 
                        <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-resources-plugin</artifactId>
-                               <version>2.7</version>
                                <executions>
                                        <execution>
                                                <id>copy-resources</id>
             <plugin>
                 <groupId>com.github.eirslett</groupId>
                 <artifactId>frontend-maven-plugin</artifactId>
-                <version>1.4</version>
+                <configuration>
+                               <installDirectory>${project.parent.basedir}</installDirectory>
+                               </configuration>
 
                 <executions>
-
                     <execution>
                         <id>install node and npm</id>
                         <goals>
                         </configuration>
                     </execution>
 
+                    <execution>
+                       <id>npm set progress off</id>
+                       <goals>
+                               <goal>npm</goal>
+                       </goals>
+                       <configuration>
+                               <arguments>set progress=false</arguments>
+                       </configuration>
+                    </execution>
+
                     <execution>
                         <id>npm install</id>
                         <goals>
                         </goals>
                         <!-- Optional configuration which provides for running any npm command -->
                         <configuration>
-                            <arguments>install</arguments>
+                            <arguments>install --registry ${npm.registry}</arguments>
                         </configuration>
                     </execution>
 
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>com.github.sylvainlaurent.maven</groupId>
+                <artifactId>yaml-json-validator-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>validate</id>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>validate</goal>
+                        </goals>
+                        <configuration>
+                            <validationSets>
+                                <validationSet>
+                                    <includes>
+                                        <include>src/main/resources/**/*.y*ml</include>
+                                        <include>src/test/resources/**/*.y*ml</include>
+                                    </includes>
+                                </validationSet>
+                                <validationSet>
+                                    <includes>
+                                        <include>src/main/resources/**/*.json</include>
+                                        <include>src/test/resources/**/*.json</include>
+                                    </includes>
+                                </validationSet>
+                            </validationSets>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
 
                </plugins>
        </build>
-
-
-
-       <profiles>
-               <profile>
-                       <id>CI</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}/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>
-                                               <version>1.4.0</version>
-                                               <executions>
-
-                                                       <!-- Set execution permissions for the build script -->
-                                                       <execution>
-                                                               <id>set.script.permissions</id>
-                                                               <phase>generate-sources</phase>
-                                                               <goals>
-                                                                       <goal>exec</goal>
-                                                               </goals>
-
-                                                               <configuration>
-                                                                       <workingDirectory>${project.basedir}</workingDirectory>
-                                                                       <executable>/bin/chmod</executable>
-                                                                       <arguments>
-                                                                               <argument>755</argument>
-                                                                               <argument>./build_catalog_ui.sh</argument>
-                                                                       </arguments>
-                                                               </configuration>
-                                                       </execution>
-
-                                                       <!-- Run the build script -->
-                                                       <execution>
-                                                               <id>execute grant build</id>
-                                                               <phase>generate-sources</phase>
-                                                               <goals>
-                                                                       <goal>exec</goal>
-                                                               </goals>
-
-                                                               <configuration>
-                                                                       <workingDirectory>${project.basedir}</workingDirectory>
-                                                                       <executable>./build_catalog_ui.sh</executable>
-                                                               </configuration>
-                                                       </execution>
-
-                                                       <!-- Undo checkout the build script -->
-                                                       <execution>
-                                                               <id>undo.checkout.script</id>
-                                                               <phase>generate-sources</phase>
-                                                               <goals>
-                                                                       <goal>exec</goal>
-                                                               </goals>
-
-                                                               <configuration>
-                                                                       <workingDirectory>${project.basedir}</workingDirectory>
-                                                                       <executable>/usr/bin/git</executable>
-                                                                       <arguments>
-                                                                               <argument>checkout</argument>
-                                                                               <argument>--</argument>
-                                                                               <argument>./build_catalog_ui.sh</argument>
-                                                                       </arguments>
-                                                               </configuration>
-                                                       </execution>
-                                               </executions>
-                                       </plugin>
-                               </plugins>
-                       </build>
-               </profile>
-
-
-               <profile>
-                       <id>Fortify</id>
-                       <activation>
-                               <activeByDefault>false</activeByDefault>
-                       </activation>
-
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <groupId>com.fortify.ps.maven.plugin</groupId>
-                                               <artifactId>sca-maven-plugin</artifactId>
-                                               <version>4.30</version>
-                                               <configuration>
-                                                       <source>1.8</source>
-                                                       <buildId>${project.parent.artifactId}</buildId>
-                                                       <toplevelArtifactId>${project.parent.artifactId}</toplevelArtifactId>
-                                               </configuration>
-                                       </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>