blob: 282a88e55d02a076ba5582de4c0ae9733b711fa4 [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>
svishnevb03fa612018-01-25 17:22:08 +020039 <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>
svishnevb03fa612018-01-25 17:22:08 +020049 <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>
svishnevb03fa612018-01-25 17:22:08 +020065 <version>1.6</version>
avigaffaa0858ef2017-09-12 11:46:01 +030066
67 <configuration>
68 <installDirectory>${project.parent.parent.basedir}</installDirectory>
69 </configuration>
70
71 <executions>
72
73 <execution>
svishnevb03fa612018-01-25 17:22:08 +020074 <id>install node and yarn</id>
avigaffaa0858ef2017-09-12 11:46:01 +030075 <goals>
svishnevb03fa612018-01-25 17:22:08 +020076 <goal>install-node-and-yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +030077 </goals>
78 <configuration>
svishnevb03fa612018-01-25 17:22:08 +020079 <nodeVersion>v9.4.0</nodeVersion>
80 <yarnVersion>v1.3.2</yarnVersion>
avigaffaa0858ef2017-09-12 11:46:01 +030081 </configuration>
svishnevb03fa612018-01-25 17:22:08 +020082 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +030083
84 <execution>
svishnevb03fa612018-01-25 17:22:08 +020085 <id>yarn install in dox-sequence-diagram-ui</id>
avigaffaa0858ef2017-09-12 11:46:01 +030086 <goals>
svishnevb03fa612018-01-25 17:22:08 +020087 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +030088 </goals>
89 <configuration>
90 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
91 </workingDirectory>
92 <arguments>install</arguments>
93 </configuration>
94 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +030095 <execution>
svishnevb03fa612018-01-25 17:22:08 +020096 <id>yarn build in dox-sequence-diagram-ui</id>
avigaffaa0858ef2017-09-12 11:46:01 +030097 <goals>
svishnevb03fa612018-01-25 17:22:08 +020098 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +030099 </goals>
100 <configuration>
ilanap1965d162018-01-04 11:34:59 +0200101 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
avigaffaa0858ef2017-09-12 11:46:01 +0300102 </workingDirectory>
svishnevb03fa612018-01-25 17:22:08 +0200103 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
ilanap1965d162018-01-04 11:34:59 +0200104 <arguments>run build</arguments>
avigaffaa0858ef2017-09-12 11:46:01 +0300105 </configuration>
106 </execution>
107
108 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200109 <id>yarn install</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300110 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200111 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300112 </goals>
113 <configuration>
114 <arguments>install</arguments>
115 </configuration>
116 </execution>
117
118 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200119 <id>yarn run build</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300120 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200121 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300122 </goals>
123 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200124 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
125 <arguments>run build --version=${project.version}</arguments>
avigaffaa0858ef2017-09-12 11:46:01 +0300126 </configuration>
127 </execution>
talig8e9c0652017-12-20 14:30:43 +0200128 <execution>
129 <id>ui test</id>
130 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200131 <goal>yarn</goal>
132 </goals>
talig8e9c0652017-12-20 14:30:43 +0200133 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200134 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
talig8e9c0652017-12-20 14:30:43 +0200135 <arguments>run test-build</arguments>
136 </configuration>
ilanap785dc1e2018-01-08 15:50:18 +0200137 <!-- for some reason does not fail on test phase -->
138 <phase>install</phase>
talig8e9c0652017-12-20 14:30:43 +0200139 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300140 </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>
AviZi280f8012017-06-09 02:39:56 +0300168 <artifactId>maven-war-plugin</artifactId>
avigaffaa0858ef2017-09-12 11:46:01 +0300169 <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>
AviZi280f8012017-06-09 02:39:56 +0300178 </plugins>
179 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200180
Michael Landoefa037d2017-02-19 12:57:33 +0200181</project>