avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [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"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 5 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 6 | <artifactId>onboarding-fe</artifactId> |
| 7 | <name>onboarding-ui-war</name> |
| 8 | <packaging>war</packaging> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +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-onboarding</artifactId> |
Joanna Jeremicz | 1affa57 | 2020-11-30 11:35:07 +0100 | [diff] [blame] | 13 | <version>1.8.1-SNAPSHOT</version> |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 14 | <relativePath>../onboarding</relativePath> |
| 15 | </parent> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 16 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 17 | <properties> |
| 18 | <maven.war.plugin.version>3.0.0</maven.war.plugin.version> |
| 19 | <app.context.path>onboarding</app.context.path> |
| 20 | <jest.command/> |
| 21 | </properties> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 22 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 23 | <!-- ============================================= --> |
| 24 | <!-- Profile for windows to run jest one by the other due to current defect in node-graceful-js creating race condition --> |
| 25 | <!-- https://github.com/isaacs/node-graceful-fs/pull/119 --> |
| 26 | <!-- ============================================= --> |
| 27 | <profiles> |
| 28 | <profile> |
| 29 | <id>jest-windows-profile</id> |
| 30 | <activation> |
| 31 | <os> |
| 32 | <family>windows</family> |
| 33 | </os> |
| 34 | </activation> |
| 35 | <properties> |
| 36 | <jest.command>--runInBand</jest.command> |
| 37 | </properties> |
| 38 | </profile> |
| 39 | </profiles> |
| 40 | <build> |
| 41 | <plugins> |
| 42 | <plugin> |
| 43 | <artifactId>maven-clean-plugin</artifactId> |
| 44 | <version>2.6.1</version> |
| 45 | <executions> |
| 46 | <execution> |
| 47 | <id>clean.dist.folder</id> |
| 48 | <phase>clean</phase> |
| 49 | <goals> |
| 50 | <goal>clean</goal> |
| 51 | </goals> |
| 52 | <configuration> |
| 53 | <filesets> |
| 54 | <fileset> |
| 55 | <directory>${basedir}/dist</directory> |
| 56 | </fileset> |
| 57 | <fileset> |
| 58 | <directory>${basedir}/coverage</directory> |
| 59 | </fileset> |
| 60 | <fileset> |
| 61 | <directory>${basedir}/../dox-sequence-diagram-ui/dist |
| 62 | </directory> |
| 63 | </fileset> |
| 64 | </filesets> |
| 65 | </configuration> |
| 66 | </execution> |
| 67 | <execution> |
| 68 | <id>clean.nodemodules.folder</id> |
| 69 | <phase>clean</phase> |
| 70 | <goals> |
| 71 | <goal>clean</goal> |
| 72 | </goals> |
| 73 | <configuration> |
| 74 | <skip>${skipUICleanup}</skip> |
| 75 | <filesets> |
| 76 | <fileset> |
| 77 | <directory>${basedir}/node_modules</directory> |
| 78 | </fileset> |
| 79 | <fileset> |
| 80 | <directory>${basedir}/../dox-sequence-diagram-ui/node_modules |
| 81 | </directory> |
| 82 | </fileset> |
| 83 | </filesets> |
| 84 | </configuration> |
| 85 | </execution> |
| 86 | </executions> |
| 87 | </plugin> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 88 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 89 | <!-- ============================================= --> |
| 90 | <!-- Build the UI module node code --> |
| 91 | <!-- ============================================= --> |
| 92 | <plugin> |
| 93 | <groupId>com.github.eirslett</groupId> |
| 94 | <artifactId>frontend-maven-plugin</artifactId> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 95 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 96 | <configuration> |
| 97 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 98 | </configuration> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 99 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 100 | <executions> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 101 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 102 | <execution> |
| 103 | <id>install node and yarn</id> |
| 104 | <goals> |
| 105 | <goal>install-node-and-yarn</goal> |
| 106 | </goals> |
| 107 | <configuration> |
| 108 | <nodeVersion>v10.17.0</nodeVersion> |
| 109 | <yarnVersion>v1.19.1</yarnVersion> |
| 110 | </configuration> |
| 111 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 112 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 113 | <execution> |
| 114 | <id>yarn install in dox-sequence-diagram-ui</id> |
| 115 | <goals> |
| 116 | <goal>yarn</goal> |
| 117 | </goals> |
| 118 | <configuration> |
| 119 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui |
| 120 | </workingDirectory> |
| 121 | <arguments>install</arguments> |
| 122 | </configuration> |
| 123 | </execution> |
| 124 | <execution> |
| 125 | <id>yarn build in dox-sequence-diagram-ui</id> |
| 126 | <goals> |
| 127 | <goal>yarn</goal> |
| 128 | </goals> |
| 129 | <configuration> |
| 130 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui |
| 131 | </workingDirectory> |
| 132 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 133 | <arguments>build</arguments> |
| 134 | </configuration> |
| 135 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 136 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 137 | <execution> |
| 138 | <id>yarn install</id> |
| 139 | <goals> |
| 140 | <goal>yarn</goal> |
| 141 | </goals> |
| 142 | <configuration> |
| 143 | <arguments>install</arguments> |
| 144 | </configuration> |
| 145 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 146 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 147 | <execution> |
| 148 | <id>yarn build</id> |
| 149 | <goals> |
| 150 | <goal>yarn</goal> |
| 151 | </goals> |
| 152 | <configuration> |
| 153 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 154 | <arguments>build --version=${project.version} --env.version=${project.version} --env.language=en</arguments> |
| 155 | </configuration> |
| 156 | </execution> |
| 157 | <execution> |
| 158 | <id>ui test</id> |
| 159 | <goals> |
| 160 | <goal>yarn</goal> |
| 161 | </goals> |
| 162 | <configuration> |
| 163 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 164 | <arguments>test-build ${jest.command}</arguments> |
| 165 | <skip>${skipTests}</skip> |
| 166 | </configuration> |
| 167 | <!-- for some reason does not fail on test phase --> |
| 168 | <phase>test</phase> |
| 169 | </execution> |
| 170 | </executions> |
| 171 | </plugin> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 172 | |
vasraz | f1f5a35 | 2019-11-26 17:20:27 +0000 | [diff] [blame] | 173 | <plugin> |
| 174 | <groupId>org.apache.maven.plugins</groupId> |
| 175 | <artifactId>maven-war-plugin</artifactId> |
| 176 | <version>${maven.war.plugin.version}</version> |
| 177 | <configuration> |
| 178 | <webResources> |
| 179 | <resource> |
| 180 | <directory>${basedir}/dist</directory> |
| 181 | <includes> |
| 182 | <include>*.html</include> |
| 183 | <include>*.js</include> |
| 184 | </includes> |
| 185 | </resource> |
| 186 | <resource> |
| 187 | <directory>${basedir}/src</directory> |
| 188 | <includes> |
| 189 | <include>**/*.json</include> |
| 190 | </includes> |
| 191 | </resource> |
| 192 | <resource> |
| 193 | <directory>${basedir}/external-resources/healthcheck/</directory> |
| 194 | <targetPath>v1.0</targetPath> |
| 195 | <filtering>true</filtering> |
| 196 | <includes> |
| 197 | <include>healthcheck</include> |
| 198 | </includes> |
| 199 | </resource> |
| 200 | <resource> |
| 201 | <directory>${basedir}/webapp-onboarding</directory> |
| 202 | <filtering>true</filtering> |
| 203 | </resource> |
| 204 | </webResources> |
| 205 | </configuration> |
| 206 | </plugin> |
| 207 | </plugins> |
| 208 | </build> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 209 | |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 210 | </project> |