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> |
Michael Lando | 7546f82f | 2017-10-18 01:51:24 +0300 | [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> |
Michael Lando | 7546f82f | 2017-10-18 01:51:24 +0300 | [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> |
| 65 | <version>1.4</version> |
| 66 | |
| 67 | <configuration> |
| 68 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 69 | </configuration> |
| 70 | |
| 71 | <executions> |
| 72 | |
| 73 | <execution> |
| 74 | <id>install node and npm</id> |
| 75 | <goals> |
| 76 | <goal>install-node-and-npm</goal> |
| 77 | </goals> |
| 78 | <configuration> |
| 79 | <nodeVersion>v6.9.5</nodeVersion> |
| 80 | <npmVersion>3.10.10</npmVersion> |
| 81 | </configuration> |
| 82 | </execution> |
| 83 | |
| 84 | <execution> |
| 85 | <id>npm set progress off</id> |
| 86 | <goals> |
| 87 | <goal>npm</goal> |
| 88 | </goals> |
| 89 | <configuration> |
| 90 | <arguments>set progress=false</arguments> |
| 91 | </configuration> |
| 92 | </execution> |
| 93 | |
| 94 | <execution> |
| 95 | <id>npm install in dox-sequence-diagram-ui</id> |
| 96 | <goals> |
| 97 | <goal>npm</goal> |
| 98 | </goals> |
| 99 | <configuration> |
| 100 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui |
| 101 | </workingDirectory> |
| 102 | <arguments>install</arguments> |
| 103 | </configuration> |
| 104 | </execution> |
| 105 | |
| 106 | <!-- Fix jQuery dependency in restful-js --> |
| 107 | <execution> |
| 108 | <id>npm restful-js</id> |
| 109 | <goals> |
| 110 | <goal>npm</goal> |
| 111 | </goals> |
| 112 | <configuration> |
| 113 | <arguments>install restful-js</arguments> |
| 114 | </configuration> |
| 115 | </execution> |
| 116 | <execution> |
| 117 | <id>npm install restful-js dependencies</id> |
| 118 | <goals> |
| 119 | <goal>npm</goal> |
| 120 | </goals> |
| 121 | <configuration> |
| 122 | <workingDirectory>${project.basedir}/node_modules/restful-js |
| 123 | </workingDirectory> |
| 124 | <arguments>install --production</arguments> |
| 125 | </configuration> |
| 126 | </execution> |
| 127 | |
| 128 | <execution> |
| 129 | <id>npm install</id> |
| 130 | <goals> |
| 131 | <goal>npm</goal> |
| 132 | </goals> |
| 133 | <configuration> |
| 134 | <arguments>install</arguments> |
| 135 | </configuration> |
| 136 | </execution> |
| 137 | |
| 138 | <execution> |
| 139 | <id>npm run build</id> |
| 140 | <goals> |
| 141 | <goal>npm</goal> |
| 142 | </goals> |
| 143 | <configuration> |
| 144 | <arguments>run build -- --version=${project.version}</arguments> |
| 145 | </configuration> |
| 146 | </execution> |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame^] | 147 | <execution> |
| 148 | <id>ui test</id> |
| 149 | <goals> |
| 150 | <goal>npm</goal> |
| 151 | </goals> |
| 152 | <configuration> |
| 153 | <arguments>run test-build</arguments> |
| 154 | </configuration> |
| 155 | <phase>test</phase> |
| 156 | </execution> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 157 | </executions> |
| 158 | </plugin> |
| 159 | |
| 160 | <plugin> |
| 161 | <artifactId>maven-antrun-plugin</artifactId> |
| 162 | <executions> |
| 163 | <execution> |
| 164 | <id>repack war</id> |
| 165 | <phase>prepare-package</phase> |
| 166 | <configuration> |
| 167 | <tasks> |
| 168 | <echo message="Building test environment"/> |
| 169 | <unzip src="dist/onboarding.war" dest="${basedir}/target/dist"> |
| 170 | <patternset> |
| 171 | <include name="**/*"/> |
| 172 | </patternset> |
| 173 | </unzip> |
| 174 | </tasks> |
| 175 | </configuration> |
| 176 | <goals> |
| 177 | <goal>run</goal> |
| 178 | </goals> |
| 179 | </execution> |
| 180 | </executions> |
| 181 | </plugin> |
| 182 | |
| 183 | <plugin> |
| 184 | <groupId>org.apache.maven.plugins</groupId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 185 | <artifactId>maven-war-plugin</artifactId> |
avigaffa | a0858ef | 2017-09-12 11:46:01 +0300 | [diff] [blame] | 186 | <version>${maven.war.plugin.version}</version> |
| 187 | <configuration> |
| 188 | <webResources> |
| 189 | <resource> |
| 190 | <directory>${basedir}/target/dist</directory> |
| 191 | </resource> |
| 192 | </webResources> |
| 193 | </configuration> |
| 194 | </plugin> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 195 | </plugins> |
| 196 | </build> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 197 | |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 198 | </project> |