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 | 0ad3c80 | 2017-09-19 16:32:59 +0300 | [diff] [blame] | 14 | <version>1.2.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> |
| 58 | <directory>${basedir}/node_modules</directory> |
| 59 | </fileset> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 60 | <fileset> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 61 | <directory>${basedir}/coverage</directory> |
| 62 | </fileset> |
| 63 | <fileset> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 64 | <directory>${basedir}/../dox-sequence-diagram-ui/dist |
| 65 | </directory> |
| 66 | </fileset> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 67 | <fileset> |
| 68 | <directory>${basedir}/../dox-sequence-diagram-ui/node_modules |
| 69 | </directory> |
| 70 | </fileset> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 71 | </filesets> |
| 72 | </configuration> |
| 73 | </execution> |
| 74 | </executions> |
| 75 | </plugin> |
| 76 | |
| 77 | <!-- ============================================= --> |
| 78 | <!-- Build the UI module node code --> |
| 79 | <!-- ============================================= --> |
| 80 | <plugin> |
| 81 | <groupId>com.github.eirslett</groupId> |
| 82 | <artifactId>frontend-maven-plugin</artifactId> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 83 | <version>1.6</version> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 84 | |
| 85 | <configuration> |
| 86 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 87 | </configuration> |
| 88 | |
| 89 | <executions> |
| 90 | |
| 91 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 92 | <id>install node and yarn</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 93 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 94 | <goal>install-node-and-yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 95 | </goals> |
| 96 | <configuration> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 97 | <nodeVersion>v9.4.0</nodeVersion> |
| 98 | <yarnVersion>v1.3.2</yarnVersion> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 99 | </configuration> |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 100 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 101 | |
| 102 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 103 | <id>yarn install in dox-sequence-diagram-ui</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 104 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 105 | <goal>yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 106 | </goals> |
| 107 | <configuration> |
| 108 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui |
| 109 | </workingDirectory> |
| 110 | <arguments>install</arguments> |
| 111 | </configuration> |
| 112 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 113 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 114 | <id>yarn build in dox-sequence-diagram-ui</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 115 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 116 | <goal>yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 117 | </goals> |
| 118 | <configuration> |
ilanap | 1965d16 | 2018-01-04 11:34:59 +0200 | [diff] [blame] | 119 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 120 | </workingDirectory> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 121 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
ilanap | 1965d16 | 2018-01-04 11:34:59 +0200 | [diff] [blame] | 122 | <arguments>run build</arguments> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 123 | </configuration> |
| 124 | </execution> |
| 125 | |
| 126 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 127 | <id>yarn install</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> |
| 132 | <arguments>install</arguments> |
| 133 | </configuration> |
| 134 | </execution> |
| 135 | |
| 136 | <execution> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 137 | <id>yarn run build</id> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 138 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 139 | <goal>yarn</goal> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 140 | </goals> |
| 141 | <configuration> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 142 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 143 | <arguments>run build --version=${project.version}</arguments> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 144 | </configuration> |
| 145 | </execution> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 146 | <execution> |
| 147 | <id>ui test</id> |
| 148 | <goals> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 149 | <goal>yarn</goal> |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 150 | </goals> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 151 | <configuration> |
svishnev | b03fa61 | 2018-01-25 17:22:08 +0200 | [diff] [blame] | 152 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 153 | <arguments>run test-build ${jest.command}</arguments> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 154 | </configuration> |
ilanap | 785dc1e | 2018-01-08 15:50:18 +0200 | [diff] [blame] | 155 | <!-- for some reason does not fail on test phase --> |
| 156 | <phase>install</phase> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 157 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 158 | </executions> |
| 159 | </plugin> |
| 160 | |
| 161 | <plugin> |
| 162 | <artifactId>maven-antrun-plugin</artifactId> |
| 163 | <executions> |
| 164 | <execution> |
| 165 | <id>repack war</id> |
| 166 | <phase>prepare-package</phase> |
| 167 | <configuration> |
| 168 | <tasks> |
| 169 | <echo message="Building test environment"/> |
| 170 | <unzip src="dist/onboarding.war" dest="${basedir}/target/dist"> |
| 171 | <patternset> |
| 172 | <include name="**/*"/> |
| 173 | </patternset> |
| 174 | </unzip> |
| 175 | </tasks> |
| 176 | </configuration> |
| 177 | <goals> |
| 178 | <goal>run</goal> |
| 179 | </goals> |
| 180 | </execution> |
| 181 | </executions> |
| 182 | </plugin> |
| 183 | |
| 184 | <plugin> |
| 185 | <groupId>org.apache.maven.plugins</groupId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 186 | <artifactId>maven-war-plugin</artifactId> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 187 | <version>${maven.war.plugin.version}</version> |
| 188 | <configuration> |
| 189 | <webResources> |
| 190 | <resource> |
| 191 | <directory>${basedir}/target/dist</directory> |
| 192 | </resource> |
| 193 | </webResources> |
| 194 | </configuration> |
| 195 | </plugin> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 196 | </plugins> |
| 197 | </build> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 198 | |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 199 | </project> |