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