diff options
author | Avi Gaffa <avi.gaffa@amdocs.com> | 2018-07-23 12:13:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-23 12:13:27 +0000 |
commit | c25c8557c370e683fc97e27364b71f3468ec8354 (patch) | |
tree | 72bb8c58b3bb06b14b5c2a982a7367c130ff2ba3 /workflow/workflow-designer-ui/pom.xml | |
parent | 55d56411dac4a16c4d821a7411be6a54089a7ba0 (diff) | |
parent | 101bc936e8bde273f7bc145873a8894973bec884 (diff) |
Merge "FE docker & FE App"
Diffstat (limited to 'workflow/workflow-designer-ui/pom.xml')
-rwxr-xr-x[-rw-r--r--] | workflow/workflow-designer-ui/pom.xml | 149 |
1 files changed, 148 insertions, 1 deletions
diff --git a/workflow/workflow-designer-ui/pom.xml b/workflow/workflow-designer-ui/pom.xml index 652aec65..a841a5aa 100644..100755 --- a/workflow/workflow-designer-ui/pom.xml +++ b/workflow/workflow-designer-ui/pom.xml @@ -22,7 +22,7 @@ <modelVersion>4.0.0</modelVersion> <artifactId>workflow-designer-ui</artifactId> - <packaging>pom</packaging> + <packaging>war</packaging> <parent> <groupId>org.onap.sdc.workflow_designer</groupId> @@ -30,5 +30,152 @@ <version>1.3.0-SNAPSHOT</version> </parent> + <properties> + <jest.command /> + </properties> + + + <dependencies> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-proxy</artifactId> + <version>9.4.11.v20180605</version> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>javax.servlet-api</artifactId> + <version>3.0.1</version> + <scope>provided</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>com.github.eirslett</groupId> + <artifactId>frontend-maven-plugin</artifactId> + <version>1.6</version> + <configuration> + <workingDirectory>src/main/frontend</workingDirectory> + <installDirectory>target</installDirectory> + </configuration> + <executions> + <execution> + <id>install node and yarn</id> + <goals> + <goal>install-node-and-yarn</goal> + </goals> + <phase>generate-resources</phase> + <configuration> + <nodeVersion>v9.4.0</nodeVersion> + <yarnVersion>v1.7.0</yarnVersion> + </configuration> + </execution> + <execution> + <id>yarn install</id> + <goals> + <goal>yarn</goal> + </goals> + <configuration> + <arguments>install</arguments> + </configuration> + </execution> + <execution> + <id>yarn run webpack build</id> + <goals> + <goal>yarn</goal> + </goals> + <configuration> + <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> + <arguments>build</arguments> + </configuration> + </execution> + <execution> + <id>ui test</id> + <goals> + <goal>yarn</goal> + </goals> + <configuration> + <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> + <arguments>test-build ${jest.command}</arguments> + <skip>${skipTests}</skip> + </configuration> + <phase>test</phase> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <version>3.2.2</version> + <configuration> + <webResources> + <resource> + <directory>src/main/frontend/dist</directory> + <includes> + <include>*.html</include> + <include>*.js</include> + </includes> + </resource> + <resource> + <directory>src/main/frontend/external-resources/ping/</directory> + <filtering>true</filtering> + <includes> + <include>ping</include> + </includes> + </resource> + </webResources> + </configuration> + </plugin> + </plugins> + </build> + <profiles> + <profile> + <id>jest-windows-profile</id> + <activation> + <os> + <family>windows</family> + </os> + </activation> + <properties> + <jest.command>--runInBand</jest.command> + </properties> + </profile> + <profile> + <id>docker</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <configuration> + <images> + <image> + <name>onap/workflow-frontend</name> + <build> + <tags> + <tag>${project.version}</tag> + </tags> + <from>jetty:9.4.11-alpine</from> + <user>root</user> + <assembly> + <descriptorRef>artifact</descriptorRef> + <targetDir>/var/lib/jetty/webapps</targetDir> + </assembly> + <entryPoint> + java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar + </entryPoint> + </build> + </image> + </images> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |