avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
avigaffa | 00e935f | 2017-09-10 08:58:51 +0300 | [diff] [blame] | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 4 | <modelVersion>4.0.0</modelVersion> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 5 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [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 | |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-onboarding</artifactId> |
Ofir Sonsino | 610ff24 | 2019-07-28 15:44:36 +0300 | [diff] [blame] | 13 | <version>1.5.1-SNAPSHOT</version> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 14 | <relativePath>../onboarding</relativePath> |
| 15 | </parent> |
| 16 | |
| 17 | <properties> |
| 18 | <maven.war.plugin.version>3.0.0</maven.war.plugin.version> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 19 | <app.context.path>onboarding</app.context.path> |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 20 | <jest.command /> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 21 | </properties> |
| 22 | |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [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> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 40 | <build> |
| 41 | <plugins> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 42 | <plugin> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 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> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 57 | <fileset> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 58 | <directory>${basedir}/coverage</directory> |
| 59 | </fileset> |
| 60 | <fileset> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 61 | <directory>${basedir}/../dox-sequence-diagram-ui/dist |
| 62 | </directory> |
| 63 | </fileset> |
Einav Weiss Keidar | d049ca0 | 2018-03-21 13:31:23 +0200 | [diff] [blame] | 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> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 79 | <fileset> |
| 80 | <directory>${basedir}/../dox-sequence-diagram-ui/node_modules |
| 81 | </directory> |
| 82 | </fileset> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 83 | </filesets> |
| 84 | </configuration> |
| 85 | </execution> |
| 86 | </executions> |
| 87 | </plugin> |
| 88 | |
| 89 | <!-- ============================================= --> |
| 90 | <!-- Build the UI module node code --> |
| 91 | <!-- ============================================= --> |
| 92 | <plugin> |
| 93 | <groupId>com.github.eirslett</groupId> |
| 94 | <artifactId>frontend-maven-plugin</artifactId> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 95 | <version>1.6</version> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 96 | |
| 97 | <configuration> |
| 98 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 99 | </configuration> |
| 100 | |
| 101 | <executions> |
| 102 | |
| 103 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 104 | <id>install node and yarn</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 105 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 106 | <goal>install-node-and-yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 107 | </goals> |
| 108 | <configuration> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 109 | <nodeVersion>v9.4.0</nodeVersion> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 110 | <yarnVersion>v1.7.0</yarnVersion> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 111 | </configuration> |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 112 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 113 | |
| 114 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 115 | <id>yarn install in dox-sequence-diagram-ui</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 116 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 117 | <goal>yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 118 | </goals> |
| 119 | <configuration> |
| 120 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui |
| 121 | </workingDirectory> |
| 122 | <arguments>install</arguments> |
| 123 | </configuration> |
| 124 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 125 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 126 | <id>yarn build in dox-sequence-diagram-ui</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 127 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 128 | <goal>yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 129 | </goals> |
| 130 | <configuration> |
ilanap | 1965d16 | 2018-01-04 11:34:59 +0200 | [diff] [blame] | 131 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 132 | </workingDirectory> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 133 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 134 | <arguments>build</arguments> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 135 | </configuration> |
| 136 | </execution> |
| 137 | |
| 138 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 139 | <id>yarn install</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 140 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 141 | <goal>yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 142 | </goals> |
| 143 | <configuration> |
| 144 | <arguments>install</arguments> |
| 145 | </configuration> |
| 146 | </execution> |
| 147 | |
| 148 | <execution> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 149 | <id>yarn build</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 150 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 151 | <goal>yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 152 | </goals> |
| 153 | <configuration> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 154 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 155 | <arguments>build --version=${project.version} --env.version=${project.version} --env.language=en</arguments> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 156 | </configuration> |
| 157 | </execution> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 158 | <execution> |
| 159 | <id>ui test</id> |
| 160 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 161 | <goal>yarn</goal> |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 162 | </goals> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 163 | <configuration> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 164 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 165 | <arguments>test-build ${jest.command}</arguments> |
| 166 | <skip>${skipTests}</skip> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 167 | </configuration> |
ilanap | 785dc1e | 2018-01-08 15:50:18 +0200 | [diff] [blame] | 168 | <!-- for some reason does not fail on test phase --> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 169 | <phase>test</phase> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 170 | </execution> |
| 171 | </executions> |
| 172 | </plugin> |
| 173 | |
| 174 | <plugin> |
| 175 | <groupId>org.apache.maven.plugins</groupId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 176 | <artifactId>maven-war-plugin</artifactId> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 177 | <version>${maven.war.plugin.version}</version> |
| 178 | <configuration> |
| 179 | <webResources> |
| 180 | <resource> |
Einav Weiss Keidar | f2c4723 | 2018-05-30 18:12:02 +0300 | [diff] [blame] | 181 | <directory>${basedir}/dist</directory> |
| 182 | <includes> |
| 183 | <include>*.html</include> |
| 184 | <include>*.js</include> |
| 185 | </includes> |
| 186 | </resource> |
| 187 | <resource> |
| 188 | <directory>${basedir}/src</directory> |
| 189 | <includes> |
| 190 | <include>**/*.json</include> |
| 191 | </includes> |
| 192 | </resource> |
| 193 | <resource> |
| 194 | <directory>${basedir}/external-resources/healthcheck/</directory> |
| 195 | <targetPath>v1.0</targetPath> |
| 196 | <filtering>true</filtering> |
| 197 | <includes> |
| 198 | <include>healthcheck</include> |
| 199 | </includes> |
| 200 | </resource> |
| 201 | <resource> |
| 202 | <directory>${basedir}/webapp-onboarding</directory> |
| 203 | <filtering>true</filtering> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 204 | </resource> |
| 205 | </webResources> |
| 206 | </configuration> |
| 207 | </plugin> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 208 | </plugins> |
| 209 | </build> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 210 | |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 211 | </project> |