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