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> |
Michael Lando | d8a0dea | 2018-06-02 19:23:27 +0300 | [diff] [blame] | 14 | <version>1.3.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 | 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> |
| 110 | <yarnVersion>v1.3.2</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> |
ilanap | 1965d16 | 2018-01-04 11:34:59 +0200 | [diff] [blame] | 134 | <arguments>run 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> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 149 | <id>yarn run 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> |
| 155 | <arguments>run build --version=${project.version}</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 | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 165 | <arguments>run test-build ${jest.command}</arguments> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 166 | </configuration> |
ilanap | 785dc1e | 2018-01-08 15:50:18 +0200 | [diff] [blame] | 167 | <!-- for some reason does not fail on test phase --> |
| 168 | <phase>install</phase> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 169 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 170 | </executions> |
| 171 | </plugin> |
| 172 | |
| 173 | <plugin> |
| 174 | <artifactId>maven-antrun-plugin</artifactId> |
| 175 | <executions> |
| 176 | <execution> |
| 177 | <id>repack war</id> |
| 178 | <phase>prepare-package</phase> |
| 179 | <configuration> |
| 180 | <tasks> |
| 181 | <echo message="Building test environment"/> |
| 182 | <unzip src="dist/onboarding.war" dest="${basedir}/target/dist"> |
| 183 | <patternset> |
| 184 | <include name="**/*"/> |
| 185 | </patternset> |
| 186 | </unzip> |
| 187 | </tasks> |
| 188 | </configuration> |
| 189 | <goals> |
| 190 | <goal>run</goal> |
| 191 | </goals> |
| 192 | </execution> |
| 193 | </executions> |
| 194 | </plugin> |
| 195 | |
| 196 | <plugin> |
| 197 | <groupId>org.apache.maven.plugins</groupId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 198 | <artifactId>maven-war-plugin</artifactId> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 199 | <version>${maven.war.plugin.version}</version> |
| 200 | <configuration> |
| 201 | <webResources> |
| 202 | <resource> |
| 203 | <directory>${basedir}/target/dist</directory> |
| 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> |