flowable-engine icon indicating copy to clipboard operation
flowable-engine copied to clipboard

add a maven project to allow starting all flowable 5 web apps in single tomcat via maven plugin

Open mgrouch opened this issue 9 years ago • 5 comments

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>

mgrouch avatar Jan 26 '17 17:01 mgrouch

And debugging command would be simple

#!/bin/sh

MAVEN_DEBUG_PORT=8009; export MAVEN_DEBUG_PORT

mvnDebug tomcat7:run

mgrouch avatar Jan 26 '17 17:01 mgrouch

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.

paulhh avatar Jan 31 '17 09:01 paulhh

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.

mdconaway avatar Sep 08 '17 10:09 mdconaway

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.

yvoswillens avatar Sep 08 '17 10:09 yvoswillens

We are using the Docker image approach for this, so closing the issue.

tijsrademakers avatar Oct 31 '17 16:10 tijsrademakers