vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 4 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 5 | <modelVersion>4.0.0</modelVersion> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 6 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 7 | <artifactId>catalog-ui</artifactId> |
| 8 | <packaging>pom</packaging> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 9 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-main</artifactId> |
| 13 | <version>1.6.0-SNAPSHOT</version> |
| 14 | </parent> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 15 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 16 | <build> |
| 17 | <plugins> |
| 18 | <plugin> |
| 19 | <groupId>org.apache.maven.plugins</groupId> |
| 20 | <artifactId>maven-clean-plugin</artifactId> |
| 21 | <executions> |
| 22 | <execution> |
| 23 | <id>clean.fe.webapp.folder</id> |
| 24 | <phase>initialize</phase> |
| 25 | <goals> |
| 26 | <goal>clean</goal> |
| 27 | </goals> |
| 28 | <configuration> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 29 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 30 | <filesets> |
| 31 | <fileset> |
| 32 | <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory> |
| 33 | <includes> |
| 34 | <include>**/*</include> |
| 35 | <include>*</include> |
| 36 | </includes> |
| 37 | <excludes> |
| 38 | <exclude>META-INF/*</exclude> |
| 39 | <exclude>WEB-INF/*</exclude> |
| 40 | </excludes> |
| 41 | <followSymlinks>false</followSymlinks> |
| 42 | </fileset> |
| 43 | </filesets> |
| 44 | </configuration> |
| 45 | </execution> |
| 46 | </executions> |
| 47 | </plugin> |
| 48 | <plugin> |
| 49 | <groupId>org.apache.maven.plugins</groupId> |
| 50 | <artifactId>maven-resources-plugin</artifactId> |
| 51 | <executions> |
| 52 | <execution> |
| 53 | <id>copy-resources</id> |
| 54 | <phase>package</phase> |
| 55 | <goals> |
| 56 | <goal>copy-resources</goal> |
| 57 | </goals> |
| 58 | <configuration> |
| 59 | <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp |
| 60 | </outputDirectory> |
| 61 | <resources> |
| 62 | <resource> |
| 63 | <directory>${project.basedir}/dist</directory> |
| 64 | <filtering>false</filtering> |
| 65 | </resource> |
| 66 | </resources> |
| 67 | </configuration> |
| 68 | </execution> |
| 69 | </executions> |
| 70 | </plugin> |
| 71 | <plugin> |
| 72 | <groupId>com.github.eirslett</groupId> |
| 73 | <artifactId>frontend-maven-plugin</artifactId> |
| 74 | <configuration> |
| 75 | <installDirectory>${project.parent.basedir}</installDirectory> |
| 76 | </configuration> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 77 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 78 | <executions> |
| 79 | <execution> |
| 80 | <id>install node and npm</id> |
| 81 | <goals> |
| 82 | <goal>install-node-and-npm</goal> |
| 83 | </goals> |
| 84 | <configuration> |
| 85 | <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
| 86 | <nodeVersion>v10.17.0</nodeVersion> |
| 87 | <npmVersion>6.11.3</npmVersion> |
| 88 | </configuration> |
| 89 | </execution> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 90 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 91 | <execution> |
| 92 | <id>npm set progress off</id> |
| 93 | <goals> |
| 94 | <goal>npm</goal> |
| 95 | </goals> |
| 96 | <configuration> |
| 97 | <arguments>set progress=false</arguments> |
| 98 | </configuration> |
| 99 | </execution> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 100 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 101 | <execution> |
| 102 | <id>npm install</id> |
| 103 | <goals> |
| 104 | <goal>npm</goal> |
| 105 | </goals> |
| 106 | <!-- Optional configuration which provides for running any npm command --> |
| 107 | <configuration> |
| 108 | <arguments>install --registry ${npm.registry}</arguments> |
| 109 | </configuration> |
| 110 | </execution> |
ml636r | 0649e65 | 2017-02-20 21:10:54 +0200 | [diff] [blame] | 111 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 112 | <execution> |
| 113 | <id>npm run build</id> |
| 114 | <goals> |
| 115 | <goal>npm</goal> |
| 116 | </goals> |
| 117 | <configuration> |
| 118 | <arguments>run build:prod</arguments> |
| 119 | </configuration> |
| 120 | </execution> |
| 121 | </executions> |
| 122 | </plugin> |
| 123 | <plugin> |
| 124 | <groupId>com.github.sylvainlaurent.maven</groupId> |
| 125 | <artifactId>yaml-json-validator-maven-plugin</artifactId> |
| 126 | <executions> |
| 127 | <execution> |
| 128 | <id>validate</id> |
| 129 | <phase>validate</phase> |
| 130 | <goals> |
| 131 | <goal>validate</goal> |
| 132 | </goals> |
| 133 | <configuration> |
| 134 | <validationSets> |
| 135 | <validationSet> |
| 136 | <includes> |
| 137 | <include>src/main/resources/**/*.y*ml</include> |
| 138 | <include>src/test/resources/**/*.y*ml</include> |
| 139 | </includes> |
| 140 | </validationSet> |
| 141 | <validationSet> |
| 142 | <includes> |
| 143 | <include>src/main/resources/**/*.json</include> |
| 144 | <include>src/test/resources/**/*.json</include> |
| 145 | </includes> |
| 146 | </validationSet> |
| 147 | </validationSets> |
| 148 | </configuration> |
| 149 | </execution> |
| 150 | </executions> |
| 151 | </plugin> |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 152 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 153 | </plugins> |
| 154 | </build> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 155 | </project> |