summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/pom.xml
diff options
context:
space:
mode:
authorEinav Weiss Keidar <einavw@amdocs.com>2018-05-30 18:12:02 +0300
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-07-08 08:58:48 +0000
commitf2c47232959536b878b1db64a8a5ffb63a1d7f1f (patch)
treedb73f6396a089bbc74ee7372180a01286bf3b3a0 /openecomp-ui/pom.xml
parentd4cc2beaef58a4fc95bdc281efd879b1d1edf279 (diff)
webpack 4 upgrade
Issue-ID: SDC-1388 Change-Id: I44d61491ef802187baa4beb3b4fc2c9f1e8405e5 Signed-off-by: Einav Weiss Keidar <einavw@amdocs.com>
Diffstat (limited to 'openecomp-ui/pom.xml')
-rw-r--r--openecomp-ui/pom.xml61
1 files changed, 31 insertions, 30 deletions
diff --git a/openecomp-ui/pom.xml b/openecomp-ui/pom.xml
index 0c3e083f24..515b91d0e1 100644
--- a/openecomp-ui/pom.xml
+++ b/openecomp-ui/pom.xml
@@ -17,6 +17,7 @@
<properties>
<maven.war.plugin.version>3.0.0</maven.war.plugin.version>
+ <app.context.path>onboarding</app.context.path>
<jest.command />
</properties>
@@ -107,7 +108,7 @@
</goals>
<configuration>
<nodeVersion>v9.4.0</nodeVersion>
- <yarnVersion>v1.3.2</yarnVersion>
+ <yarnVersion>v1.7.0</yarnVersion>
</configuration>
</execution>
@@ -131,7 +132,7 @@
<workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
</workingDirectory>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
- <arguments>run build</arguments>
+ <arguments>build</arguments>
</configuration>
</execution>
@@ -146,13 +147,13 @@
</execution>
<execution>
- <id>yarn run build</id>
+ <id>yarn build</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
- <arguments>run build --version=${project.version}</arguments>
+ <arguments>build --version=${project.version} --env.version=${project.version} --env.language=en</arguments>
</configuration>
</execution>
<execution>
@@ -162,33 +163,11 @@
</goals>
<configuration>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
- <arguments>run test-build ${jest.command}</arguments>
+ <arguments>test-build ${jest.command}</arguments>
+ <skip>${skipTests}</skip>
</configuration>
<!-- for some reason does not fail on test phase -->
- <phase>install</phase>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>repack war</id>
- <phase>prepare-package</phase>
- <configuration>
- <tasks>
- <echo message="Building test environment"/>
- <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
- <patternset>
- <include name="**/*"/>
- </patternset>
- </unzip>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
+ <phase>test</phase>
</execution>
</executions>
</plugin>
@@ -200,7 +179,29 @@
<configuration>
<webResources>
<resource>
- <directory>${basedir}/target/dist</directory>
+ <directory>${basedir}/dist</directory>
+ <includes>
+ <include>*.html</include>
+ <include>*.js</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${basedir}/src</directory>
+ <includes>
+ <include>**/*.json</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${basedir}/external-resources/healthcheck/</directory>
+ <targetPath>v1.0</targetPath>
+ <filtering>true</filtering>
+ <includes>
+ <include>healthcheck</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${basedir}/webapp-onboarding</directory>
+ <filtering>true</filtering>
</resource>
</webResources>
</configuration>