Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 4 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 5 | <groupId>org.openecomp.sdc</groupId> |
| 6 | <artifactId>onboarding-fe</artifactId> |
| 7 | <name>onboarding-ui-war</name> |
| 8 | <packaging>war</packaging> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 9 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-onboarding</artifactId> |
| 13 | <version>1.1.0-SNAPSHOT</version> |
| 14 | <relativePath>../onboarding</relativePath> |
| 15 | </parent> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 16 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 17 | <build> |
| 18 | <plugins> |
| 19 | <!-- ============================================= --> |
| 20 | <!-- Clean dist folder --> |
| 21 | <!-- ============================================= --> |
| 22 | <plugin> |
| 23 | <artifactId>maven-clean-plugin</artifactId> |
| 24 | <version>2.6.1</version> |
| 25 | <executions> |
| 26 | <execution> |
| 27 | <id>clean.dist.folder</id> |
| 28 | <phase>clean</phase> |
| 29 | <goals> |
| 30 | <goal>clean</goal> |
| 31 | </goals> |
| 32 | <configuration> |
| 33 | <filesets> |
| 34 | <fileset> |
| 35 | <directory>${basedir}/dist</directory> |
| 36 | </fileset> |
| 37 | <fileset> |
| 38 | <directory>${basedir}/node_modules</directory> |
| 39 | </fileset> |
| 40 | <fileset> |
| 41 | <directory>${basedir}/../dox-sequence-diagram-ui/dist</directory> |
| 42 | </fileset> |
| 43 | <fileset> |
| 44 | <directory>${basedir}/../dox-sequence-diagram-ui/node_modules</directory> |
| 45 | </fileset> |
| 46 | </filesets> |
| 47 | </configuration> |
| 48 | </execution> |
| 49 | </executions> |
| 50 | </plugin> |
ml636r | 72e56e4 | 2017-02-27 12:36:59 +0200 | [diff] [blame] | 51 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 52 | <!-- ============================================= --> |
| 53 | <!-- Build the UI module node code --> |
| 54 | <!-- ============================================= --> |
| 55 | <plugin> |
| 56 | <groupId>com.github.eirslett</groupId> |
| 57 | <artifactId>frontend-maven-plugin</artifactId> |
| 58 | <version>1.4</version> |
Avi Ziv | 341f43a | 2017-07-30 12:34:05 +0300 | [diff] [blame] | 59 | |
Tal Gitelman | 153a358 | 2017-07-03 20:16:55 +0300 | [diff] [blame] | 60 | <configuration> |
| 61 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
Avi Ziv | 341f43a | 2017-07-30 12:34:05 +0300 | [diff] [blame] | 62 | </configuration> |
| 63 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 64 | <executions> |
ml636r | 5d2f54c | 2017-02-19 23:56:00 +0200 | [diff] [blame] | 65 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 66 | <execution> |
| 67 | <id>install node and npm</id> |
| 68 | <goals> |
| 69 | <goal>install-node-and-npm</goal> |
| 70 | </goals> |
| 71 | <configuration> |
| 72 | <nodeVersion>v6.9.5</nodeVersion> |
| 73 | <npmVersion>3.10.10</npmVersion> |
| 74 | </configuration> |
| 75 | </execution> |
Avi Ziv | 341f43a | 2017-07-30 12:34:05 +0300 | [diff] [blame] | 76 | |
Tal Gitelman | 153a358 | 2017-07-03 20:16:55 +0300 | [diff] [blame] | 77 | <execution> |
| 78 | <id>npm set progress off</id> |
| 79 | <goals> |
| 80 | <goal>npm</goal> |
| 81 | </goals> |
| 82 | <configuration> |
| 83 | <arguments>set progress=false</arguments> |
| 84 | </configuration> |
| 85 | </execution> |
Avi Ziv | 341f43a | 2017-07-30 12:34:05 +0300 | [diff] [blame] | 86 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 87 | <execution> |
| 88 | <id>npm install in dox-sequence-diagram-ui</id> |
| 89 | <goals> |
| 90 | <goal>npm</goal> |
| 91 | </goals> |
| 92 | <configuration> |
| 93 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory> |
| 94 | <arguments>install</arguments> |
| 95 | </configuration> |
| 96 | </execution> |
Avi Ziv | 341f43a | 2017-07-30 12:34:05 +0300 | [diff] [blame] | 97 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 98 | <execution> |
| 99 | <id>npm install</id> |
| 100 | <goals> |
| 101 | <goal>npm</goal> |
| 102 | </goals> |
| 103 | <configuration> |
| 104 | <arguments>install</arguments> |
| 105 | </configuration> |
| 106 | </execution> |
Avi Ziv | 341f43a | 2017-07-30 12:34:05 +0300 | [diff] [blame] | 107 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 108 | <execution> |
| 109 | <id>npm run build</id> |
| 110 | <goals> |
| 111 | <goal>npm</goal> |
| 112 | </goals> |
| 113 | <configuration> |
Avi Ziv | 341f43a | 2017-07-30 12:34:05 +0300 | [diff] [blame] | 114 | <arguments>run build -- --version=${version}</arguments> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
ml636r | 5d2f54c | 2017-02-19 23:56:00 +0200 | [diff] [blame] | 119 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 120 | <plugin> |
| 121 | <artifactId>maven-antrun-plugin</artifactId> |
| 122 | <executions> |
| 123 | <execution> |
| 124 | <id>repack war</id> |
| 125 | <phase>prepare-package</phase> |
| 126 | <configuration> |
| 127 | <tasks> |
| 128 | <echo message="Building test environment"/> |
| 129 | <unzip src="dist/onboarding.war" dest="${basedir}/target/dist"> |
| 130 | <patternset> |
| 131 | <include name="**/*"/> |
| 132 | </patternset> |
| 133 | </unzip> |
| 134 | </tasks> |
| 135 | </configuration> |
| 136 | <goals> |
| 137 | <goal>run</goal> |
| 138 | </goals> |
| 139 | </execution> |
| 140 | </executions> |
| 141 | </plugin> |
ml636r | 5d2f54c | 2017-02-19 23:56:00 +0200 | [diff] [blame] | 142 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 143 | <plugin> |
| 144 | <groupId>org.apache.maven.plugins</groupId> |
| 145 | <artifactId>maven-war-plugin</artifactId> |
| 146 | <version>3.0.0</version> |
| 147 | <configuration> |
| 148 | <webResources> |
| 149 | <resource> |
| 150 | <directory>${basedir}/target/dist</directory> |
| 151 | </resource> |
| 152 | </webResources> |
| 153 | </configuration> |
| 154 | </plugin> |
| 155 | </plugins> |
| 156 | </build> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 157 | |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 158 | </project> |