blob: 311403eadecc447bd1e5b37fe8173a0b4142f3c0 [file] [log] [blame]
avigaffaa0858ef2017-09-12 11:46:01 +03001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
avigaffa00e935f2017-09-10 08:58:51 +03003 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
AviZi280f8012017-06-09 02:39:56 +03004 <modelVersion>4.0.0</modelVersion>
Michael Landoefa037d2017-02-19 12:57:33 +02005
avigaffaa0858ef2017-09-12 11:46:01 +03006 <groupId>org.openecomp.sdc</groupId>
AviZi280f8012017-06-09 02:39:56 +03007 <artifactId>onboarding-fe</artifactId>
8 <name>onboarding-ui-war</name>
9 <packaging>war</packaging>
Michael Landoefa037d2017-02-19 12:57:33 +020010
avigaffaa0858ef2017-09-12 11:46:01 +030011 <parent>
12 <groupId>org.openecomp.sdc</groupId>
13 <artifactId>sdc-onboarding</artifactId>
Michael Lando0ad3c802017-09-19 16:32:59 +030014 <version>1.2.0-SNAPSHOT</version>
avigaffaa0858ef2017-09-12 11:46:01 +030015 <relativePath>../onboarding</relativePath>
16 </parent>
17
18 <properties>
19 <maven.war.plugin.version>3.0.0</maven.war.plugin.version>
20 </properties>
21
AviZi280f8012017-06-09 02:39:56 +030022 <build>
23 <plugins>
AviZi280f8012017-06-09 02:39:56 +030024 <plugin>
avigaffaa0858ef2017-09-12 11:46:01 +030025 <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 Lando7546f82f2017-10-18 01:51:24 +030039 <!--<fileset>-->
40 <!--<directory>${basedir}/node_modules</directory>-->
41 <!--</fileset>-->
avigaffaa0858ef2017-09-12 11:46:01 +030042 <fileset>
talig8e9c0652017-12-20 14:30:43 +020043 <directory>${basedir}/coverage</directory>
44 </fileset>
45 <fileset>
avigaffaa0858ef2017-09-12 11:46:01 +030046 <directory>${basedir}/../dox-sequence-diagram-ui/dist
47 </directory>
48 </fileset>
Michael Lando7546f82f2017-10-18 01:51:24 +030049 <!--<fileset>-->
50 <!--<directory>${basedir}/../dox-sequence-diagram-ui/node_modules-->
51 <!--</directory>-->
52 <!--</fileset>-->
avigaffaa0858ef2017-09-12 11:46:01 +030053 </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>
avigaffaa0858ef2017-09-12 11:46:01 +0300105 <execution>
ilanap1965d162018-01-04 11:34:59 +0200106 <id>npm build in dox-sequence-diagram-ui</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300107 <goals>
108 <goal>npm</goal>
109 </goals>
110 <configuration>
ilanap1965d162018-01-04 11:34:59 +0200111 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
avigaffaa0858ef2017-09-12 11:46:01 +0300112 </workingDirectory>
ilanap1965d162018-01-04 11:34:59 +0200113 <arguments>run build</arguments>
avigaffaa0858ef2017-09-12 11:46:01 +0300114 </configuration>
115 </execution>
116
117 <execution>
118 <id>npm install</id>
119 <goals>
120 <goal>npm</goal>
121 </goals>
122 <configuration>
123 <arguments>install</arguments>
124 </configuration>
125 </execution>
126
127 <execution>
128 <id>npm run build</id>
129 <goals>
130 <goal>npm</goal>
131 </goals>
132 <configuration>
133 <arguments>run build -- --version=${project.version}</arguments>
134 </configuration>
135 </execution>
talig8e9c0652017-12-20 14:30:43 +0200136 <execution>
137 <id>ui test</id>
138 <goals>
139 <goal>npm</goal>
140 </goals>
141 <configuration>
142 <arguments>run test-build</arguments>
143 </configuration>
ilanap785dc1e2018-01-08 15:50:18 +0200144 <!-- for some reason does not fail on test phase -->
145 <phase>install</phase>
talig8e9c0652017-12-20 14:30:43 +0200146 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300147 </executions>
148 </plugin>
149
150 <plugin>
151 <artifactId>maven-antrun-plugin</artifactId>
152 <executions>
153 <execution>
154 <id>repack war</id>
155 <phase>prepare-package</phase>
156 <configuration>
157 <tasks>
158 <echo message="Building test environment"/>
159 <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
160 <patternset>
161 <include name="**/*"/>
162 </patternset>
163 </unzip>
164 </tasks>
165 </configuration>
166 <goals>
167 <goal>run</goal>
168 </goals>
169 </execution>
170 </executions>
171 </plugin>
172
173 <plugin>
174 <groupId>org.apache.maven.plugins</groupId>
AviZi280f8012017-06-09 02:39:56 +0300175 <artifactId>maven-war-plugin</artifactId>
avigaffaa0858ef2017-09-12 11:46:01 +0300176 <version>${maven.war.plugin.version}</version>
177 <configuration>
178 <webResources>
179 <resource>
180 <directory>${basedir}/target/dist</directory>
181 </resource>
182 </webResources>
183 </configuration>
184 </plugin>
AviZi280f8012017-06-09 02:39:56 +0300185 </plugins>
186 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200187
Michael Landoefa037d2017-02-19 12:57:33 +0200188</project>