Update version to 1.13.4
[sdc.git] / catalog-ui / pom.xml
index 101537e..b72aa6f 100644 (file)
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       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.0.0-SNAPSHOT</version>
-       </parent>
-
-
-
-       <build>
-               <plugins>
-
-                       <!--  ============================================= -->
-                       <!--  Clean webapps folder                          -->
-                       <!--  ============================================= -->
-                       <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>
-                       </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>
-                               <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>
-               </plugins>
-       </build>
-
-       <profiles>
-               <profile>
-                       <id>WINDOWS_ONLY</id>
-                       <activation>
-                               <os>
-                                       <family>Windows</family>
-                               </os>
-                       </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>
-                                       </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 xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         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>
+
+    <artifactId>catalog-ui</artifactId>
+    <packaging>pom</packaging>
+
+    <parent>
+        <groupId>org.openecomp.sdc</groupId>
+        <artifactId>sdc-main</artifactId>
+        <version>1.13.4-SNAPSHOT</version>
+    </parent>
+
+    <properties>
+        <sonar.nodejs.executable>${project.basedir}/node/node</sonar.nodejs.executable>
+        <sonar.sources>src/app/ng2</sonar.sources>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-clean-plugin</artifactId>
+                <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>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <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>
+            <plugin>
+                <groupId>com.github.eirslett</groupId>
+                <artifactId>frontend-maven-plugin</artifactId>
+                <version>1.12.0</version>
+                <configuration>
+                    <installDirectory>${project.basedir}</installDirectory>
+                    <npmDownloadRoot>${npm.registry}</npmDownloadRoot>
+                </configuration>
+
+                <executions>
+                    <execution>
+                        <id>install node and npm</id>
+                        <goals>
+                            <goal>install-node-and-npm</goal>
+                        </goals>
+                        <configuration>
+                            <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
+                            <nodeVersion>v14.17.1</nodeVersion>
+                            <npmVersion>6.14.13</npmVersion>
+                        </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>
+                            <goal>npm</goal>
+                        </goals>
+                        <!-- Optional configuration which provides for running any npm command -->
+                        <configuration>
+                            <arguments>install</arguments>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>npm run build</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <configuration>
+                            <arguments>run build:prod</arguments>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>npm_test</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <phase>test</phase>
+                        <configuration>
+                            <arguments>test</arguments>
+                            <skip>${maven.test.skip}</skip>
+                        </configuration>
+                    </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>
+                            <skip>${skipYamlJsonValidator}</skip>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+        </plugins>
+    </build>
 </project>
-