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