add a maven project to allow starting all flowable 5 web apps in single tomcat via maven plugin
Here is the pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>flowable-ui-root</artifactId>
<packaging>pom</packaging>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.flowable</groupId>
<artifactId>flowable-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<path>/</path>
<port>8080</port>
<protocol>org.apache.coyote.http11.Http11NioProtocol</protocol>
<addWarDependenciesInClassloader>true</addWarDependenciesInClassloader>
<useSeparateTomcatClassLoader>false</useSeparateTomcatClassLoader>
<systemProperties>
<com.sun.management.jmxremote.port>4000</com.sun.management.jmxremote.port>
</systemProperties>
<webapps>
<webapp>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-idm-app</artifactId>
<version>${project.version}</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
<webapp>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-modeler-app</artifactId>
<version>${project.version}</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
<webapp>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-admin</artifactId>
<version>${project.version}</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
<webapp>
<groupId>org.flowable</groupId>
<artifactId>flowable-app-rest</artifactId>
<version>${project.version}</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
<webapp>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-task-app</artifactId>
<version>${project.version}</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
<!--
<webapp>
<contextPath>/</contextPath>
<groupId>org.flowable</groupId>
<artifactId>flowable-home</artifactId>
<version>${project.version}</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
-->
</webapps>
</configuration>
</plugin>
</plugins>
</build>
</project>
And debugging command would be simple
#!/bin/sh
MAVEN_DEBUG_PORT=8009; export MAVEN_DEBUG_PORT
mvnDebug tomcat7:run
This would be great information to put on the forums, so people can find it easily to use. It would also allow us to see what level of interest other people have in it.
Many thanks Paul.
It would be awesome if there were a spring-boot application that could boot all of the application components specified in this pom file.
My team is facing a current need to deploy the complete flowable stack within a cloud environment where we can auto-scale our apps, and to do that we need the stack packaged in such a way that it can be booted and configured solely with environment variables.
The configuration above, or a spring-boot archetype like: https://github.com/flowable/flowable-engine/issues/167
Would be hugely beneficial to the team I work with.
The Docker compose example configurations could also be a helpful starting point for this. This config boots up the whole UI stack.
https://github.com/flowable/flowable-engine/blob/master/docker/config/modeler-task-idm-admin-postgres.yml
Scaling can then be done easily.
We are using the Docker image approach for this, so closing the issue.