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