vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 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 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 5 | <modelVersion>4.0.0</modelVersion> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 6 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 7 | <artifactId>catalog-ui</artifactId> |
| 8 | <packaging>pom</packaging> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 9 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-main</artifactId> |
MichaelMorris | f935dce | 2022-03-22 08:09:18 +0000 | [diff] [blame^] | 13 | <version>1.10.3-SNAPSHOT</version> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 14 | </parent> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 15 | |
andre.schmid | 4a4d45f | 2020-03-06 14:42:45 +0000 | [diff] [blame] | 16 | <properties> |
| 17 | <sonar.nodejs.executable>${project.basedir}/node/node</sonar.nodejs.executable> |
| 18 | <sonar.sources>src/app/ng2</sonar.sources> |
| 19 | </properties> |
| 20 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 21 | <build> |
| 22 | <plugins> |
| 23 | <plugin> |
| 24 | <groupId>org.apache.maven.plugins</groupId> |
| 25 | <artifactId>maven-clean-plugin</artifactId> |
| 26 | <executions> |
| 27 | <execution> |
| 28 | <id>clean.fe.webapp.folder</id> |
| 29 | <phase>initialize</phase> |
| 30 | <goals> |
| 31 | <goal>clean</goal> |
| 32 | </goals> |
| 33 | <configuration> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 34 | <filesets> |
| 35 | <fileset> |
| 36 | <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory> |
| 37 | <includes> |
| 38 | <include>**/*</include> |
| 39 | <include>*</include> |
| 40 | </includes> |
| 41 | <excludes> |
| 42 | <exclude>META-INF/*</exclude> |
| 43 | <exclude>WEB-INF/*</exclude> |
| 44 | </excludes> |
| 45 | <followSymlinks>false</followSymlinks> |
| 46 | </fileset> |
| 47 | </filesets> |
| 48 | </configuration> |
| 49 | </execution> |
| 50 | </executions> |
| 51 | </plugin> |
| 52 | <plugin> |
| 53 | <groupId>org.apache.maven.plugins</groupId> |
| 54 | <artifactId>maven-resources-plugin</artifactId> |
| 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 |
| 64 | </outputDirectory> |
| 65 | <resources> |
| 66 | <resource> |
| 67 | <directory>${project.basedir}/dist</directory> |
| 68 | <filtering>false</filtering> |
| 69 | </resource> |
| 70 | </resources> |
| 71 | </configuration> |
| 72 | </execution> |
| 73 | </executions> |
| 74 | </plugin> |
| 75 | <plugin> |
| 76 | <groupId>com.github.eirslett</groupId> |
| 77 | <artifactId>frontend-maven-plugin</artifactId> |
vasraz | 0625050 | 2021-06-17 20:12:04 +0100 | [diff] [blame] | 78 | <version>1.12.0</version> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 79 | <configuration> |
andre.schmid | 4a4d45f | 2020-03-06 14:42:45 +0000 | [diff] [blame] | 80 | <installDirectory>${project.basedir}</installDirectory> |
vasraz | 98954ad | 2021-04-18 15:09:25 +0100 | [diff] [blame] | 81 | <npmDownloadRoot>${npm.registry}</npmDownloadRoot> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 82 | </configuration> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 83 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 84 | <executions> |
| 85 | <execution> |
| 86 | <id>install node and npm</id> |
| 87 | <goals> |
| 88 | <goal>install-node-and-npm</goal> |
| 89 | </goals> |
| 90 | <configuration> |
| 91 | <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
vasraz | 0625050 | 2021-06-17 20:12:04 +0100 | [diff] [blame] | 92 | <nodeVersion>v14.17.1</nodeVersion> |
| 93 | <npmVersion>6.14.13</npmVersion> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 94 | </configuration> |
| 95 | </execution> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 96 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 97 | <execution> |
| 98 | <id>npm set progress off</id> |
| 99 | <goals> |
| 100 | <goal>npm</goal> |
| 101 | </goals> |
| 102 | <configuration> |
| 103 | <arguments>set progress=false</arguments> |
| 104 | </configuration> |
| 105 | </execution> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 106 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 107 | <execution> |
| 108 | <id>npm install</id> |
| 109 | <goals> |
| 110 | <goal>npm</goal> |
| 111 | </goals> |
| 112 | <!-- Optional configuration which provides for running any npm command --> |
| 113 | <configuration> |
vasraz | 98954ad | 2021-04-18 15:09:25 +0100 | [diff] [blame] | 114 | <arguments>install</arguments> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 115 | </configuration> |
| 116 | </execution> |
ml636r | 0649e65 | 2017-02-20 21:10:54 +0200 | [diff] [blame] | 117 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 118 | <execution> |
| 119 | <id>npm run build</id> |
| 120 | <goals> |
| 121 | <goal>npm</goal> |
| 122 | </goals> |
| 123 | <configuration> |
| 124 | <arguments>run build:prod</arguments> |
| 125 | </configuration> |
| 126 | </execution> |
andre.schmid | 4a4d45f | 2020-03-06 14:42:45 +0000 | [diff] [blame] | 127 | |
| 128 | <execution> |
| 129 | <id>npm_test</id> |
| 130 | <goals> |
| 131 | <goal>npm</goal> |
| 132 | </goals> |
| 133 | <phase>test</phase> |
| 134 | <configuration> |
| 135 | <arguments>test</arguments> |
andre.schmid | 5a59bf1 | 2021-10-08 12:54:44 +0100 | [diff] [blame] | 136 | <skip>${maven.test.skip}</skip> |
andre.schmid | 4a4d45f | 2020-03-06 14:42:45 +0000 | [diff] [blame] | 137 | </configuration> |
| 138 | </execution> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 139 | </executions> |
| 140 | </plugin> |
| 141 | <plugin> |
| 142 | <groupId>com.github.sylvainlaurent.maven</groupId> |
| 143 | <artifactId>yaml-json-validator-maven-plugin</artifactId> |
| 144 | <executions> |
| 145 | <execution> |
| 146 | <id>validate</id> |
| 147 | <phase>validate</phase> |
| 148 | <goals> |
| 149 | <goal>validate</goal> |
| 150 | </goals> |
| 151 | <configuration> |
| 152 | <validationSets> |
| 153 | <validationSet> |
| 154 | <includes> |
| 155 | <include>src/main/resources/**/*.y*ml</include> |
| 156 | <include>src/test/resources/**/*.y*ml</include> |
| 157 | </includes> |
| 158 | </validationSet> |
| 159 | <validationSet> |
| 160 | <includes> |
| 161 | <include>src/main/resources/**/*.json</include> |
| 162 | <include>src/test/resources/**/*.json</include> |
| 163 | </includes> |
| 164 | </validationSet> |
| 165 | </validationSets> |
JulienBe | 6bd3d3a | 2020-06-24 15:35:23 +0200 | [diff] [blame] | 166 | <skip>${skipYamlJsonValidator}</skip> |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 167 | </configuration> |
| 168 | </execution> |
| 169 | </executions> |
| 170 | </plugin> |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 171 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 172 | </plugins> |
| 173 | </build> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 174 | </project> |