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> |
| 59 | |
| 60 | <executions> |
| 61 | |
| 62 | <execution> |
| 63 | <id>install node and npm in dox-sequence-diagram-ui</id> |
| 64 | <goals> |
| 65 | <goal>install-node-and-npm</goal> |
| 66 | </goals> |
| 67 | <configuration> |
| 68 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory> |
| 69 | <nodeVersion>v6.9.5</nodeVersion> |
| 70 | <npmVersion>3.10.10</npmVersion> |
| 71 | </configuration> |
| 72 | </execution> |
ml636r | 5d2f54c | 2017-02-19 23:56:00 +0200 | [diff] [blame] | 73 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame^] | 74 | <execution> |
| 75 | <id>install node and npm</id> |
| 76 | <goals> |
| 77 | <goal>install-node-and-npm</goal> |
| 78 | </goals> |
| 79 | <configuration> |
| 80 | <nodeVersion>v6.9.5</nodeVersion> |
| 81 | <npmVersion>3.10.10</npmVersion> |
| 82 | </configuration> |
| 83 | </execution> |
| 84 | |
| 85 | <execution> |
| 86 | <id>npm install in dox-sequence-diagram-ui</id> |
| 87 | <goals> |
| 88 | <goal>npm</goal> |
| 89 | </goals> |
| 90 | <configuration> |
| 91 | <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory> |
| 92 | <arguments>install</arguments> |
| 93 | </configuration> |
| 94 | </execution> |
| 95 | |
| 96 | <execution> |
| 97 | <id>npm install</id> |
| 98 | <goals> |
| 99 | <goal>npm</goal> |
| 100 | </goals> |
| 101 | <configuration> |
| 102 | <arguments>install</arguments> |
| 103 | </configuration> |
| 104 | </execution> |
| 105 | |
| 106 | <execution> |
| 107 | <id>npm run build</id> |
| 108 | <goals> |
| 109 | <goal>npm</goal> |
| 110 | </goals> |
| 111 | <configuration> |
| 112 | <arguments>run build</arguments> |
| 113 | </configuration> |
| 114 | </execution> |
| 115 | </executions> |
| 116 | </plugin> |
ml636r | 5d2f54c | 2017-02-19 23:56:00 +0200 | [diff] [blame] | 117 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame^] | 118 | <plugin> |
| 119 | <artifactId>maven-antrun-plugin</artifactId> |
| 120 | <executions> |
| 121 | <execution> |
| 122 | <id>repack war</id> |
| 123 | <phase>prepare-package</phase> |
| 124 | <configuration> |
| 125 | <tasks> |
| 126 | <echo message="Building test environment"/> |
| 127 | <unzip src="dist/onboarding.war" dest="${basedir}/target/dist"> |
| 128 | <patternset> |
| 129 | <include name="**/*"/> |
| 130 | </patternset> |
| 131 | </unzip> |
| 132 | </tasks> |
| 133 | </configuration> |
| 134 | <goals> |
| 135 | <goal>run</goal> |
| 136 | </goals> |
| 137 | </execution> |
| 138 | </executions> |
| 139 | </plugin> |
ml636r | 5d2f54c | 2017-02-19 23:56:00 +0200 | [diff] [blame] | 140 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame^] | 141 | <plugin> |
| 142 | <groupId>org.apache.maven.plugins</groupId> |
| 143 | <artifactId>maven-war-plugin</artifactId> |
| 144 | <version>3.0.0</version> |
| 145 | <configuration> |
| 146 | <webResources> |
| 147 | <resource> |
| 148 | <directory>${basedir}/target/dist</directory> |
| 149 | </resource> |
| 150 | </webResources> |
| 151 | </configuration> |
| 152 | </plugin> |
| 153 | </plugins> |
| 154 | </build> |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 155 | |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 156 | </project> |